Hi Claudio,
I've been running your patch for a while now with no issues at all, thanks!
I'm still having the problem below, have you seen that somewhere else?
Rimi
Le 8 avr. 2012 ` 16:26, Rimi Philippe a icrit :
> PE2 marks the route as announced, but doesn't announce it. It's really clear
in the syslog
>
> System Reboot:
> Apr 8 16:10:43 g-fw1 bgpd[26997]: Rib Loc-RIB: neighbor 1.1.0.21 (v-gw1)
AS65100: update rd 2.2.2.2:40 10.0.0.0/24 via 1.1.0.21
> Apr 8 16:10:43 g-fw1 bgpd[26997]: Rib Loc-RIB: neighbor 1.1.0.21 (v-gw1)
AS65100: update rd 2.2.2.2:20 172.16.39.0/24 via 1.1.0.21
> Apr 8 16:10:43 g-fw1 bgpd[26997]: Rib Loc-RIB: neighbor 1.1.0.21 (v-gw1)
AS65100: update rd 2.2.2.2:99 A.A.A.A/28 via 1.1.0.21
> Apr 8 16:10:43 g-fw1 bgpd[12809]: nexthop 1.1.0.21 now valid: via 1.1.0.12
>
> Config edit and bgpctl reload on PE2
> Apr 8 16:14:11 g-fw1 bgpd[26997]: Rib Loc-RIB: neighbor 1.1.0.21 (v-gw1)
AS65100: update rd 2.2.2.2:99 C.C.C.C/28 via 1.1.0.21
>
>
> Here are the outputs
>
> Error State:
> PE1
> # bgpctl show fib table 99
> flags: * = valid, B = BGP, C = Connected, S = Static
> N = BGP Nexthop reachable via this route
> r = reject route, b = blackhole route
>
> flags prio destination gateway
> *S 8 0.0.0.0/0 1.2.0.1
> *C 0 127.0.0.0/8 link#0
> * 4 1.2.0.1/32 1.2.0.1
> *B 48 A.A.A.A/28 1.1.0.12
> *C 0 ::1/128 link#0
>
> # bgpctl show rib VPNv4
> flags: * = Valid, > = Selected, I = via IBGP, A = Announced
> origin: i = IGP, e = EGP, ? = Incomplete
>
> flags destination gateway lpref med aspath origin
> AI*> rd 1.1.1.1:99 0.0.0.0/0 rd 0:0 0.0.0.0 100 0 i
> I*> rd 2.2.2.2:40 10.0.0.0/24 1.1.0.12 100 0 i
> AI*> rd 1.1.1.1:40 10.1.0.0/24 rd 0:0 0.0.0.0 100 0 i
> AI*> rd 1.1.1.1:30 172.16.33.0/24 rd 0:0 0.0.0.0 100 0 i
> AI*> rd 1.1.1.1:20 172.16.35.0/24 rd 0:0 0.0.0.0 100 0 i
> AI*> rd 1.1.1.1:50 172.16.36.0/24 rd 0:0 0.0.0.0 100 0 i
> I*> rd 2.2.2.2:20 172.16.39.0/24 1.1.0.12 100 0 i
> AI*> rd 1.1.1.1:99 1.2.0.1/32 rd 0:0 0.0.0.0 100 0 i
> I*> rd 2.2.2.2:99 A.A.A.A/28 1.1.0.12 100 0 i
>
> PE2
> Config
> rdomain 99 {
> descr "Public"
> rd 2.2.2.2:99
> import-target rt 2.2.2.2:99
> import-target rt 1.1.1.1:99
> export-target rt 2.2.2.2:99
> depend on mpe99
> network A.A.A.A/28
> network C.C.C.C/28 set nexthop 1.1.0.12
> }
>
>
> # bgpctl show fib table 99
> flags: * = valid, B = BGP, C = Connected, S = Static
> N = BGP Nexthop reachable via this route
> r = reject route, b = blackhole route
>
> flags prio destination gateway
> *B 48 0.0.0.0/0 1.1.0.21
> *C 0 127.0.0.0/8 link#0
> *B 48 1.2.0.1/32 1.1.0.21
> *C 4 A.A.A.A/28 link#2
> *S 8 B.B.B.B/28 1.3.0.1
> *S 8 C.C.C.C/28 1.3.0.1
> *C 0 ::1/128 link#0
>
> # bgpctl show rib VPNv4
> flags: * = Valid, > = Selected, I = via IBGP, A = Announced
> origin: i = IGP, e = EGP, ? = Incomplete
>
> flags destination gateway lpref med aspath origin
> I*> rd 1.1.1.1:99 0.0.0.0/0 1.1.0.21 100 0 i
> AI*> rd 2.2.2.2:40 10.0.0.0/24 rd 0:0 0.0.0.0 100 0 i
> I*> rd 1.1.1.1:40 10.1.0.0/24 1.1.0.21 100 0 i
> I*> rd 1.1.1.1:30 172.16.33.0/24 1.1.0.21 100 0 i
> I*> rd 1.1.1.1:20 172.16.35.0/24 1.1.0.21 100 0 i
> I*> rd 1.1.1.1:50 172.16.36.0/24 1.1.0.21 100 0 i
> AI*> rd 2.2.2.2:20 172.16.39.0/24 rd 0:0 0.0.0.0 100 0 i
> I*> rd 1.1.1.1:99 1.2.0.1/32 1.1.0.21 100 0 i
> AI*> rd 2.2.2.2:99 A.A.A.A/28 rd 0:0 0.0.0.0 100 0 i
> AI*> rd 2.2.2.2:99 C.C.C.C/28 rd 0:0 0.0.0.0 100 0 i
>
>
>
> Working State (after changing PE2 config and running bgpctl reload)
> PE1
>
> # bgpctl show fib table 99
> flags: * = valid, B = BGP, C = Connected, S = Static
> N = BGP Nexthop reachable via this route
> r = reject route, b = blackhole route
>
> flags prio destination gateway
> *S 8 0.0.0.0/0 1.2.0.1
> *C 0 127.0.0.0/8 link#0
> * 4 1.2.0.1/32 1.2.0.1
> *B 48 A.A.A.A/28 1.1.0.12
> *B 48 C.C.C.C/28 1.1.0.12
> *C 0 ::1/128 link#0
>
> # bgpctl show rib VPNv4
> flags: * = Valid, > = Selected, I = via IBGP, A = Announced
> origin: i = IGP, e = EGP, ? = Incomplete
>
> flags destination gateway lpref med aspath origin
> AI*> rd 1.1.1.1:99 0.0.0.0/0 rd 0:0 0.0.0.0 100 0 i
> I*> rd 2.2.2.2:40 10.0.0.0/24 1.1.0.12 100 0 i
> AI*> rd 1.1.1.1:40 10.1.0.0/24 rd 0:0 0.0.0.0 100 0 i
> AI*> rd 1.1.1.1:30 172.16.33.0/24 rd 0:0 0.0.0.0 100 0 i
> AI*> rd 1.1.1.1:20 172.16.35.0/24 rd 0:0 0.0.0.0 100 0 i
> AI*> rd 1.1.1.1:50 172.16.36.0/24 rd 0:0 0.0.0.0 100 0 i
> I*> rd 2.2.2.2:20 172.16.39.0/24 1.1.0.12 100 0 i
> AI*> rd 1.1.1.1:99 1.2.0.1/32 rd 0:0 0.0.0.0 100 0 i
> I*> rd 2.2.2.2:99 A.A.A.A/28 1.1.0.12 100 0 i
> I*> rd 2.2.2.2:99 C.C.C.C/28 1.1.0.12 100 0 i
>
>
> PE2
>
> Config
> rdomain 99 {
> descr "Public"
> rd 2.2.2.2:99
> import-target rt 2.2.2.2:99
> import-target rt 1.1.1.1:99
> export-target rt 2.2.2.2:99
> depend on mpe99
> network A.A.A.A/28
> network C.C.C.C/28 set nexthop self
> }
>
> # bgpctl show fib table 99
> flags: * = valid, B = BGP, C = Connected, S = Static
> N = BGP Nexthop reachable via this route
> r = reject route, b = blackhole route
>
> flags prio destination gateway
> *B 48 0.0.0.0/0 1.1.0.21
> *C 0 127.0.0.0/8 link#0
> *B 48 1.2.0.1/32 1.1.0.21
> *C 4 A.A.A.A/28 link#2
> *S 8 B.B.B.B/28 1.3.0.1
> *S 8 C.C.C.C/28 1.3.0.1
> *C 0 ::1/128 link#0
>
> # bgpctl show rib VPNv4
> flags: * = Valid, > = Selected, I = via IBGP, A = Announced
> origin: i = IGP, e = EGP, ? = Incomplete
>
> flags destination gateway lpref med aspath origin
> I*> rd 1.1.1.1:99 0.0.0.0/0 1.1.0.21 100 0 i
> AI*> rd 2.2.2.2:40 10.0.0.0/24 rd 0:0 0.0.0.0 100 0 i
> I*> rd 1.1.1.1:40 10.1.0.0/24 1.1.0.21 100 0 i
> I*> rd 1.1.1.1:30 172.16.33.0/24 1.1.0.21 100 0 i
> I*> rd 1.1.1.1:20 172.16.35.0/24 1.1.0.21 100 0 i
> I*> rd 1.1.1.1:50 172.16.36.0/24 1.1.0.21 100 0 i
> AI*> rd 2.2.2.2:20 172.16.39.0/24 rd 0:0 0.0.0.0 100 0 i
> I*> rd 1.1.1.1:99 1.2.0.1/32 1.1.0.21 100 0 i
> AI*> rd 2.2.2.2:99 A.A.A.A/28 rd 0:0 0.0.0.0 100 0 i
> AI*> rd 2.2.2.2:99 C.C.C.C/28 rd 0:0 0.0.0.0 100 0 i
>
>
> Le 8 avr. 2012 ` 15:34, Claudio Jeker a icrit :
>
>> On Sun, Apr 08, 2012 at 12:56:52AM +0200, Rimi Philippe wrote:
>>> Hi Claudio,
>>> just finished building it all and it seems it works great, very
>>> impressive. Thank you!
>>> I'll be running a few tests tomorrow to see if it's stable on the lab,
>>> I'll keep you posted.
>>>
>>> BTW when testing some network statements I think I might have hit a bug.
>>>
>>> A.A.A.A is a connected route
>>> B.B.B.B is a static route (route -T 99 add B.B.B.B/28 3.3.3.3)
>>>
>>> Config:
>>> rdomain 99 {
>>> rd 1.1.1.1:99
>>> import-target rt 1.1.1.1:99
>>> import-target rt 2.2.2.2:99
>>> export-target rt 1.1.1.1:99
>>> depend on mpe99
>>> network A.A.A.A/28
>>> network B.B.B.B/28
>>> }
>>>
>>>
>>> With this config, on PE2 I never get any BGP updates for B.B.B.B (even
>>> though it's marked as announced on PE1).
>>>
>>> Now I edit the config :
>>> network B.B.B.B/28 set nexthop self
>>> +bgpctl reload
>>>
>>> Route is now announced and I get the update on PE2, everything ok.
>>>
>>> Any ideas?
>>>
>>
>> Please look with bgpctl show fib table 99 and bgpctl show rib VPNv4 if the
>> prefix is showing up. Because it does work for me (with my very limited
>> testing).
>>
>> --
>> :wq Claudio