Hi,
The TUNNEL in the man ifconfig(8) is described as follows:
TUNNEL
</snip>
tunneldomain rtable
^^^^^^here
Use routing table rtable instead of the default table. The
^^^^^^here
tunnel does not need to terminate in the same routing domain as
the interface itself. rtable can be set to any valid routing
^^^^^^here
table ID; the corresponding routing domain is derived from this
table.
-tunneldomain
Use the default routing table and routing domain 0.
Shouldn't rdomain be specified for TUNNELDOMAIN, not rtable?
When tunneldomain is set, rdomain is displayed and Rdomain 1 is
created as shown below:
$ netstat -R
Rdomain 0
Interfaces: lo0 em0 enc0 pflog0 gif0
Routing table: 0
$ doas ifconfig gif0 tunneldomain 1
0 asou@asou-curr: ~ 14:04:15
$ ifconfig gif0
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
index 7 priority 0 llprio 3
encap: txprio payload rxprio payload
groups: gif
tunnel: (unset) ttl 64 nodf ecn rdomain 1
$ netstat -R
Rdomain 0
Interfaces: lo0 em0 enc0 pflog0 gif0 wg0
Routing table: 0
Rdomain 1
Interface: lo1
Routing table: 1
$
--
ASOU Masato