On the use of Tun interfaces.
David Gilbert
dgilbert at dclg.ca
Tue Jul 18 04:39:55 UTC 2006
The man pages of if_tun are out-of-date in some respects, but with
comments from the group and reading the sources of ppp, I have worked
around most of the problems I've found. However, I'm stuck with one
quandry. My tunnel setup process produces the following:
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
inet6 fe80::214:22ff:fede:f175%tun0 prefixlen 64 scopeid 0x5
inet 192.168.12.2 --> 192.168.22.1 netmask 0xffffffff
Opened by PID 86506
but then I ask:
[3:14:314]dgilbert at canoe:~/devel/failsafe> route get 192.168.22.1
route to: 192.168.22.1
destination: default
mask: default
gateway: strike1
interface: bge0
and indeed:
[3:15:315]dgilbert at canoe:~/devel/failsafe> netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default xx.yy.zz.33 UGS 0 1629642 bge0
xx.yy.zz.32/27 link#1 UC 0 0 bge0
xx.yy.zz.33 00:80:c8:c9:22:31 UHLW 2 16 bge0 1046
127.0.0.1 127.0.0.1 UH 0 4111852 lo0
192.168.22.1 192.168.12.2 UH 0 0 tun0
shouldn't the last route there be active? Any clues here?
Dave.
--
============================================================================
|David Gilbert, Independent Contractor. | Two things can be |
|Mail: dave at daveg.ca | equal if and only if they |
|http://daveg.ca | are precisely opposite. |
=========================================================GLO================
More information about the freebsd-hackers
mailing list