Open toshi01kudo opened 3 years ago
最初はSR-MPLS側にもルートが伝搬できていなかったが、SRv6側のNext-hop情報の問題だった。
何故かNext-hop情報がバグっており、ac18:2204::
という謎のアドレス宛に送るよう依頼していた。
eBGPだが、next-hop-self
を適用して、正常なNext-hop情報になり、ルートが正しく伝搬されるようになった。
バグっている状態:
RP/0/RP0/CPU0:cisco-kudo-01#show bgp vpnv4 uni nei 172.24.34.3 advertised-routes
Wed Dec 30 06:34:27.729 UTC
Network Next Hop From AS Path
Route Distinguisher: 100.64.10.4:10
100.64.10.4/32 172.24.34.4 Local 65091?
Route Distinguisher: 100.64.10.5:10
100.64.10.5/32 ac18:2204:: fd00:5:5::5 65091?
100.64.10.19/32 ac18:2204:: fd00:5:5::5 65091 65019?
172.24.19.0/24 ac18:2204:: fd00:5:5::5 65091?
Route Distinguisher: 100.64.10.6:10
100.64.10.6/32 ac18:2204:: fd00:6:6::6 65091?
100.64.10.29/32 ac18:2204:: fd00:6:6::6 65091 65029?
172.24.29.0/24 ac18:2204:: fd00:6:6::6 65091?
(...snipped...)
Config変更後:
RP/0/RP0/CPU0:cisco-kudo-01(config-bgp-nbr-af)#show comm c d
Wed Dec 30 06:37:31.860 UTC
Building configuration...
!! IOS XR Configuration 7.0.1
router bgp 65091
neighbor 172.24.34.3
address-family vpnv4 unicast
+ next-hop-self
!
!
!
end
RP/0/RP0/CPU0:cisco-kudo-01#show bgp vpnv4 uni nei 172.24.34.3 advertised-routes
Wed Dec 30 06:37:42.113 UTC
Network Next Hop From AS Path
Route Distinguisher: 100.64.10.4:10
100.64.10.4/32 172.24.34.4 Local 65091?
Route Distinguisher: 100.64.10.5:10
100.64.10.5/32 172.24.34.4 fd00:5:5::5 65091?
100.64.10.19/32 172.24.34.4 fd00:5:5::5 65091 65019?
172.24.19.0/24 172.24.34.4 fd00:5:5::5 65091?
Route Distinguisher: 100.64.10.6:10
100.64.10.6/32 172.24.34.4 fd00:6:6::6 65091?
100.64.10.29/32 172.24.34.4 fd00:6:6::6 65091 65029?
172.24.29.0/24 172.24.34.4 fd00:6:6::6 65091?
(...snipped...)
ASBRからルート情報が共有されているのが見えている。しかし、受信側では受け取りつつも、なぜかActiveなルート情報として出現しない。。
XRv-01 (ASBR)
RP/0/RP0/CPU0:cisco-kudo-01#show bgp vpnv4 uni nei fd00:5:5::5 advertised-rout$
Wed Dec 30 06:48:56.143 UTC
Network Next Hop From AS Path
Route Distinguisher: 100.64.10.1:10
100.64.10.1/32 fd00:4:4::4 172.24.34.3 65090?
100.64.10.18/32 fd00:4:4::4 172.24.34.3 65090 65018?
172.24.18.0/24 fd00:4:4::4 172.24.34.3 65090?
Route Distinguisher: 100.64.10.2:10
100.64.10.2/32 fd00:4:4::4 172.24.34.3 65090?
100.64.10.28/32 fd00:4:4::4 172.24.34.3 65090 65028?
172.24.28.0/24 fd00:4:4::4 172.24.34.3 65090?
XRv-02 (PER)
RP/0/RP0/CPU0:cisco-kudo-02#show bgp vpnv4 uni nei fd00:4:4::4 received r
Wed Dec 30 06:50:40.448 UTC
BGP router identifier 100.64.0.5, local AS number 65091
BGP generic scan interval 60 secs
Non-stop routing is enabled
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 932
BGP NSR Initial initsync version 13 (Reached)
BGP NSR/ISSU Sync-Group versions 0/0
BGP scan interval 60 secs
Status codes: s suppressed, d damped, h history, * valid, > best i - internal, r RIB-failure, S stale, N Nexthop-discard Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path Route Distinguisher: 100.64.10.1:10
RP/0/RP0/CPU0:cisco-kudo-02#show route vrf UG-A Wed Dec 30 06:50:58.746 UTC
Codes: C - connected, S - static, R - RIP, B - BGP, (>) - Diversion path D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - ISIS, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, su - IS-IS summary null, * - candidate default U - per-user static route, o - ODR, L - local, G - DAGR, l - LISP A - access/subscriber, a - Application route M - mobile route, r - RPL, t - Traffic Engineering, (!) - FRR Backup path
Gateway of last resort is not set
B 100.64.10.4/32 [200/0] via fd00:4:4::4 (nexthop in vrf default), 00:27:26 L 100.64.10.5/32 is directly connected, 04:15:35, Loopback10 B 100.64.10.6/32 [200/0] via fd00:6:6::6 (nexthop in vrf default), 00:44:52 B 100.64.10.19/32 [20/0] via 172.24.19.9, 01:22:08 B 100.64.10.29/32 [200/0] via fd00:6:6::6 (nexthop in vrf default), 00:44:52 C 172.24.19.0/24 is directly connected, 04:15:22, GigabitEthernet0/0/0/0.19 L 172.24.19.5/32 is directly connected, 04:15:22, GigabitEthernet0/0/0/0.19 B 172.24.29.0/24 [200/0] via fd00:6:6::6 (nexthop in vrf default), 00:44:52
おそらくSRv6側の問題。SRv6環境内部にSR-MPLSのルートが伝搬できない。ASBR同士のPingも不可。