Reyk Floeter wrote: > On Wed, Nov 08, 2006 at 01:01:39AM +0100, Markus Bergkvist wrote: > > don't do dhclient ral0, do a dhclient trunk0 after setting up trunk. > > # ifconfig fxp0 up > # ifconfig ral0 nwid himmet_wlan up > # ifconfig trunk0 trunkproto failover trunkport fxp0 trunkport ral0 up > # dhclient trunk0 > > if this doesn't solve your problem, go ahead with reading my reply... > Ok, now I feel kind of stupid. I knew that I should not do dhclient ral0. The trunk failover seems to be working on the client now, actually quite cool to plug and unplug the cable and watch it redirect the traffic :-)
But of course, the problem does not end here, but this time it is probably the AP that is ill-configured. The tcpdump shows that the failover from fxp0 to ral0 works but there is no echo response from the ap. # tcpdump -veni ral0 -y ieee802_11_radio tcpdump: listening on ral0, link-type IEEE802_11_RADIO 00:38:03.911611 0:2:a5:b8:71:b5 > 0:8:c7:25:c:9, bssid 0:13:f7:2a:f4:ab, > DS (seq 416): 802.11: data: snap 0:0:0:8:0 192.168.0.5 > 192.168.0.1: icmp: echo request (id:a604 seq:26) (ttl 255, id 58698, len 84), <radiotap v0, 18Mbit/s, chan 11, 11g, signal 115dB> ... ^C 21 packets received by filter 0 packets dropped by kernel First, I thought it was because fxp0 and ral0 on the host was on different sub-nets but now they are both on 192.168.0/24 and so is trunk0. So i added a bridge # ifconfig bridge0 create # brconfig bridge0 add fxp0 add ral0 up but that didn't help either. So, I did ping 192.168.0.2 (ral0 on host) from the host but the packages gets lost. I figure something is wrong with my routing table, but I can't see what I've done wrong, getting out of ideas here. /Markus # ifconfig -M ral0 ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:13:f7:2a:f4:ab media: IEEE802.11 OFDM54 mode 11g hostap (autoselect mode 11g hostap) status: active ieee80211: nwid himmet_wlan chan 11 bssid 00:13:f7:2a:f4:ab 100dBm lladdr 00:02:a5:b8:71:b5 112dB 48M short_preamble assoc inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255 inet6 fe80::213:f7ff:fe2a:f4ab%ral0 prefixlen 64 scopeid 0x1 # ifconfig -A lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33224 groups: lo inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7 ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:13:f7:2a:f4:ab media: IEEE802.11 OFDM54 mode 11g hostap (autoselect mode 11g hostap) status: active ieee80211: nwid himmet_wlan chan 11 bssid 00:13:f7:2a:f4:ab 100dBm inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255 inet6 fe80::213:f7ff:fe2a:f4ab%ral0 prefixlen 64 scopeid 0x1 rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:e0:4c:83:15:bc groups: egress media: Ethernet autoselect (100baseTX full-duplex) status: active inet6 fe80::2e0:4cff:fe83:15bc%rl0 prefixlen 64 scopeid 0x2 inet 212.214.242.10 netmask 0xffffff00 broadcast 212.214.242.255 fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:08:c7:25:0c:09 media: Ethernet autoselect (100baseTX full-duplex) status: active inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 inet6 fe80::208:c7ff:fe25:c09%fxp0 prefixlen 64 scopeid 0x3 pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33224 pfsync0: flags=0<> mtu 1460 groups: carp enc0: flags=0<> mtu 1536 # ifconfig -M ral0 ral0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:02:a5:b8:71:b5 trunk: trunkdev trunk0 media: IEEE802.11 autoselect (DS1 mode 11g) status: active ieee80211: nwid himmet_wlan chan 11 bssid 00:13:f7:2a:f4:ab 118dB 100dBm nwid himmet_wlan chan 11 bssid 00:13:f7:2a:f4:ab 115dB 48M short_preamble,short_slottime inet6 fe80::213:f7ff:fe1e:a786%ral0 prefixlen 64 scopeid 0x6 # ifconfig -A lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33224 groups: lo inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 fxp0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:02:a5:b8:71:b5 trunk: trunkdev trunk0 media: Ethernet autoselect (100baseTX full-duplex) status: active inet6 fe80::202:a5ff:feb8:71b5%fxp0 prefixlen 64 scopeid 0x1 pflog0: flags=0<> mtu 33224 pfsync0: flags=0<> mtu 1460 groups: carp enc0: flags=0<> mtu 1536 ral0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:02:a5:b8:71:b5 trunk: trunkdev trunk0 media: IEEE802.11 autoselect (autoselect mode 11g) status: no network ieee80211: nwid himmet_wlan chan 11 bssid 00:13:f7:2a:f4:ab 116dB 100dBm inet6 fe80::213:f7ff:fe1e:a786%ral0 prefixlen 64 scopeid 0x6 trunk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:02:a5:b8:71:b5 trunk: trunkproto failover trunkport ral0 active trunkport fxp0 master,active groups: trunk egress media: Ethernet autoselect status: active inet 192.168.0.5 netmask 0xffffff00 broadcast 192.168.0.255 inet6 fe80::202:a5ff:feb8:71b5%trunk0 prefixlen 64 scopeid 0x7 # brconfig bridge0 bridge0: flags=41<UP,RUNNING> Configuration: priority 32768 hellotime 2 fwddelay 15 maxage 20 Interfaces: ral0 flags=3<LEARNING,DISCOVER> port 1 ifpriority 128 ifcost 55 fxp0 flags=3<LEARNING,DISCOVER> port 3 ifpriority 128 ifcost 55 Addresses (max cache: 100, timeout: 240): 00:e0:18:f7:72:4f fxp0 1 flags=0<> 00:02:a5:b8:71:b5 fxp0 0 flags=0<> # route show Routing tables Internet: Destination Gateway Flags Refs Use Mtu Interface default node212-214-242-1. UGS 22 156430 - rl0 loopback localhost UGRS 0 0 33224 lo0 localhost localhost UH 2 60 33224 lo0 192.168.0/24 link#3 UC 3 0 - fxp0 ungoliant 00:08:c7:25:0c:09 UHLc 0 4 - lo0 192.168.0.5 00:02:a5:b8:71:b5 UHLc 0 85 - fxp0 192.168.0.33 00:e0:18:f7:72:4f UHLc 3 3118 - fxp0 212.214.242/24 link#2 UC 1 0 - rl0 node212-214-242-1. 00:90:1a:40:d2:8b UHLc 24 0 - rl0 node212-214-242-10 localhost UGHS 0 7438 33224 lo0 BASE-ADDRESS.MCAST localhost URS 0 0 33224 lo0 Internet6: Destination Gateway Flags Refs Use Mtu Interface ::/104 localhost.himmet UGRS 0 0 - lo0 ::/96 localhost.himmet UGRS 0 0 - lo0 localhost.himmet localhost.himmet UH 12 0 33224 lo0 ::127.0.0.0/104 localhost.himmet UGRS 0 0 - lo0 ::224.0.0.0/100 localhost.himmet UGRS 0 0 - lo0 ::255.0.0.0/104 localhost.himmet UGRS 0 0 - lo0 ::ffff:0.0.0.0/96 localhost.himmet UGRS 0 0 - lo0 2002::/24 localhost.himmet UGRS 0 0 - lo0 2002:7f00::/24 localhost.himmet UGRS 0 0 - lo0 2002:e000::/20 localhost.himmet UGRS 0 0 - lo0 2002:ff00::/24 localhost.himmet UGRS 0 0 - lo0 fe80::/10 localhost.himmet UGRS 0 0 - lo0 fe80::%ral0/64 link#1 UC 0 0 - ral0 fe80::213:f7ff:fe2 00:13:f7:2a:f4:ab UHL 0 0 - lo0 fe80::%rl0/64 link#2 UC 0 0 - rl0 fe80::2e0:4cff:fe8 00:e0:4c:83:15:bc UHL 0 0 - lo0 fe80::%fxp0/64 link#3 UC 0 0 - fxp0 fe80::208:c7ff:fe2 00:08:c7:25:0c:09 UHL 0 0 - lo0 fe80::%lo0/64 fe80::1%lo0 U 0 0 - lo0 fe80::1%lo0 link#7 UHL 0 0 - lo0 fec0::/10 localhost.himmet UGRS 0 0 - lo0 ff01::/32 localhost.himmet UC 0 0 - lo0 ff02::%ral0/32 link#1 UC 0 0 - ral0 ff02::%rl0/32 link#2 UC 0 0 - rl0 ff02::%fxp0/32 link#3 UC 0 0 - fxp0 ff02::%lo0/32 localhost.himmet UC 0 0 - lo0