|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|
|||
CARP + CISCO router don't work with each other
Hello!
I've got a problem with cooperating OpenBSD CARP and CISCO router. Firstly, there are several cases to make a failover and a load balancing. Let me introduce one of them. General network concept depicts below "diagram". --------re0--------carp0(re1) ISP1----[OpenBSD+CARP]----\ SWI _____CISCO<<<-----LAN ISP2----[OpenBSD+CARP]---- /TCH-------Fe0/1 --------re0--------carp0(re1)----\ -----------------------------------PC carp0: 10.0.0.9/29 Fe0/1: 10.0.0.10/29 PC: 10.0.0.11/29 One of the configuration doesn't work and that one I need (second below). Thanks for your help or any suggestions. 1st (working) ISP1: Code:
# ifconfig re1: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:04:a7:05:ab:bd priority: 0 media: Ethernet autoselect (1000baseT full-duplex) status: active inet 10.0.0.1 netmask 0xfffffff8 broadcast 10.0.0.7 inet6 fe80::204:a7ff:fe05:abbd%re1 prefixlen 64 scopeid 0x2 carp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:00:5e:00:01:01 priority: 0 carp: MASTER carpdev re1 vhid 1 advbase 1 advskew 0 groups: carp status: master inet6 fe80::200:5eff:fe00:101%carp0 prefixlen 64 scopeid 0x9 inet 10.0.0.9 netmask 0xfffffff8 broadcast 10.0.0.15 # cat /etc/hostname.carp0 inet 10.0.0.9 255.255.255.248 10.0.0.15 vhid 1 pass arenio carpdev re1 # arp -a ? (10.0.0.2) at 00:04:a7:05:ab:cf on re1 ? (10.0.0.10) at e0:5f:b9:04:10:70 on carp0 ? (10.0.0.11) at 00:24:be:7b:6e:e6 on carp0 2nd (not working). I mean CISCO router cannot ping the 10.0.0.9 IP address and back, where above configuration works correctly and the IP address is pingable. In the other words, one of the host (PC-Windows) pings correctly 10.0.0.9 at both cases. ISP1: Code:
# ifconfig re1: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:04:a7:05:ab:bd priority: 0 media: Ethernet autoselect (1000baseT full-duplex) status: active inet 10.0.0.1 netmask 0xfffffff8 broadcast 10.0.0.7 inet6 fe80::204:a7ff:fe05:abbd%re1 prefixlen 64 scopeid 0x2 carp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 01:00:5e:00:01:01 priority: 0 carp: carpdev re1 advbase 1 balancing ip state MASTER vhid 1 advskew 0 state BACKUP vhid 2 advskew 100 groups: carp status: master inet6 fe80::204:a7ff:fe05:abbc%carp0 prefixlen 64 scopeid 0x9 inet 10.0.0.9 netmask 0xfffffff8 broadcast 10.0.0.15 # cat /etc/hostname.carp0 inet 10.0.0.9 255.255.255.248 10.0.0.15 balancing ip carpnodes 1:0,2:100 pass arek carpdev re1 # arp -a ? (10.0.0.11) at 00:24:be:7b:6e:e6 on carp0 Code:
#:~> ifconfig re1: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:04:a7:05:ab:cf priority: 0 media: Ethernet autoselect (1000baseT full-duplex) status: active inet 10.0.0.2 netmask 0xfffffff8 broadcast 10.0.0.7 inet6 fe80::204:a7ff:fe05:abcf%re1 prefixlen 64 scopeid 0x2 carp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 01:00:5e:00:01:01 priority: 0 carp: carpdev re1 advbase 1 balancing ip state BACKUP vhid 1 advskew 100 state MASTER vhid 2 advskew 0 groups: carp status: backup inet6 fe80::204:a7ff:fe05:abce%carp0 prefixlen 64 scopeid 0x9 inet 10.0.0.9 netmask 0xfffffff8 broadcast 10.0.0.15 #:~> cat /etc/hostname.carp0 inet 10.0.0.9 255.255.255.248 10.0.0.15 balancing ip carpnodes 2:0,1:100 pass arek carpdev re1 #:~> arp -a ? (10.0.0.1) at 00:04:a7:05:ab:bd on re1 ? (10.0.0.11) at 00:24:be:7b:6e:e6 on carp0 It seems that router sends icmp packets but OpenBSD doesn't reply. Code:
gw1#debug ip icmp ICMP packet debugging is on gw1# 02:07:14: ICMP: echo reply sent, src 10.0.0.10, dst 10.0.0.9, topology BASE, dscp 0 topoid 0 02:07:15: ICMP: echo reply sent, src 10.0.0.10, dst 10.0.0.9, topology BASE, dscp 0 topoid 0 02:07:16: ICMP: echo reply sent, src 10.0.0.10, dst 10.0.0.9, topology BASE, dscp 0 topoid 0 02:07:17: ICMP: echo reply sent, src 10.0.0.10, dst 10.0.0.9, topology BASE, dscp 0 topoid 0 02:07:18: ICMP: echo reply sent, src 10.0.0.10, dst 10.0.0.9, topology BASE, dscp 0 topoid 0 02:07:19: ICMP: echo reply sent, src 10.0.0.10, dst 10.0.0.9, topology BASE, dscp 0 topoid 0 02:07:20: ICMP: echo reply sent, src 10.0.0.10, dst 10.0.0.9, topology BASE, dscp 0 topoid 0 02:07:21: ICMP: echo reply sent, src 10.0.0.10, dst 10.0.0.9, topology BASE, dscp 0 topoid 0 02:07:22: ICMP: echo reply sent, src 10.0.0.10, dst 10.0.0.9, topology BASE, dscp 0 topoid 0 02:07:23: ICMP: echo reply sent, src 10.0.0.10, dst 10.0.0.9, topology BASE, dscp 0 topoid 0 02:07:24: ICMP: echo reply sent, src 10.0.0.10, dst 10.0.0.9, topology BASE, dscp 0 topoid 0 02:07:25: ICMP: echo reply sent, src 10.0.0.10, dst 10.0.0.9, topology BASE, dscp 0 topoid 0 02:07:40: ICMP: echo reply sent, src 10.0.0.10, dst 10.0.0.11, topology BASE, dscp 0 topoid 0 02:07:41: ICMP: echo reply sent, src 10.0.0.10, dst 10.0.0.11, topology BASE, dscp 0 topoid 0 02:07:42: ICMP: echo reply sent, src 10.0.0.10, dst 10.0.0.11, topology BASE, dscp 0 topoid 0 02:07:43: ICMP: echo reply sent, src 10.0.0.10, dst 10.0.0.11, topology BASE, dscp 0 topoid 0 And packets from CISCO router are not correctly routed at network. Code:
# tcpdump -n -e -ttt -i carp0 icmp tcpdump: listening on carp0, link-type EN10MB Sep 14 19:43:40.306166 00:24:be:7b:6e:e6 01:00:5e:00:01:01 0800 74: 10.0.0.11 > 10.0.0.9: icmp: echo request Sep 14 19:43:41.306917 00:24:be:7b:6e:e6 01:00:5e:00:01:01 0800 74: 10.0.0.11 > 10.0.0.9: icmp: echo request Sep 14 19:43:42.308248 00:24:be:7b:6e:e6 01:00:5e:00:01:01 0800 74: 10.0.0.11 > 10.0.0.9: icmp: echo request Sep 14 19:43:43.310005 00:24:be:7b:6e:e6 01:00:5e:00:01:01 0800 74: 10.0.0.11 > 10.0.0.9: icmp: echo request ^C 103 packets received by filter 0 packets dropped by kernel # tcpdump -n -e -ttt -i re1 icmp tcpdump: listening on re1, link-type EN10MB Sep 14 19:44:16.412720 e0:5f:b9:04:10:70 00:00:5e:00:01:01 0800 114: 10.0.0.10 > 10.0.0.9: icmp: echo request Sep 14 19:44:18.410253 e0:5f:b9:04:10:70 00:00:5e:00:01:01 0800 114: 10.0.0.10 > 10.0.0.9: icmp: echo request Sep 14 19:44:20.410299 e0:5f:b9:04:10:70 00:00:5e:00:01:01 0800 114: 10.0.0.10 > 10.0.0.9: icmp: echo request Sep 14 19:44:22.410344 e0:5f:b9:04:10:70 00:00:5e:00:01:01 0800 114: 10.0.0.10 > 10.0.0.9: icmp: echo request Sep 14 19:44:24.410389 e0:5f:b9:04:10:70 00:00:5e:00:01:01 0800 114: 10.0.0.10 > 10.0.0.9: icmp: echo request Sep 14 19:44:30.520657 00:24:be:7b:6e:e6 01:00:5e:00:01:01 0800 74: 10.0.0.11 > 10.0.0.9: icmp: echo request Sep 14 19:44:30.520723 00:04:a7:05:ab:bd 00:24:be:7b:6e:e6 0800 74: 10.0.0.9 > 10.0.0.11: icmp: echo reply Sep 14 19:44:31.523496 00:24:be:7b:6e:e6 01:00:5e:00:01:01 0800 74: 10.0.0.11 > 10.0.0.9: icmp: echo request Sep 14 19:44:31.523538 00:04:a7:05:ab:bd 00:24:be:7b:6e:e6 0800 74: 10.0.0.9 > 10.0.0.11: icmp: echo reply Sep 14 19:44:32.527124 00:24:be:7b:6e:e6 01:00:5e:00:01:01 0800 74: 10.0.0.11 > 10.0.0.9: icmp: echo request Sep 14 19:44:32.527167 00:04:a7:05:ab:bd 00:24:be:7b:6e:e6 0800 74: 10.0.0.9 > 10.0.0.11: icmp: echo reply Sep 14 19:44:33.529034 00:24:be:7b:6e:e6 01:00:5e:00:01:01 0800 74: 10.0.0.11 > 10.0.0.9: icmp: echo request Sep 14 19:44:33.529077 00:04:a7:05:ab:bd 00:24:be:7b:6e:e6 0800 74: 10.0.0.9 > 10.0.0.11: icmp: echo reply ^C 190 packets received by filter 0 packets dropped by kernel # Route table from OpenBSD (ISP1). Code:
# route show Routing tables Internet: Destination Gateway Flags Refs Use Mtu Prio Iface default 89-77-172-x.dynami UGS 0 6006 - 8 re0 10.0.0.0/29 link#2 UC 0 0 - 4 re1 10.0.0.8/29 link#9 UC 1 0 - 4 carp0 10.0.0.11 00:24:be:7b:6e:e6 UHLc 1 55994 - 4 carp0 89-77-172-x.dynami link#1 UC 1 0 - 4 re0 89-77-172-y.dynami 00:17:10:02:48:0f UHLc 1 0 - 4 re0 loopback localhost UGRS 0 0 33196 8 lo0 localhost localhost UH 1 0 33196 4 lo0 BASE-ADDRESS.MCAST localhost URS 0 0 33196 8 lo0 Route table from OpenBSD (ISP2). Code:
:~> route show Routing tables Internet: Destination Gateway Flags Refs Use Mtu Prio Iface default 46.31.34.z UGS 0 42373 - 8 re0 10.0.0.0/29 link#2 UC 0 0 - 4 re1 10.0.0.8/29 link#9 C 3 0 - 4 carp0 10.0.0.9 01:00:5e:00:01:01 HLc 0 6 - 4 lo0 10.0.0.10 e0:5f:b9:04:10:70 HLc 0 20 - 4 carp0 10.0.0.11 00:24:be:7b:6e:e6 HLc 1 130154 - 4 carp0 46.31.34/24 link#1 UC 1 0 - 4 re0 46.31.34.x 00:17:10:03:0c:4f UHLc 1 0 - 4 re0 46.31.34.y localhost UGHS 0 0 33196 8 lo0 46.31.34.z localhost UGHS 0 0 33196 8 lo0 loopback localhost UGRS 0 0 33196 8 lo0 localhost localhost UH 3 0 33196 4 lo0 192.168.4/24 link#6 C 0 0 - 4 rl3 BASE-ADDRESS.MCAST localhost URS 0 0 33196 8 lo0 Some confusing. CISCO router recognizes different MAC address than is in actual one. Please look below. MAC address has to be 0100.5e00.0101 . Code:
gw1#show arp Protocol Address Age (min) Hardware Addr Type Interface Internet 10.0.0.9 168 0000.5e00.0101 ARPA FastEthernet4 Internet 10.0.0.10 - e05f.b904.1070 ARPA FastEthernet4 Internet 10.0.0.11 0 0024.be7b.6ee6 ARPA FastEthernet4 Code:
gw1#show arp Protocol Address Age (min) Hardware Addr Type Interface Internet 10.0.0.10 - e05f.b904.1070 ARPA FastEthernet4 Internet 10.0.0.11 1 0024.be7b.6ee6 ARPA FastEthernet4 Internet 192.168.254.1 - e05f.b904.106c ARPA Vlan1 Internet 192.168.254.17 13 0024.d640.3818 ARPA Vlan1 gw1#clear arp interface fastEthernet 4 04:44:55: ARP: flushing ARP entries for interface FastEthernet4 04:44:55: IP ARP: sent rep src 10.0.0.10 e05f.b904.1070, dst 10.0.0.10 ffff.ffff.ffff FastEthernet4 04:44:55: IP ARP: sent req src 10.0.0.10 e05f.b904.1070, dst 10.0.0.11 0024.be7b.6ee6 FastEthernet4 04:44:55: IP ARP: rcvd rep src 10.0.0.11 0024.be7b.6ee6, dst 10.0.0.10 FastEthernet4 gw1#ping 10.0.0.9 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.0.0.9, timeout is 2 seconds: 04:45:11: IP ARP: creating incomplete entry for IP address: 10.0.0.9 interface FastEthernet4 04:45:11: IP ARP: sent req src 10.0.0.10 e05f.b904.1070, dst 10.0.0.9 0000.0000.0000 FastEthernet4. 04:45:13: IP ARP: sent req src 10.0.0.10 e05f.b904.1070, dst 10.0.0.9 0000.0000.0000 FastEthernet4. 04:45:15: IP ARP: sent req src 10.0.0.10 e05f.b904.1070, dst 10.0.0.9 0000.0000.0000 FastEthernet4. 04:45:17: IP ARP: sent req src 10.0.0.10 e05f.b904.1070, dst 10.0.0.9 0000.0000.0000 FastEthernet4. 04:45:19: IP ARP: sent req src 10.0.0.10 e05f.b904.1070, dst 10.0.0.9 0000.0000.0000 FastEthernet4. Success rate is 0 percent (0/5) gw1#show arp Protocol Address Age (min) Hardware Addr Type Interface Internet 10.0.0.9 0 Incomplete ARPA Internet 10.0.0.10 - e05f.b904.1070 ARPA FastEthernet4 Internet 10.0.0.11 0 0024.be7b.6ee6 ARPA FastEthernet4 Internet 192.168.254.1 - e05f.b904.106c ARPA Vlan1 Internet 192.168.254.17 14 0024.d640.3818 ARPA Vlan1 gw1#
__________________
Arenio ------------ Secure by Default Last edited by Arenio; 15th September 2013 at 07:28 PM. |
|
|||
Quote:
I don't have complete answers to your questions, but although you have provided a fair amount of information upfront, you have not disclosed what may be the most important piece of information needed -- the version of OpenBSD used. At a minimum, providing the output of the following would help shed light: $ sysctl kern.version However, providing the entire output of dmesg(8) would be better, as this provides the kernel's complete interpretation of the hardware. In reading the project's official misc@ mailing list, there have been sporadic issues with carp(4) found in 5.3-release which have already been addressed in -current. If you are unfamiliar with OpenBSD's flavors, see Section 5.1 of the official FAQ. If you are running anything older than a recent snapshot of -current, I would encourage you to retest with something more up-to-date. A subset of misc@ discussions on carp(4) can be found at the following: http://marc.info/?l=openbsd-misc&w=2&r=1&s=carp&q=b As for your questions on load balancing using carp(4), I have not ferreted out all the issues associated with the information provided, but I question whether you should be looking at relayd(8) instead. I apologize that I don't have a more complete answer to your questions. This is a relatively small community of OpenBSD users which is independent of the project proper. We don't have all answers, but we do try to further focus questions which are posed. Other members here may provide further perspective at their convenience. Last edited by ocicat; 14th September 2013 at 10:22 PM. Reason: Add marc.info link. |
|
|||
Thank you for your answer.
Additional info listed below. Code:
# sysctl kern.version kern.version=OpenBSD 5.3 (GENERIC) #50: Tue Mar 12 18:35:23 MDT 2013 deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC Code:
OpenBSD 5.3 (GENERIC) #50: Tue Mar 12 18:35:23 MDT 2013 deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Celeron(R) M processor 600MHz ("GenuineIntel" 686-class) 601 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE,PERF real mem = 1072230400 (1022MB) avail mem = 1043726336 (995MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 12/22/08, BIOS32 rev. 0 @ 0xf0010, SMBIOS rev. 2.3 @ 0xfb7f0 (45 entries) bios0: vendor American Megatrends Inc. version "080012" date 12/22/2008 acpi at bios0 function 0x0 not configured mpbios0 at bios0: Intel MP Specification 1.4 cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 100MHz mpbios0: bus 0 is type PCI mpbios0: bus 1 is type PCI mpbios0: bus 2 is type PCI mpbios0: bus 3 is type PCI mpbios0: bus 4 is type ISA ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins pcibios0 at bios0: rev 3.0 @ 0xf0000/0x10000 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf4670/272 (15 entries) pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801FBM LPC" rev 0x00) pcibios0: PCI bus #3 is the last bus bios0: ROM list: 0xc0000/0xe800! pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel 82915GM Host" rev 0x04 vga1 at pci0 dev 2 function 0 "Intel 82915GM Video" rev 0x04 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0xd0000000, size 0x10000000 inteldrm0 at vga1: apic 1 int 16 drm0 at inteldrm0 ppb0 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x04: apic 1 int 16 pci_intr_map: bus 0 dev 28 func 0 pin 3; line 3 pci_intr_map: no MP mapping found pci_intr_map: bus 0 dev 28 func 0 pin 4; line 7 pci_intr_map: no MP mapping found pci1 at ppb0 bus 1 re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x02: RTL8168C/8111C (0x3c00), apic 1 int 16, address 00:04:a7:05:ab:bc rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2 ppb1 at pci0 dev 28 function 1 "Intel 82801FB PCIE" rev 0x04: apic 1 int 17 pci_intr_map: bus 0 dev 28 func 1 pin 3; line 3 pci_intr_map: no MP mapping found pci_intr_map: bus 0 dev 28 func 1 pin 4; line 7 pci_intr_map: no MP mapping found pci2 at ppb1 bus 2 re1 at pci2 dev 0 function 0 "Realtek 8168" rev 0x02: RTL8168C/8111C (0x3c00), apic 1 int 17, address 00:04:a7:05:ab:bd rgephy1 at re1 phy 7: RTL8169S/8110S PHY, rev. 2 uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x04: apic 1 int 23 ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x04: apic 1 int 23 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd4 pci_intr_map: bus 0 dev 30 func 0 pin 1; line 11 pci_intr_map: no MP mapping found pci_intr_map: bus 0 dev 30 func 0 pin 2; line 3 pci_intr_map: no MP mapping found pci3 at ppb2 bus 3 rl0 at pci3 dev 2 function 0 "Realtek 8139" rev 0x10: apic 1 int 16, address 00:04:a7:08:af:11 rlphy0 at rl0 phy 0: RTL internal PHY rl1 at pci3 dev 3 function 0 "Realtek 8139" rev 0x10: apic 1 int 17, address 00:04:a7:08:af:10 rlphy1 at rl1 phy 0: RTL internal PHY rl2 at pci3 dev 4 function 0 "Realtek 8139" rev 0x10: apic 1 int 18, address 00:04:a7:08:af:0f rlphy2 at rl2 phy 0: RTL internal PHY rl3 at pci3 dev 5 function 0 "Realtek 8139" rev 0x10: apic 1 int 19, address 00:04:a7:08:af:0e rlphy3 at rl3 phy 0: RTL internal PHY ichpcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x04: PM disabled pciide0 at pci0 dev 31 function 2 "Intel 82801FBM SATA" rev 0x04: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 1 drive 0: <CF> wd0: 1-sector PIO, LBA, 15279MB, 31293360 sectors wd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 6 ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x04: apic 1 int 19 iic0 at ichiic0 spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-4200CL5 usb1 at uhci0: USB revision 1.0 uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1 isa0 at ichpcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 wbsio0 at isa0 port 0x2e/2: W83627HF rev 0x41 lm1 at wbsio0 port 0xa00/8: W83627HF npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support uhidev0 at uhub1 port 1 configuration 1 interface 0 "vendor 0x099a Wireless Keyboard/Mouse" rev 2.00/0.02 addr 2 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd1 at ukbd0 mux 1 wskbd1: connecting to wsdisplay0 uhidev1 at uhub1 port 1 configuration 1 interface 1 "vendor 0x099a Wireless Keyboard/Mouse" rev 2.00/0.02 addr 2 uhidev1: iclass 3/1, 5 report ids ums0 at uhidev1 reportid 1: 3 buttons, Z dir wsmouse0 at ums0 mux 0 uhid0 at uhidev1 reportid 2: input=2, output=0, feature=0 uhid1 at uhidev1 reportid 3: input=1, output=0, feature=0 uhid2 at uhidev1 reportid 4: input=0, output=0, feature=7 uhid3 at uhidev1 reportid 5: input=0, output=0, feature=7 vscsi0 at root scsibus0 at vscsi0: 256 targets softraid0 at root scsibus1 at softraid0: 256 targets root on wd0a (0687c7d2a1fd2553.a) swap on wd0b dump on wd0b carp0: state transition (vhid 1): BACKUP -> MASTER carp0: state transition (vhid 2): BACKUP -> MASTER carp0: state transition (vhid 2): MASTER -> BACKUP ISP2 dmesg: Code:
OpenBSD 5.2 (GENERIC) #278: Wed Aug 1 10:04:16 MDT 2012 deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Celeron(R) M processor 600MHz ("GenuineIntel" 686-class) 601 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,TM,SBF real mem = 1064890368 (1015MB) avail mem = 1036632064 (988MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 12/22/08, BIOS32 rev. 0 @ 0xf0010, SMBIOS rev. 2.3 @ 0xfb7f0 (45 entries) bios0: vendor American Megatrends Inc. version "080012" date 12/22/2008 acpi at bios0 function 0x0 not configured mpbios0 at bios0: Intel MP Specification 1.4 cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 100MHz mpbios0: bus 0 is type PCI mpbios0: bus 1 is type PCI mpbios0: bus 2 is type PCI mpbios0: bus 3 is type PCI mpbios0: bus 4 is type ISA ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins pcibios0 at bios0: rev 3.0 @ 0xf0000/0x10000 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf4670/272 (15 entries) pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801FBM LPC" rev 0x00) pcibios0: PCI bus #3 is the last bus bios0: ROM list: 0xc0000/0xe800! pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel 82915GM Host" rev 0x04 vga1 at pci0 dev 2 function 0 "Intel 82915GM Video" rev 0x04 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0xd0000000, size 0x10000000 inteldrm0 at vga1: apic 1 int 16 drm0 at inteldrm0 ppb0 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x04: apic 1 int 16 pci_intr_map: bus 0 dev 28 func 0 pin 3; line 3 pci_intr_map: no MP mapping found pci_intr_map: bus 0 dev 28 func 0 pin 4; line 7 pci_intr_map: no MP mapping found pci1 at ppb0 bus 1 re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x02: RTL8168C/8111C (0x3c00), apic 1 int 16, address 00:04:a7:05:ab:ce rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2 ppb1 at pci0 dev 28 function 1 "Intel 82801FB PCIE" rev 0x04: apic 1 int 17 pci_intr_map: bus 0 dev 28 func 1 pin 3; line 3 pci_intr_map: no MP mapping found pci_intr_map: bus 0 dev 28 func 1 pin 4; line 7 pci_intr_map: no MP mapping found pci2 at ppb1 bus 2 re1 at pci2 dev 0 function 0 "Realtek 8168" rev 0x02: RTL8168C/8111C (0x3c00), apic 1 int 17, address 00:04:a7:05:ab:cf rgephy1 at re1 phy 7: RTL8169S/8110S PHY, rev. 2 uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x04: apic 1 int 23 ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x04: apic 1 int 23 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd4 pci_intr_map: bus 0 dev 30 func 0 pin 1; line 11 pci_intr_map: no MP mapping found pci_intr_map: bus 0 dev 30 func 0 pin 2; line 3 pci_intr_map: no MP mapping found pci3 at ppb2 bus 3 rl0 at pci3 dev 2 function 0 "Realtek 8139" rev 0x10: apic 1 int 16, address 00:04:a7:08:af:37 rlphy0 at rl0 phy 0: RTL internal PHY rl1 at pci3 dev 3 function 0 "Realtek 8139" rev 0x10: apic 1 int 17, address 00:04:a7:08:af:36 rlphy1 at rl1 phy 0: RTL internal PHY rl2 at pci3 dev 4 function 0 "Realtek 8139" rev 0x10: apic 1 int 18, address 00:04:a7:08:af:35 rlphy2 at rl2 phy 0: RTL internal PHY rl3 at pci3 dev 5 function 0 "Realtek 8139" rev 0x10: apic 1 int 19, address 00:04:a7:08:af:34 rlphy3 at rl3 phy 0: RTL internal PHY ichpcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x04: PM disabled pciide0 at pci0 dev 31 function 2 "Intel 82801FBM SATA" rev 0x04: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 1 drive 0: <CF> wd0: 1-sector PIO, LBA, 15279MB, 31293360 sectors wd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 6 ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x04: apic 1 int 19 iic0 at ichiic0 spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-4200CL5 usb1 at uhci0: USB revision 1.0 uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1 isa0 at ichpcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 wbsio0 at isa0 port 0x2e/2: W83627HF rev 0x41 lm1 at wbsio0 port 0xa00/8: W83627HF npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support uhidev0 at uhub1 port 1 configuration 1 interface 0 "vendor 0x099a Wireless Keyboard/Mouse" rev 2.00/0.02 addr 2 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd1 at ukbd0 mux 1 wskbd1: connecting to wsdisplay0 uhidev1 at uhub1 port 1 configuration 1 interface 1 "vendor 0x099a Wireless Keyboard/Mouse" rev 2.00/0.02 addr 2 uhidev1: iclass 3/1, 5 report ids ums0 at uhidev1 reportid 1: 3 buttons, Z dir wsmouse0 at ums0 mux 0 uhid0 at uhidev1 reportid 2: input=2, output=0, feature=0 uhid1 at uhidev1 reportid 3: input=1, output=0, feature=0 uhid2 at uhidev1 reportid 4: input=0, output=0, feature=7 uhid3 at uhidev1 reportid 5: input=0, output=0, feature=7 vscsi0 at root scsibus0 at vscsi0: 256 targets softraid0 at root scsibus1 at softraid0: 256 targets root on wd0a (16b41f08c910d561.a) swap on wd0b dump on wd0b carp0: state transition (vhid 2): BACKUP -> MASTER carp0: state transition (vhid 1): BACKUP -> MASTER carp0: state transition (vhid 1): MASTER -> BACKUP carp0: state transition (vhid 2): MASTER -> BACKUP carp0: state transition (vhid 2): BACKUP -> MASTER carp0: state transition (vhid 1): BACKUP -> MASTER carp0: state transition (vhid 1): MASTER -> BACKUP carp0: state transition (vhid 1): BACKUP -> MASTER wskbd1: disconnecting from wsdisplay0 wskbd1 detached ukbd0 detached uhidev0 detached wsmouse0 detached ums0 detached uhid0 detached uhid1 detached uhid2 detached uhid3 detached uhidev1 detached carp0: state transition (vhid 1): MASTER -> BACKUP I've spend a lot of time to find the correct load balancing and failover manners. That one is the best for me, especially infrastructure depends.
__________________
Arenio ------------ Secure by Default |
|
|||
Quote:
|
|
|||
I will reinstall the old one OS and let you know about the results.
Thanks.
__________________
Arenio ------------ Secure by Default |
|
|||
So, OpenBSD 5.3 installed, the problem still occurs.
__________________
Arenio ------------ Secure by Default |
|
||||
Hello, and welcome!
I recommend you reach out to the larger OpenBSD community, via the misc@ mailing list, and provide a similar problem report there. As ocicat noted, there are only a few of us here who answer OpenBSD questions, and only a small subset will have any CARP experience. (I've only ever played with it in a lab, and that was years ago.) Above, ocicat recommended you use -current, rather than 5.3, as CARP has undergone changes since 5.3-release. You are likely going to receive similar recommendations from respondents on misc@. Installing a -current snapshot is no more difficult than installing 5.3-release. Installing -current is easy, but I don't recommend upgrading from 5.3 to -current at this time if you're a new user. In mid-August, internal clock values were increased to 64 bits (on all architectures), and an upgrade through this requires significant manual steps.I'm confused by your opening statments, because your ASCII "graphic" is indecipherable to me, and because there are at least two typos in the supporting text, making it difficult for me to understand your configuration. In particular, I notices that your CIDR is a /29, not a /30, according to your netmask. That's a good thing, because a /30 can only use two IP addresses. The /29 can address six. |
|
|||
Thanks. Bits mask corrected.
I've already sent my problem to misc@. I'll wait to the new version 5.4 and then we will see.
__________________
Arenio ------------ Secure by Default |
|
|||
You don't have to wait.
It is not clear that you understand what is -current. This information was provided to you in my first response to you from Section 5.1 of the project's official FAQ. -current is the head of the CVS repository for all of OpenBSD's source code. Even though OpenBSD 5.4 is to be officially released 1 November 2013, the source code was frozen for this version back in August in order to allow CD's be to manufactured & ready for distribution at the beginning of November. Development on OpenBSD continues even in spite of the projected 5.4 release date, & all development continues to be checked into CVS. The very latest source for OpenBSD, which right now is one month past what will available as 5.4-release, can be obtained now as 5.4-current at any of the OpenBSD FTP mirror sites. If you still unsure, study the indicated FAQ section first, then post any follow-up questions here. |
|
|||
To be specific, the latest snapshot of -current for the i386 platform can be found at the location similar to the following:
/pub/OpenBSD/snapshots/i386 ...at all mirror sites. Note that some mirrors use a slightly different path, but the above is generally the correct location for all mirrors. Again, if you have questions, ask. |
|
|||
Yes, all is clear. I got one support thing from CISCO people forum about my problem and I'll try first that one. Because I suppose the problem could be on router side.
__________________
Arenio ------------ Secure by Default |
|
|||
The problem resolved.
Final --------re0--------carp0(re1) ISP1----[OpenBSD+CARP]----\ SWI _____CISCO<<<-----LAN ISP2----[OpenBSD+CARP]---- /TCH-------Fe0/1 --------re0--------carp0(re1)----\ -----------------------------------PC re1: 10.0.0.1 re1: 10.0.0.2 carp0: 10.0.0.17/28 Fe0/1: 10.0.0.18/28 On both OpenBSD machines. Code:
arp -s 10.0.0.18 MAC_ADDRESS permanent Code:
arp 10.0.0.17 0100.5e00.0101 arpa ip route 0.0.0.0 0.0.0.0 FastEthernet4 10.0.0.17 permanent
__________________
Arenio ------------ Secure by Default |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenBSD CARP/PF | nekron99 | OpenBSD Security | 16 | 8th November 2011 11:08 PM |
CARP | Abbass | OpenBSD Security | 3 | 13th April 2011 07:22 PM |
Clustering with CARP | revzalot | OpenBSD General | 10 | 17th September 2009 04:44 AM |
carp configuration | ohhcarp | OpenBSD General | 3 | 16th April 2009 10:50 PM |