I run 4.5 -release on a Thinkpad x200, and I would like to have trunk0
working. The problem is it works, that is it switches the nics (one
ethernet and one wireless, as per manpage example), but the
ethernet nic does not work. I've also tried to boot with the cable
inserted, and it does not communicate with the outside, but as soon as I
unplug the cable, the wireless starts working, and if I plug the cable in
again, again it hangs there. Of course if I use only ethernet, no problem.
Here are my settings:
$ cat hostname.em0
up
$ cat hostname.iwn0
up chan 6 nwid mylan wpa wpapsk mykey
$ cat hostname.trunk0
trunkproto failover trunkport em0 trunkport iwn0 192.168.1.102 netmask
255.255.255.0
ifconfig wireless:
$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33204
priority: 0
groups: lo
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
lladdr macaddress
priority: 0
trunk: trunkdev trunk0
media: Ethernet autoselect (none)
status: no carrier
inet6 fe80::21f:16ff:fe1f:dae3%em0 prefixlen 64 scopeid 0x1
iwn0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
lladdr macaddress
priority: 0
trunk: trunkdev trunk0
groups: wlan
media: IEEE802.11 autoselect (OFDM12 mode 11g)
status: active
ieee80211: nwid mylan chan 6 bssid macaddress 240dB wpapsk <not
displayed> wpaprotos wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp
wpagroupcipher tkip
inet6 fe80::222:faff:fef5:62fa%iwn0 prefixlen 64 scopeid 0x2
enc0: flags=0<> mtu 1536
priority: 0
trunk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr macaddress
priority: 0
trunk: trunkproto failover
trunkport iwn0 active
trunkport em0 master
groups: trunk egress
media: Ethernet autoselect
status: active
inet 192.168.1.102 netmask 0xffffff00 broadcast 192.168.1.255
inet6 fe80::21f:16ff:fe1f:dae3%trunk0 prefixlen 64 scopeid 0x5
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33204
priority: 0
groups: pflo
$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=1.159 ms
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=5.205 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=1.170 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=1.157 ms
ifconfig eternet cable plugged in:
$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33204
priority: 0
groups: lo
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
lladdr macaddress
priority: 0
trunk: trunkdev trunk0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::21f:16ff:fe1f:dae3%em0 prefixlen 64 scopeid 0x1
iwn0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
lladdr macaddress
priority: 0
trunk: trunkdev trunk0
groups: wlan
media: IEEE802.11 autoselect (OFDM18 mode 11g)
status: active
ieee80211: nwid mylan chan 6 bssid macaddress 240dB wpapsk <not
displayed> wpaprotos wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp
wpagroupcipher tkip
inet6 fe80::222:faff:fef5:62fa%iwn0 prefixlen 64 scopeid 0x2
enc0: flags=0<> mtu 1536
priority: 0
trunk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr macaddress
priority: 0
trunk: trunkproto failover
trunkport iwn0
trunkport em0 master,active
groups: trunk egress
media: Ethernet autoselect
status: active
inet 192.168.1.102 netmask 0xffffff00 broadcast 192.168.1.255
inet6 fe80::21f:16ff:fe1f:dae3%trunk0 prefixlen 64 scopeid 0x5
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33204
priority: 0
groups: pflog
$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
$ ping -v -c 1 -w 1 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
--- 192.168.1.1 ping statistics ---
1 packets transmitted, 0 packets received, 100.0% packet loss
Any ideas?