Re: trunk failover on -current problem
I see similar problem with my ral(4), reported in PR 5420 http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yesnumbers=5420 See if the diff at the end of the report do you any good. also, there http://marc.info/?l=openbsd-techw=2r=1s=patch+if_trunk.h+for+ath+and+emq=b michael hamerski wrote: hi, I'm trying to do wired/wireless failover with dhcp on -current/amd64: $ cat /etc/hostname.re0 up media 100baseTX $ cat /etc/hostname.bwi0 up media DS11 nwid nwkey $ cat /etc/hostname.trunk0 trunkproto failover trunkport re0 trunkport bwi0 dhcp $ ifconfig lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33168 groups: lo inet 127.0.0.1 netmask 0xff00 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 re0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST mtu 1500 lladdr 00:18:f3:52:7b:0a trunk: trunkdev trunk0 media: Ethernet 100baseTX (100baseTX half-duplex) status: active inet6 fe80::218:f3ff:fe52:7b0a%re0 prefixlen 64 scopeid 0x1 bwi0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST mtu 1500 lladdr 00:18:f3:52:7b:0a trunk: trunkdev trunk0 groups: wlan media: IEEE802.11 DS11 (DS11 mode 11b) status: active ieee80211: nwid not displayed chan 2 bssid 00:0e:2e:8a:91:d2 26dB nwkey not displayed inet6 fe80::218:f3ff:fe46:2940%bwi0 prefixlen 64 scopeid 0x2 enc0: flags=0 mtu 1536 trunk0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr 00:18:f3:52:7b:0a trunk: trunkproto failover trunkport bwi0 active trunkport re0 master,active groups: trunk egress media: Ethernet autoselect status: active inet6 fe80::218:f3ff:fe52:7b0a%trunk0 prefixlen 64 scopeid 0x5 inet 192.168.16.72 netmask 0xff00 broadcast 192.168.16.255 I'm lucky to own both a re(4) card that hangs the system when not forced to 100baseTX and a bwi(4) that only works when forced to 11b, hence the media directives in hostname.if. I can get an IP when booting with or without wired plugged in, but if I subsequently pull the wired, it never fails over. However, if i run dhclient trunk0 again, I get an IP over wireless. Am I missing something? There's a weird two lines at end of dmesg that I've never seen. thanks, mike OpenBSD 4.2-current (GENERIC.MP) #1446: Mon Nov 12 16:39:11 MST 2007 [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 1073082368 (1023MB) avail mem = 1030402048 (982MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf06e0 (53 entries) bios0: vendor American Megatrends Inc. version 080012 date 08/22/2007 bios0: ASUSTeK Computer INC. A6Tc acpi at mainbus0 not configured mainbus0: Intel MP Specification (Version 1.4) cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD Turion(tm) 64 X2 Mobile Technology TL-50, 1607.56 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 256KB 64b/line 16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu0: apic clock running at 200MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: AMD Turion(tm) 64 X2 Mobile Technology TL-50, 1607.32 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 256KB 64b/line 16-way L2 cache cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative mpbios: bus 0 is type PCI mpbios: bus 1 is type PCI mpbios: bus 2 is type PCI mpbios: bus 3 is type PCI mpbios: bus 4 is type PCI mpbios: bus 5 is type ISA ioapic0 at mainbus0 apid 2 pa 0xfec0, version 11, 24 pins pci0 at mainbus0 bus 0: configuration mode 1 NVIDIA C51 Host rev 0xa2 at pci0 dev 0 function 0 not configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 1 not configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 2 not configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 3 not configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 4 not configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 5 not configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 6 not configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 7 not configured ppb0 at pci0 dev 3 function 0 NVIDIA C51 PCIE rev 0xa1 pci1 at ppb0 bus 1 re0 at pci1 dev 0 function 0 Realtek 8168 rev 0x01: RTL8168 2 (0x3800), apic 2 int 11 (irq 11), address 00:18:f3:52:7b:0a rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2 ppb1 at pci0 dev 4 function 0 NVIDIA C51 PCIE rev 0xa1
trunk failover on -current problem
hi, I'm trying to do wired/wireless failover with dhcp on -current/amd64: $ cat /etc/hostname.re0 up media 100baseTX $ cat /etc/hostname.bwi0 up media DS11 nwid nwkey $ cat /etc/hostname.trunk0 trunkproto failover trunkport re0 trunkport bwi0 dhcp $ ifconfig lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33168 groups: lo inet 127.0.0.1 netmask 0xff00 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 re0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST mtu 1500 lladdr 00:18:f3:52:7b:0a trunk: trunkdev trunk0 media: Ethernet 100baseTX (100baseTX half-duplex) status: active inet6 fe80::218:f3ff:fe52:7b0a%re0 prefixlen 64 scopeid 0x1 bwi0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST mtu 1500 lladdr 00:18:f3:52:7b:0a trunk: trunkdev trunk0 groups: wlan media: IEEE802.11 DS11 (DS11 mode 11b) status: active ieee80211: nwid not displayed chan 2 bssid 00:0e:2e:8a:91:d2 26dB nwkey not displayed inet6 fe80::218:f3ff:fe46:2940%bwi0 prefixlen 64 scopeid 0x2 enc0: flags=0 mtu 1536 trunk0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 lladdr 00:18:f3:52:7b:0a trunk: trunkproto failover trunkport bwi0 active trunkport re0 master,active groups: trunk egress media: Ethernet autoselect status: active inet6 fe80::218:f3ff:fe52:7b0a%trunk0 prefixlen 64 scopeid 0x5 inet 192.168.16.72 netmask 0xff00 broadcast 192.168.16.255 I'm lucky to own both a re(4) card that hangs the system when not forced to 100baseTX and a bwi(4) that only works when forced to 11b, hence the media directives in hostname.if. I can get an IP when booting with or without wired plugged in, but if I subsequently pull the wired, it never fails over. However, if i run dhclient trunk0 again, I get an IP over wireless. Am I missing something? There's a weird two lines at end of dmesg that I've never seen. thanks, mike OpenBSD 4.2-current (GENERIC.MP) #1446: Mon Nov 12 16:39:11 MST 2007 [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 1073082368 (1023MB) avail mem = 1030402048 (982MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf06e0 (53 entries) bios0: vendor American Megatrends Inc. version 080012 date 08/22/2007 bios0: ASUSTeK Computer INC. A6Tc acpi at mainbus0 not configured mainbus0: Intel MP Specification (Version 1.4) cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD Turion(tm) 64 X2 Mobile Technology TL-50, 1607.56 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 256KB 64b/line 16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu0: apic clock running at 200MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: AMD Turion(tm) 64 X2 Mobile Technology TL-50, 1607.32 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 256KB 64b/line 16-way L2 cache cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative mpbios: bus 0 is type PCI mpbios: bus 1 is type PCI mpbios: bus 2 is type PCI mpbios: bus 3 is type PCI mpbios: bus 4 is type PCI mpbios: bus 5 is type ISA ioapic0 at mainbus0 apid 2 pa 0xfec0, version 11, 24 pins pci0 at mainbus0 bus 0: configuration mode 1 NVIDIA C51 Host rev 0xa2 at pci0 dev 0 function 0 not configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 1 not configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 2 not configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 3 not configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 4 not configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 5 not configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 6 not configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 7 not configured ppb0 at pci0 dev 3 function 0 NVIDIA C51 PCIE rev 0xa1 pci1 at ppb0 bus 1 re0 at pci1 dev 0 function 0 Realtek 8168 rev 0x01: RTL8168 2 (0x3800), apic 2 int 11 (irq 11), address 00:18:f3:52:7b:0a rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2 ppb1 at pci0 dev 4 function 0 NVIDIA C51 PCIE rev 0xa1 pci2 at ppb1 bus 2 vga1 at pci2 dev 0 function 0 NVIDIA GeForce 7300 Go rev 0xa1 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) NVIDIA MCP51 Host rev 0xa2 at pci0 dev 9 function 0 not configured pcib0 at pci0 dev 10 function 0 NVIDIA