BGP SOO 防環機制
阿新 • • 發佈:2018-12-30
R04#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R04(config)#
R04(config)#inter
R04(config)#interface e
R04(config)#interface ethernet 0/1
R04(config-if)#sh
R04(config-if)#shutdown
R04(config-if)#
*Sep 11 11:22:11.075: %BGP-5-NBR_RESET: Neighbor 10.254.0.78 reset (Interface flap)
*Sep 11 11:22:11.076: %BGP-5-ADJCHANGE: neighbor 10.254.0.78 vpn vrf GREEN Down Interface flap
*Sep 11 11:22:11.076: %BGP_SESSION-5-ADJCHANGE: neighbor 10.254.0.78 IPv4 Unicast vpn vrf GREEN topology base removed from session Interface flap
R04(config-if)#
*Sep 11 11:22:13.045: %LINK-5-CHANGED: Interface Ethernet0/1, changed state to administratively down
*Sep 11 11:22:14.046: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/1, changed state to down
R04(config-if)#no shu
R04(config-if)#no shutdown
R04(config-if)#
R04(config-if)#end
R04#wr
Building configuration...
[OK]
R04#wr
Building configuration...
[OK]
R04#wr
Building configuration...
[OK]
R04#wr
Building configuration...
[OK]
R04#w
*Sep 11 11:23:22.537: %SYS-5-CONFIG_I: Configured from console by console
R04#wr
Building configuration...
[OK]
R04#wr
Building configuration...
[OK]
R04#wr
Building configuration...
[OK]
R04#wr
*Sep 11 11:23:23.324: %LINK-3-UPDOWN: Interface Ethernet0/1, changed state to up
*Sep 11 11:23:24.326: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/1, changed state to up
R04#wr
Building configuration...
[OK]
R04#wr
Building configuration...
[OK]
R04#wr
Building configuration...
[OK]
R04#wr
Building configuration...
[OK]
R04#
R04#
R04#
*Sep 11 11:23:27.807: %BGP-3-NOTIFICATION: received from neighbor 10.254.0.78 active 6/0 (CEASE: unknown subcode) 0 bytes
R04#
*Sep 11 11:23:27.807: %BGP-5-NBR_RESET: Neighbor 10.254.0.78 active reset (BGP Notification received)
*Sep 11 11:23:27.807: %BGP-5-ADJCHANGE: neighbor 10.254.0.78 active vpn vrf GREEN Down BGP Notification received
*Sep 11 11:23:27.807: %BGP_SESSION-5-ADJCHANGE: neighbor 10.254.0.78 IPv4 Unicast vpn vrf GREEN topology base removed from session BGP Notification received
R04#
*Sep 11 11:23:39.194: %BGP-5-ADJCHANGE: neighbor 10.254.0.78 vpn vrf GREEN Up
R04#
R04#
R04#
R04#show bgp vpnv4 uni
R04#show bgp vpnv4 unicast al
R04#show bgp vpnv4 unicast all 10.2.0.0/16
BGP routing table entry for 65002:156:10.2.0.0/16, version 136
Paths: (2 available, best #1, table GREEN)
Advertised to update-groups:
2
Refresh Epoch 1
65002, (aggregated by 65002 10.255.1.16)
10.254.0.78 from 10.254.0.78 (10.255.1.16)
Origin IGP, metric 0, localpref 100, valid, external, atomic-aggregate, best
Extended Community: SoO:65002:156 RT:65002:1---------------shutdown和no shutdown ,就是重重新整理bgp,soo這個機制就生效了
mpls labels in/out 39/nolabel
rx pathid: 0, tx pathid: 0x0
Refresh Epoch 2
65002, (aggregated by 65002 10.255.1.15)
10.255.1.3 (metric 11) from 10.255.1.1 (10.255.1.1)
Origin IGP, metric 0, localpref 100, valid, internal, atomic-aggregate
Extended Community: SoO:65002:156 RT:65002:1
Originator: 10.255.1.3, Cluster list: 10.255.1.1
mpls labels in/out 39/49
rx pathid: 0, tx pathid: 0
R04#
R04#
R04#
R04#
R04#
R04#
R04#
R04#show bgp vpnv4 unicast all 10.2.0.0/16
BGP routing table entry for 65002:156:10.2.0.0/16, version 136
Paths: (2 available, best #1, table GREEN)
Advertised to update-groups:
2
Refresh Epoch 1
65002, (aggregated by 65002 10.255.1.16)
10.254.0.78 from 10.254.0.78 (10.255.1.16)
Origin IGP, metric 0, localpref 100, valid, external, atomic-aggregate, best
Extended Community: SoO:65002:156 RT:65002:1
mpls labels in/out 39/nolabel
rx pathid: 0, tx pathid: 0x0
Refresh Epoch 2
65002, (aggregated by 65002 10.255.1.15)
10.255.1.3 (metric 11) from 10.255.1.1 (10.255.1.1)
Origin IGP, metric 0, localpref 100, valid, internal, atomic-aggregate
Extended Community: SoO:65002:156 RT:65002:1
Originator: 10.255.1.3, Cluster list: 10.255.1.1
mpls labels in/out 39/49
rx pathid: 0, tx pathid: 0
R04#
R04#
R04#
R04#
R04#
R04#
R04#
R04#show bgp vpnv4 uni
R04#show bgp vpnv4 unicast al
R04#show bgp vpnv4 unicast all nie
R04#show bgp vpnv4 unicast all nei
R04#show bgp vpnv4 unicast all neighbors 10.254.0.78 ad
R04#show bgp vpnv4 unicast all neighbors 10.254.0.78 advertised-routes
BGP table version is 140, local router ID is 10.255.1.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 65002:156 (default for vrf GREEN)
*>i 10.1.0.0/16 10.255.1.7 0 100 0 65002 i
*>i 10.3.0.0/16 10.255.1.5 0 100 0 65002 i
*>i 10.255.1.11/32 10.255.1.7 0 100 0 65002 ?
*>i 10.255.1.12/32 10.255.1.8 0 100 0 65002 ?
*>i 10.255.1.13/32 10.255.1.5 0 100 0 65002 ?
*>i 10.255.1.14/32 10.255.1.6 0 100 0 65002 ?
*>i 10.255.1.101/32 10.255.1.7 11 100 0 65002 ?
*>i 10.255.1.102/32 10.255.1.5 11 100 0 65002 ?
Total number of prefixes 8
R04#
R04#
R04#show bgp vpnv4 unicast all neighbors 10.254.0.78 advertised-routes
BGP table version is 140, local router ID is 10.255.1.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 65002:156 (default for vrf GREEN)
*>i 10.1.0.0/16 10.255.1.7 0 100 0 65002 i
*>i 10.3.0.0/16 10.255.1.5 0 100 0 65002 i
*>i 10.255.1.11/32 10.255.1.7 0 100 0 65002 ?
*>i 10.255.1.12/32 10.255.1.8 0 100 0 65002 ?
*>i 10.255.1.13/32 10.255.1.5 0 100 0 65002 ?
*>i 10.255.1.14/32 10.255.1.6 0 100 0 65002 ? ----這裡在通告回去的時候就沒有從冗餘閘道器(R3)學過來的路由了。
*>i 10.255.1.101/32 10.255.1.7 11 100 0 65002 ?
*>i 10.255.1.102/32 10.255.1.5 11 100 0 65002 ?
Total number of prefixes 8