Hi there

I have a strange problem with network connectivity on a device of mine.

The setup is carp on vlan on vr(4).

The problem is that the link runs for 10minutes, 10hours or 10days and
suddenly it stops working. Doing a ifconfig vr0 down ; ifconfig vr0 up
solves the problem temporarly but as you can imagine I'd like to have a
more permanent solution.

The problem is there are no obvious indications. The port on the switch
(C 2960) stays up (and it is not errdisabled), there are no errors.
Configuring the interface 100 full or autoselect (on both switch and
device) does not make a difference. The error counters on the switch as
well as netstat -i do not show any errors.

I setup the same configuration (carp on vlan on physical interface)
using em(4) and did not run into the problem yet (3 weeks up). So I
guess I could have something to do with vr(4).

The problem appeared first after updateing 4.8 to 20101222 snapshot, and
is still present with snapshot from this week. But prior 20101222
snapshot there were no carp and vlan interfaces, just an ip on the
physical interface. So I don't know if the problem is my configuration
or something that has changed in the code...

dmesg:
OpenBSD 4.9-beta (GENERIC) #628: Tue Jan 18 14:14:07 MST 2011
    [email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD"
586-class) 499 MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX
real mem  = 268009472 (255MB)
avail mem = 253489152 (241MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/05/08, BIOS32 rev. 0 @ 0xfd088
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xe0000/0xa800
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES
vr0 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10,
address 00:0d:b9:17:c0:60
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
vr1 at pci0 dev 10 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11,
address 00:0d:b9:17:c0:61
ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
vr2 at pci0 dev 11 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 15,
address 00:0d:b9:17:c0:62
ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
glxpcib0 at pci0 dev 15 function 0 "AMD CS5536 ISA" rev 0x03: rev 3,
32-bit 3579545Hz timer, watchdog, gpio
gpio0 at glxpcib0: 32 pins
pciide0 at pci0 dev 15 function 2 "AMD CS5536 IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <CF 4GB>
wd0: 1-sector PIO, LBA, 3823MB, 7831152 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
ohci0 at pci0 dev 15 function 4 "AMD CS5536 USB" rev 0x02: irq 12,
version 1.0, legacy support
ehci0 at pci0 dev 15 function 5 "AMD CS5536 USB" rev 0x02: irq 12
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
isa0 at glxpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1
biomask 73e7 netmask ffe7 ttymask ffff
mtrr: K6-family MTRR support (2 registers)
nvram: invalid checksum
vscsi0 at root
scsibus0 at vscsi0: 256 targets
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
clock: unknown CMOS layout


ifconfig (first two octets / words of ip exchanged):
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33200
        priority: 0
        groups: lo
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0d:b9:17:c0:60
        priority: 0
        media: Ethernet 100baseTX full-duplex
        status: active
        inet6 fe80::20d:b9ff:fe17:c060%vr0 prefixlen 64 scopeid 0x1
vr1: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST>
mtu 1500
        lladdr 00:0d:b9:17:c0:61
        priority: 0
        media: Ethernet 100baseTX full-duplex
        status: active
        inet6 fe80::20d:b9ff:fe17:c061%vr1 prefixlen 64 scopeid 0x2
vr2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0d:b9:17:c0:62
        priority: 0
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet 10.11.255.253 netmask 0xfffffffc broadcast 10.11.255.255
        inet6 fe80::20d:b9ff:fe17:c062%vr2 prefixlen 64 scopeid 0x3
enc0: flags=0<>
        priority: 0
        groups: enc
        status: active
lo1: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33200
        priority: 0
        groups: lo
        inet 10.11.48.17 netmask 0xffffffff
        inet6 2001:db8:0:1000::17 prefixlen 128
vlan10: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0d:b9:17:c0:61
        priority: 0
        vlan: 10 priority: 0 parent interface: vr1
        groups: vlan
        status: active
        inet6 fe80::20d:b9ff:fe17:c061%vlan10 prefixlen 64 scopeid 0x7
        inet 10.11.49.252 netmask 0xffffff00 broadcast 10.11.49.255
        inet6 2001:db8:1::1a prefixlen 64
vlan100: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0d:b9:17:c0:61
        priority: 0
        vlan: 100 priority: 0 parent interface: vr1
        groups: vlan
        status: active
        inet6 fe80::20d:b9ff:fe17:c061%vlan100 prefixlen 64 scopeid 0x8
        inet 10.11.50.252 netmask 0xffffff00 broadcast 10.11.50.255
        inet6 2001:db8:1:1::1a prefixlen 64
vlan2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0d:b9:17:c0:60
        priority: 0
        vlan: 2 priority: 0 parent interface: vr0
        groups: vlan
        status: active
        inet6 fe80::20d:b9ff:fe17:c060%vlan2 prefixlen 64 scopeid 0x9
        inet 10.11.0.18 netmask 0xfffffe00 broadcast 10.11.1.255
vlan200: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0d:b9:17:c0:61
        priority: 0
        vlan: 200 priority: 0 parent interface: vr1
        groups: vlan
        status: active
        inet6 fe80::20d:b9ff:fe17:c061%vlan200 prefixlen 64 scopeid 0xa
        inet 10.11.52.4 netmask 0xfffffff8 broadcast 10.11.52.7
vlan202: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0d:b9:17:c0:61
        priority: 0
        vlan: 202 priority: 0 parent interface: vr1
        groups: vlan
        status: active
        inet6 fe80::20d:b9ff:fe17:c061%vlan202 prefixlen 64 scopeid 0xb
        inet 10.11.52.12 netmask 0xfffffff8 broadcast 10.11.52.15
vlan203: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0d:b9:17:c0:61
        priority: 0
        vlan: 203 priority: 0 parent interface: vr1
        groups: vlan
        status: active
        inet6 fe80::20d:b9ff:fe17:c061%vlan203 prefixlen 64 scopeid 0xc
        inet 10.11.52.20 netmask 0xfffffff8 broadcast 10.11.52.23
        inet6 2001:db8:2000::1a prefixlen 48
vlan909: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0d:b9:17:c0:60
        priority: 0
        vlan: 909 priority: 0 parent interface: vr0
        groups: vlan egress
        status: active
        inet6 fe80::20d:b9ff:fe17:c060%vlan909 prefixlen 64 scopeid 0xd
        inet 10.11.48.81 netmask 0xffffffc0 broadcast 10.11.48.127
        inet6 2001:db8:0:1001::17 prefixlen 64
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33200
        priority: 0
        groups: pflog
carp10: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:00:5e:00:01:0a
        priority: 0
        carp: MASTER carpdev vlan10 vhid 10 advbase 1 advskew 0
        groups: carp
        status: master
        inet6 fe80::200:5eff:fe00:10a%carp10 prefixlen 64 scopeid 0xe
        inet 10.11.49.254 netmask 0xffffff00 broadcast 10.11.49.255
        inet6 2001:db8:1::1 prefixlen 64
carp100: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:00:5e:00:01:64
        priority: 0
        carp: MASTER carpdev vlan100 vhid 100 advbase 1 advskew 0
        groups: carp
        status: master
        inet6 fe80::200:5eff:fe00:164%carp100 prefixlen 64 scopeid 0xf
        inet 10.11.50.254 netmask 0xffffff00 broadcast 10.11.50.255
        inet6 2001:db8:1:1::1 prefixlen 64
carp200: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:00:5e:00:01:c8
        priority: 0
        carp: MASTER carpdev vlan200 vhid 200 advbase 1 advskew 0
        groups: carp
        status: master
        inet6 fe80::200:5eff:fe00:1c8%carp200 prefixlen 64 scopeid 0x10
        inet 10.11.52.6 netmask 0xfffffff8 broadcast 10.11.52.7
carp202: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:00:5e:00:01:ca
        priority: 0
        carp: MASTER carpdev vlan202 vhid 202 advbase 1 advskew 0
        groups: carp
        status: master
        inet6 fe80::200:5eff:fe00:1ca%carp202 prefixlen 64 scopeid 0x11
        inet 10.11.52.14 netmask 0xfffffff8 broadcast 10.11.52.15
carp203: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:00:5e:00:01:cb
        priority: 0
        carp: MASTER carpdev vlan203 vhid 203 advbase 1 advskew 0
        groups: carp
        status: master
        inet6 fe80::200:5eff:fe00:1cb%carp203 prefixlen 64 scopeid 0x12
        inet 10.11.52.22 netmask 0xfffffff8 broadcast 10.11.52.23
        inet6 2001:db8:2000::1 prefixlen 48

C 2960 Config (Fa0/7 connected to vr0, Fa0/8 connected to vr1)
!
interface FastEthernet0/7
 description rt1a.edge
 switchport trunk allowed vlan 2,909
 switchport mode trunk
 speed 100
 duplex full
!
interface FastEthernet0/8
 description rt1a.edge
 switchport trunk allowed vlan 10,100,200,202,203
 switchport mode trunk
 speed 100
 duplex full
!

Reply via email to