Hello, I new to bgp and I try to use it but i have some trouble with carp devices
I Have 2 peering, one work great one not My interfaces : carp0 => interface with interroute : 212.xxx.xxx.254 carp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 carp: MASTER carpdev em0 vhid 1 advbase 1 advskew 100 groups: carp inet 212.xxx.xxx.254 netmask 0xfffffffc broadcast 212.xxx.xxx.255 em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:07:e9:24:aa:38 media: Ethernet autoselect (100baseTX full-duplex) status: active inet6 fe80::207:e9ff:fe24:aa38%em0 prefixlen 64 scopeid 0x1 I use carp device because I have only 2 ip's in the subnet (my ip and the peering router) em1 => interface with neo : 83.xxx.xxx.109 My bgpd.conf : -------------------------------------------------------------------- ip_interroute="212.xx.xx.253" ip_neotelecom="64.xx.xx.148" neighbor $ip_interroute { remote-as 8928 descr "peering interroute" local-address 212.xxx.xxx.254 holdtime 180 holdtime min 3 announce self } neighbor $ip_neotelecom { remote-as 6461 descr "peering NeoTelecom" local-address 83.xxx.xxx.109 holdtime 180 holdtime min 3 announce self multihop 3 } bgp1 # bgpctl sh Neighbor AS MsgRcvd MsgSent OutQ Up/Down State/PrefixRcvd peering NeoTelecom 6461 95342 1027 0 17:04:38 197977 peering interroute 8928 300179 882 0 00:09:41 200898 When I use the carp device the bgp session works, he acquire the complete routing table. But .. bgp1 # bgpctl sh next Nexthop State 212.xxx.xxx.253 valid 64.xxx.xxx.148 valid em1 UP, Ethernet, active, 100 MBit/s bgp1 # bgpctl sh interface Interface Nexthop state Flags Link stater carp0 ok UP CARP, master em1 ok UP Ethernet, active, 100 MBit/s em0 ok UP Ethernet, active, 100 MBit/s bgp1 # bgpctl show rib 195.68.0.1 flags: * = Valid, > = Selected, I = via IBGP, A = Announced origin: i = IGP, e = EGP, ? = Incomplete flags destination gateway lpref med aspath origin *> 195.68.0.0/17 212.xxx.xxx.254 100 0 8928 8220 i * 195.68.0.0/17 83.xxx.xxx.106 100 174 6461 8220 i Now the problem is that the gateway is my self, 212.xxx.xxx.254 is the carp0 IP If I delete the carp and bring the em0 with the ip up everything works great : bgp1 # bgpctl sh next Nexthop State 212.xxx.xxx.253 valid em0 UP, Ethernet, active, 100 MBit/s 64.xxx.xxx.148 valid em1 UP, Ethernet, active, 100 MBit/s bgp1 # bgpctl show rib 195.68.0.1 flags: * = Valid, > = Selected, I = via IBGP, A = Announced origin: i = IGP, e = EGP, ? = Incomplete flags destination gateway lpref med aspath origin *> 195.68.0.0/17 212.xxx.xxx.253 100 0 8928 8220 i * 195.68.0.0/17 83.xxx.xxx.106 100 174 6461 8220 i Some Idea ? Regards Claude -- View this message in context: http://www.nabble.com/OpenBGP---carp-interface-tf2513187.html#a7008786 Sent from the openbsd user - misc mailing list archive at Nabble.com.