|
|
At 10:01 AM 01/12/2005, rvenne@xxxxxxxxxxxxxxxxx wrote:
hi list:
someone knows how to flush tun interface under freebsd ?
ifconfig tun0 down
ifconfig tun0 delete
e.g.
[rec-net5]# ifconfig
rl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
ether 00:50:fc:23:48:c6
media: Ethernet autoselect (10baseT/UTP)
status: no carrier
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=1a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
inet 192.168.43.235 netmask 0xffffff00 broadcast 192.168.43.255
ether 00:e0:81:58:91:69
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33208
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
[rec-net5]# cat /dev/null > /dev/tun101
[rec-net5]# ifconfig
rl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
ether 00:50:fc:23:48:c6
media: Ethernet autoselect (10baseT/UTP)
status: no carrier
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=1a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
inet 192.168.43.235 netmask 0xffffff00 broadcast 192.168.43.255
ether 00:e0:81:58:91:69
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33208
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
tun101: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
[rec-net5]# ifconfig
rl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
ether 00:50:fc:23:48:c6
media: Ethernet autoselect (10baseT/UTP)
status: no carrier
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=1a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
inet 192.168.43.235 netmask 0xffffff00 broadcast 192.168.43.255
ether 00:e0:81:58:91:69
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33208
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
tun101: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
inet 10.1.1.1 --> 10.1.1.2 netmask 0xffffff00
[rec-net5]# ifconfig tun101 down
[rec-net5]# ifconfig tun101 delete
[rec-net5]# ifconfig
rl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
ether 00:50:fc:23:48:c6
media: Ethernet autoselect (10baseT/UTP)
status: no carrier
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=1a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
inet 192.168.43.235 netmask 0xffffff00 broadcast 192.168.43.255
ether 00:e0:81:58:91:69
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33208
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
tun101: flags=8050<POINTOPOINT,RUNNING,MULTICAST> mtu 1500
[rec-net5]#
kldunload if_tun
kldunload: can't find file if_tun: No such file or directory
By default, the tun driver is part of the kernel.
device tun # Packet tunnel.
If you want it as a kld, comment out device tun in your kernel
config, rebuild/install the new kernel / reboot. Then you can load
and unload it. However, that wont buy you anything really.
---Mike
____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users
|