mpls + sr + bgp

 

https://github.com/FRRouting/frr/issues/6835

Topology:

leaf01 <---> spine02 <---> leaf02
(put "x" in "[ ]" if you already tried following)
[x] Did you check if this is a duplicate issue?
[ ] Did you test it on the latest FRRouting/frr master branch?

Expected behavior
ospfd handles LSDB update without becoming unstable and crashing

Configs

# leaf01
leaf01# sh run
Building configuration...

Current configuration:
!
frr version 7.4+cl4u1
frr defaults datacenter
hostname leaf01
log syslog
zebra nexthop proto only
service integrated-vtysh-config
!
interface swp52
 ip ospf network point-to-point
!
router bgp 11
 neighbor 100.64.0.2 remote-as internal
 neighbor 100.64.0.2 update-source 100.64.0.1
 !
 address-family ipv4 vpn
  neighbor 100.64.0.2 activate
 exit-address-family
!
router bgp 11 vrf stuff
 neighbor 10.0.0.2 remote-as external
 !
 address-family ipv4 unicast
  label vpn export 101
  rd vpn export 100.64.0.1:11
  rt vpn import 100.64.0.3:11
  rt vpn export 100.64.0.1:11
  export vpn
  import vpn
 exit-address-family
!
router ospf
 network 100.64.0.0/24 area 0
 network 192.168.0.0/16 area 0
 capability opaque
 segment-routing on
 segment-routing global-block 10000 10999
 segment-routing node-msd 16
 segment-routing prefix 100.64.0.1/32 index 50
 router-info area
!
mpls label global-block 1000 1999
!
line vty
!
end
============================
# leaf02
leaf02# show run
Building configuration...

Current configuration:
!
Warning: connecting to ospfd...success!
frr version 7.4+cl4u1
frr defaults datacenter
hostname leaf02
log syslog
zebra nexthop proto only
service integrated-vtysh-config
!
debug ospf lsa generate
debug ospf sr
!
interface swp52
 ip ospf network point-to-point
!
router bgp 11
 neighbor 100.64.0.1 remote-as internal
 neighbor 100.64.0.1 update-source 100.64.0.2
 !
 address-family ipv4 vpn
  neighbor 100.64.0.1 activate
 exit-address-family
!
router bgp 11 vrf stuff
 neighbor 20.0.0.2 remote-as external
 !
 address-family ipv4 unicast
  label vpn export 202
  rd vpn export 100.64.0.3:11
  rt vpn import 100.64.0.1:11
  rt vpn export 100.64.0.3:11
  export vpn
  import vpn
 exit-address-family
!
router ospf
 network 100.64.0.0/24 area 0
 network 192.168.0.0/16 area 0
 capability opaque
 segment-routing on
 segment-routing global-block 20000 20999
 segment-routing node-msd 16
 segment-routing prefix 100.64.0.2/32 index 50
 router-info area
!
mpls label global-block 2000 2999
!
line vty
!
end
=======================
# spine02
spine02# sh run
Building configuration...

Current configuration:
!
frr version 7.4+cl4u1
frr defaults datacenter
hostname spine02
log syslog informational
zebra nexthop proto only
service integrated-vtysh-config
!
interface swp1
 ip ospf network point-to-point
!
interface swp2
 ip ospf network point-to-point
!
router ospf
 network 100.64.0.0/24 area 0
 network 192.168.0.0/16 area 0
 capability opaque
 segment-routing on
 segment-routing global-block 30000 30999
 segment-routing node-msd 16
 segment-routing prefix 100.64.0.3/32 index 50
 router-info area
!
mpls label global-block 3000 3999
!
line vty
!
end

 

posted on 2020-08-19 16:19  tycoon3  阅读(329)  评论(0)    收藏  举报

导航