SOO 的防环机制,是在PE传递路由给CE的时候,检查出接口配置的SOO值是否与从其他MP-BGP邻居收到的VPNv4路由的SOO值一致,如果一致,就不传给CE。而不是PE根本就不接收,切记切记

 SOO 的防环机制,是在PE传递路由给CE的时候,检查出接口配置的SOO值是否与从其他MP-BGP邻居收到的VPNv4路由的SOO值一致,如果一致,就不传给CE。而不是PE根本就不接收,切记切记。
R07(config)#router bgp 65001 
R07(config-router)#add
R07(config-router)#address-family ipvr  
R07(config-router)#address-family ipv 
R07(config-router)#address-family ipv4 vrf RED 
R07(config-router-af)#nei
R07(config-router-af)#neighbor 10.254.0.54 ?
  activate                 Enable the Address Family for this Neighbor
  advertise-map            specify route-map for conditional advertisement
  advertisement-interval   Minimum interval between sending BGP routing updates
  allow-policy             Enable the policy support for this IBGP Neighbor
  allowas-in               Accept as-path with my AS present in it
  as-override              Override matching AS-number while sending update
  capability               Advertise capability to the peer
  cluster-id               Configure Route-Reflector Cluster-id (peers may
                           reset)
  default-originate        Originate default route to this neighbor
  description              Neighbor specific description
  disable-connected-check  one-hop away EBGP peer using loopback address
  distribute-list          Filter updates to/from this neighbor
  dmzlink-bw               Propagate the DMZ link bandwidth
  ebgp-multihop            Allow EBGP neighbors not on directly connected
                           networks
  fall-over                session fall on peer route lost
  filter-list              Establish BGP filters
  ha-mode                  high availability mode
  inherit                  Inherit a template
  internal-vpn-client      Stack iBGP-CE Neighbor Path in ATTR_SET for vpn
                           update
  local-as                 Specify a local-as number
  maximum-prefix           Maximum number of prefixes accepted from this peer
  next-hop-self            Disable the next hop calculation for this neighbor
  next-hop-unchanged       Propagate next hop unchanged for iBGP paths to this
                           neighbor
  password                 Set a password
  path-attribute           BGP optional attribute filtering
  peer-group               Member of the peer-group
  prefix-list              Filter updates to/from this neighbor
  remote-as                Specify a BGP neighbor
  remove-private-as        Remove private AS number from outbound updates
  route-map                Apply route map to neighbor
  route-reflector-client   Configure a neighbor as Route Reflector client
  route-server-client      Configure a neighbor as Route Server client
  send-community           Send Community attribute to this neighbor
  send-label               Send NLRI + MPLS Label to this peer
  shutdown                 Administratively shut down this neighbor
  slow-peer                Configure slow-peer
  soft-reconfiguration     Per neighbor soft reconfiguration
  soo                      Site-of-Origin extended community
  timers                   BGP per neighbor timers
  translate-update         Translate Update to MBGP format
  transport                Transport options
  ttl-security             BGP ttl security check
  unsuppress-map           Route-map to selectively unsuppress suppressed
                           routes
  update-source            Source of routing updates
  version                  Set the BGP version to match a neighbor
  weight                   Set default weight for routes from this neighbor

R07(config-router-af)#neighbor 10.254.0.54 so
R07(config-router-af)#neighbor 10.254.0.54 soo
R07(config-router-af)#neighbor 10.254.0.54 soo ?
  ASN:nn or IP-address:nn  VPN extended community

R07(config-router-af)#neighbor 10.254.0.54 soo 2:2
R07(config-router-af)#end
R07#
R07#wr
Building configuration...
[OK]
R07#wr
Building configuration...
[OK]

==========================
Soo 防环机制, 在配置了之后如果show 出来还是没有生效,建议clear 一下bgp,最好实验就
是 把 物理接口给 shutdown--在no shutdown ,就好了,记住,!!!
--注意关于CE传过来的VPNv4路由会带上SOO的属性值,---- Extended Community--扩展团体属性,
Extended Community: SoO:65002:156 RT:65002:1
最后实验验证,R4确实没有在把 从(冗余网关)R3学过来的关于10.2.0.0/16(AS65002数据中心的路由在发回去给数据中心的另外一个ebgp邻居),这样就起到了防止路由环路的问题了,
-------------------------------------------
R3:

router bgp 65001 
 address-family ipv4 vrf GREEN 
  neighbor 10.254.0.74 soo 65002:156 
  exit

R4:

router bgp 65001 
 address-family ipv4 vrf GREEN 
  neighbor 10.254.0.78 soo 65002:156 
  exit

R5:

router bgp 65001 
 address-family ipv4 vrf GREEN 
  neighbor 10.254.0.42 soo 65002:134
  exit

R6:

router bgp 65001 
 address-family ipv4 vrf GREEN 
  neighbor 10.254.0.46 soo 65002:134
  exit

R7:

router bgp 65001 
 address-family ipv4 vrf RED 
  neighbor 10.254.0.54 soo 65002:112
  exit

R8:

router bgp 65001 
 address-family ipv4 vrf RED 
  neighbor 10.254.0.58 soo 65002:112
  exit

------------------------------------------------------------------

R04#show bgp vpnv4 unicast all 10.2.0.0/16
BGP routing table entry for 65002:156:10.2.0.0/16, version 67
Paths: (2 available, best #2, table GREEN)
  Advertised to update-groups:
     2         
  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: RT:65002:1--------------------------SoO值还没有出来,
Originator: 10.255.1.3, Cluster list: 10.255.1.1
      mpls labels in/out 31/30
      rx pathid: 0, tx pathid: 0
  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: RT:65002:1
      mpls labels in/out 31/nolabel
      rx pathid: 0, tx pathid: 0x0
R04#  
R04#
R04#
R04#show bgp vpnv4 unicast all neighbors 10.254.0.78  advertised-routes  
BGP table version is 79, 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.16.1.0/24     10.255.1.3            1021    100      0 65002 ?
 *>i 10.16.2.0/24     10.255.1.3            1021    100      0 65002 ?
 *>i 10.16.3.0/24     10.255.1.3            1021    100      0 65002 ?
 *>i 10.100.0.0/24    10.255.1.3            1011    100      0 65002 ?
 *>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.15/32   10.255.1.3               0    100      0 65002 ?-----这里还是把数据中心的路由从冗余的网关R4传回去给了R16,(AS65002的数据中心网络)
 *>i 10.255.1.17/32   10.255.1.3              12    100      0 65002 ?
 *>i 10.255.1.19/32   10.255.1.3            1012    100      0 65002 ?
 *>i 10.255.1.20/32   10.255.1.3            1012    100      0 65002 ?
 *>i 10.255.1.21/32   10.255.1.3            1012    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 ?
 *>i 10.255.1.103/32  10.255.1.3              11    100      0 65002 ?
          
Total number of prefixes 18 
R04#
R04#
R04#


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

最后实验验证,R4确实没有在把 从(冗余网关)R3学过来的关于10.2.0.0/16(AS65002数据中心的路由在发回去给数据中心的另外一个ebgp邻居),这样就起到了防止路由环路的问题了,

R04#
R04#
R04#
-----------------------------------------------------
R03#show bgp vpnv4 unicast all neighbors 10.254.0.74  advertised-routes
BGP table version is 75, local router ID is 10.255.1.3
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 
R03#

====================================================
 SOO 的防环机制,是在PE传递路由给CE的时候,检查出接口配置的SOO值是否与从其他MP-BGP邻居收到的VPNv4路由的SOO值一致,如果一致,就不传给CE。而不是PE根本就不接收,切记切记。
R07(config)#router bgp 65001 
R07(config-router)#add
R07(config-router)#address-family ipvr  
R07(config-router)#address-family ipv 
R07(config-router)#address-family ipv4 vrf RED 
R07(config-router-af)#nei
R07(config-router-af)#neighbor 10.254.0.54 ?
  activate                 Enable the Address Family for this Neighbor
  advertise-map            specify route-map for conditional advertisement
  advertisement-interval   Minimum interval between sending BGP routing updates
  allow-policy             Enable the policy support for this IBGP Neighbor
  allowas-in               Accept as-path with my AS present in it
  as-override              Override matching AS-number while sending update
  capability               Advertise capability to the peer
  cluster-id               Configure Route-Reflector Cluster-id (peers may
                           reset)
  default-originate        Originate default route to this neighbor
  description              Neighbor specific description
  disable-connected-check  one-hop away EBGP peer using loopback address
  distribute-list          Filter updates to/from this neighbor
  dmzlink-bw               Propagate the DMZ link bandwidth
  ebgp-multihop            Allow EBGP neighbors not on directly connected
                           networks
  fall-over                session fall on peer route lost
  filter-list              Establish BGP filters
  ha-mode                  high availability mode
  inherit                  Inherit a template
  internal-vpn-client      Stack iBGP-CE Neighbor Path in ATTR_SET for vpn
                           update
  local-as                 Specify a local-as number
  maximum-prefix           Maximum number of prefixes accepted from this peer
  next-hop-self            Disable the next hop calculation for this neighbor
  next-hop-unchanged       Propagate next hop unchanged for iBGP paths to this
                           neighbor
  password                 Set a password
  path-attribute           BGP optional attribute filtering
  peer-group               Member of the peer-group
  prefix-list              Filter updates to/from this neighbor
  remote-as                Specify a BGP neighbor
  remove-private-as        Remove private AS number from outbound updates
  route-map                Apply route map to neighbor
  route-reflector-client   Configure a neighbor as Route Reflector client
  route-server-client      Configure a neighbor as Route Server client
  send-community           Send Community attribute to this neighbor
  send-label               Send NLRI + MPLS Label to this peer
  shutdown                 Administratively shut down this neighbor
  slow-peer                Configure slow-peer
  soft-reconfiguration     Per neighbor soft reconfiguration
  soo                      Site-of-Origin extended community
  timers                   BGP per neighbor timers
  translate-update         Translate Update to MBGP format
  transport                Transport options
  ttl-security             BGP ttl security check
  unsuppress-map           Route-map to selectively unsuppress suppressed
                           routes
  update-source            Source of routing updates
  version                  Set the BGP version to match a neighbor
  weight                   Set default weight for routes from this neighbor

R07(config-router-af)#neighbor 10.254.0.54 so
R07(config-router-af)#neighbor 10.254.0.54 soo
R07(config-router-af)#neighbor 10.254.0.54 soo ?
  ASN:nn or IP-address:nn  VPN extended community


主题: Soo 防环机制, 在配置了之后如果show 出来还是没有生效,建议clear 一下bgp,最好实验就是 把 物理接口给 shutdown--在no shutdown ,就好了,记住,!!!--注意关于CE传过来的VPNv4路由会带上SOO的属性值
Soo 防环机制, 在配置了之后如果show 出来还是没有生效,建议clear 一下bgp,最好实验就是 把 物理接口给 shutdown--在no shutdown ,就好了,记住,!!!
--注意关于CE传过来的VPNv4路由会带上SOO的属性值,---- Extended Community--扩展团体属性,
Extended Community: SoO:65002:156 RT:65002:1
最后实验验证,R4确实没有在把 从(冗余网关)R3学过来的关于10.2.0.0/16(AS65002数据中心的路由在发回去给数据中心的另外一个ebgp邻居),这样就起到了防止路由环路的问题了,
-------------------------------------------
R3:

router bgp 65001 
 address-family ipv4 vrf GREEN 
  neighbor 10.254.0.74 soo 65002:156 
  exit

R4:

router bgp 65001 
 address-family ipv4 vrf GREEN 
  neighbor 10.254.0.78 soo 65002:156 
  exit

R5:

router bgp 65001 
 address-family ipv4 vrf GREEN 
  neighbor 10.254.0.42 soo 65002:134
  exit

R6:

router bgp 65001 
 address-family ipv4 vrf GREEN 
  neighbor 10.254.0.46 soo 65002:134
  exit

R7:

router bgp 65001 
 address-family ipv4 vrf RED 
  neighbor 10.254.0.54 soo 65002:112
  exit

R8:

router bgp 65001 
 address-family ipv4 vrf RED 
  neighbor 10.254.0.58 soo 65002:112
  exit

------------------------------------------------------------------

R04#show bgp vpnv4 unicast all 10.2.0.0/16
BGP routing table entry for 65002:156:10.2.0.0/16, version 67
Paths: (2 available, best #2, table GREEN)
  Advertised to update-groups:
     2         
  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: RT:65002:1--------------------------SoO值还没有出来,
Originator: 10.255.1.3, Cluster list: 10.255.1.1
      mpls labels in/out 31/30
      rx pathid: 0, tx pathid: 0
  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: RT:65002:1
      mpls labels in/out 31/nolabel
      rx pathid: 0, tx pathid: 0x0
R04#  
R04#
R04#
R04#show bgp vpnv4 unicast all neighbors 10.254.0.78  advertised-routes  
BGP table version is 79, 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.16.1.0/24     10.255.1.3            1021    100      0 65002 ?
 *>i 10.16.2.0/24     10.255.1.3            1021    100      0 65002 ?
 *>i 10.16.3.0/24     10.255.1.3            1021    100      0 65002 ?
 *>i 10.100.0.0/24    10.255.1.3            1011    100      0 65002 ?
 *>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.15/32   10.255.1.3               0    100      0 65002 ?-----这里还是把数据中心的路由从冗余的网关R4传回去给了R16,(AS65002的数据中心网络)
 *>i 10.255.1.17/32   10.255.1.3              12    100      0 65002 ?
 *>i 10.255.1.19/32   10.255.1.3            1012    100      0 65002 ?
 *>i 10.255.1.20/32   10.255.1.3            1012    100      0 65002 ?
 *>i 10.255.1.21/32   10.255.1.3            1012    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 ?
 *>i 10.255.1.103/32  10.255.1.3              11    100      0 65002 ?
          
Total number of prefixes 18 
R04#
R04#
R04#


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

最后实验验证,R4确实没有在把 从(冗余网关)R3学过来的关于10.2.0.0/16(AS65002数据中心的路由在发回去给数据中心的另外一个ebgp邻居),这样就起到了防止路由环路的问题了,

R04#
R04#
R04#

Dear  Bruce ,
 SOO 的防环机制,是在PE传递路由给CE的时候,检查出接口配置的SOO值是否与从其他MP-BGP邻居收到的VPNv4路由的SOO值一致,如果一致,就不传给CE。而不是PE根本就不接收,切记切记。
R07(config)#router bgp 65001 
R07(config-router)#add
R07(config-router)#address-family ipvr  
R07(config-router)#address-family ipv 
R07(config-router)#address-family ipv4 vrf RED 
R07(config-router-af)#nei
R07(config-router-af)#neighbor 10.254.0.54 ?
  activate                 Enable the Address Family for this Neighbor
  advertise-map            specify route-map for conditional advertisement
  advertisement-interval   Minimum interval between sending BGP routing updates
  allow-policy             Enable the policy support for this IBGP Neighbor
  allowas-in               Accept as-path with my AS present in it
  as-override              Override matching AS-number while sending update
  capability               Advertise capability to the peer
  cluster-id               Configure Route-Reflector Cluster-id (peers may
                           reset)
  default-originate        Originate default route to this neighbor
  description              Neighbor specific description
  disable-connected-check  one-hop away EBGP peer using loopback address
  distribute-list          Filter updates to/from this neighbor
  dmzlink-bw               Propagate the DMZ link bandwidth
  ebgp-multihop            Allow EBGP neighbors not on directly connected
                           networks
  fall-over                session fall on peer route lost
  filter-list              Establish BGP filters
  ha-mode                  high availability mode
  inherit                  Inherit a template
  internal-vpn-client      Stack iBGP-CE Neighbor Path in ATTR_SET for vpn
                           update
  local-as                 Specify a local-as number
  maximum-prefix           Maximum number of prefixes accepted from this peer
  next-hop-self            Disable the next hop calculation for this neighbor
  next-hop-unchanged       Propagate next hop unchanged for iBGP paths to this
                           neighbor
  password                 Set a password
  path-attribute           BGP optional attribute filtering
  peer-group               Member of the peer-group
  prefix-list              Filter updates to/from this neighbor
  remote-as                Specify a BGP neighbor
  remove-private-as        Remove private AS number from outbound updates
  route-map                Apply route map to neighbor
  route-reflector-client   Configure a neighbor as Route Reflector client
  route-server-client      Configure a neighbor as Route Server client
  send-community           Send Community attribute to this neighbor
  send-label               Send NLRI + MPLS Label to this peer
  shutdown                 Administratively shut down this neighbor
  slow-peer                Configure slow-peer
  soft-reconfiguration     Per neighbor soft reconfiguration
  soo                      Site-of-Origin extended community
  timers                   BGP per neighbor timers
  translate-update         Translate Update to MBGP format
  transport                Transport options
  ttl-security             BGP ttl security check
  unsuppress-map           Route-map to selectively unsuppress suppressed
                           routes
  update-source            Source of routing updates
  version                  Set the BGP version to match a neighbor
  weight                   Set default weight for routes from this neighbor

R07(config-router-af)#neighbor 10.254.0.54 so
R07(config-router-af)#neighbor 10.254.0.54 soo
R07(config-router-af)#neighbor 10.254.0.54 soo ?
  ASN:nn or IP-address:nn  VPN extended community


brucec@fnetlink.com
发件人: brucec@fnetlink.com
发送时间: 2016-09-11 19:53
收件人: brucec
抄送: brucechenghu; 570135332
主题: Soo 防环机制, 在配置了之后如果show 出来还是没有生效,建议clear 一下bgp,最好实验就是 把 物理接口给 shutdown--在no shutdown ,就好了,记住,!!!--注意关于CE传过来的VPNv4路由会带上SOO的属性值

Soo 防环机制, 在配置了之后如果show 出来还是没有生效,建议clear 一下bgp,最好实验就是 把 物理接口给 shutdown--在no shutdown ,就好了,记住,!!!
--注意关于CE传过来的VPNv4路由会带上SOO的属性值,---- Extended Community--扩展团体属性,
Extended Community: SoO:65002:156 RT:65002:1
最后实验验证,R4确实没有在把 从(冗余网关)R3学过来的关于10.2.0.0/16(AS65002数据中心的路由在发回去给数据中心的另外一个ebgp邻居),这样就起到了防止路由环路的问题了,
-------------------------------------------
R3:

router bgp 65001 
 address-family ipv4 vrf GREEN 
  neighbor 10.254.0.74 soo 65002:156 
  exit

R4:

router bgp 65001 
 address-family ipv4 vrf GREEN 
  neighbor 10.254.0.78 soo 65002:156 
  exit

R5:

router bgp 65001 
 address-family ipv4 vrf GREEN 
  neighbor 10.254.0.42 soo 65002:134
  exit

R6:

router bgp 65001 
 address-family ipv4 vrf GREEN 
  neighbor 10.254.0.46 soo 65002:134
  exit

R7:

router bgp 65001 
 address-family ipv4 vrf RED 
  neighbor 10.254.0.54 soo 65002:112
  exit

R8:

router bgp 65001 
 address-family ipv4 vrf RED 
  neighbor 10.254.0.58 soo 65002:112
  exit

------------------------------------------------------------------

R04#show bgp vpnv4 unicast all 10.2.0.0/16
BGP routing table entry for 65002:156:10.2.0.0/16, version 67
Paths: (2 available, best #2, table GREEN)
  Advertised to update-groups:
     2         
  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: RT:65002:1--------------------------SoO值还没有出来,
Originator: 10.255.1.3, Cluster list: 10.255.1.1
      mpls labels in/out 31/30
      rx pathid: 0, tx pathid: 0
  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: RT:65002:1
      mpls labels in/out 31/nolabel
      rx pathid: 0, tx pathid: 0x0
R04#  
R04#
R04#
R04#show bgp vpnv4 unicast all neighbors 10.254.0.78  advertised-routes  
BGP table version is 79, 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.16.1.0/24     10.255.1.3            1021    100      0 65002 ?
 *>i 10.16.2.0/24     10.255.1.3            1021    100      0 65002 ?
 *>i 10.16.3.0/24     10.255.1.3            1021    100      0 65002 ?
 *>i 10.100.0.0/24    10.255.1.3            1011    100      0 65002 ?
 *>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.15/32   10.255.1.3               0    100      0 65002 ?-----这里还是把数据中心的路由从冗余的网关R4传回去给了R16,(AS65002的数据中心网络)
 *>i 10.255.1.17/32   10.255.1.3              12    100      0 65002 ?
 *>i 10.255.1.19/32   10.255.1.3            1012    100      0 65002 ?
 *>i 10.255.1.20/32   10.255.1.3            1012    100      0 65002 ?
 *>i 10.255.1.21/32   10.255.1.3            1012    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 ?
 *>i 10.255.1.103/32  10.255.1.3              11    100      0 65002 ?
          
Total number of prefixes 18 
R04#
R04#
R04#


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

最后实验验证,R4确实没有在把 从(冗余网关)R3学过来的关于10.2.0.0/16(AS65002数据中心的路由在发回去给数据中心的另外一个ebgp邻居),这样就起到了防止路由环路的问题了,

R04#
R04#
R04#

BGP SOO 防环机制相关推荐

  1. Soo 防环机制, 在配置了之后如果show 出来还是没有生效,建议clear 一下bgp,最好实验就是 把 物理接口给 shutdown--在no shutdown ,就好了,记住,!!!

    Soo 防环机制, 在配置了之后如果show 出来还是没有生效,建议clear 一下bgp,最好实验就是 把 物理接口给 shutdown--在no shutdown ,就好了,记住,!!! --注意 ...

  2. BGP路由反射器和防环机制

    一.BGP:边界网关协议 BGP是运行于TCP上的一种自治系统的路由协议,基于TCP179端口工作,无类别的EGP协议,用于AS之间的路由传递,同时在AS级别上可实施策略决策. AS长16位,共655 ...

  3. BGP----工作工程,路由黑洞,防环机制,基本配置

    BGP:边界网关路由协议 --- 动态路由协议 无类别路径矢量EGP协议: 动态路由协议分类--- IGP 内部网关路由协议--AS内部使用 -- RIP OSPF EIGRP ISIS....    ...

  4. CCIE-组播防环机制RPF

    2021.11.20 这次真的再也没有办法骗自己了 3.1 单播路由与组播路由的主要区别  单播路由关心数据包要去哪里 (Destination)  组播路由关心数据包从哪里来 (Source) ...

  5. 【ospf的三类LSA sum-net】(真假ABR、区域间防环机制、vlink)

    目录 一.3类LSA产生背景 1.ospf单区域的隐患: 2.多区域的产生 二.3类LSA的产生 1.3类LSA:边界路由器(ABR)产生,传递区域之间的路由 ABR维护区域间的每个区域的LSDB​ ...

  6. ISIS 防环机制分析

    通过实验来分析ISIS防环机制: 实验拓扑: 实验验证: ATT置位默认路由分析 Level-2路由泄露到Level-1区域,LSP的Up/Down置位的作用 验证分析: 在R2上查看ISIS的LSD ...

  7. 华为HCIE RS笔记-21OSPF防环机制

    区域内防环: 区域内使用SPF算法,以自己为根,根据LSA的拓扑信息和路由信息,纯天然的防环机制 区域间防环: 从一个"真ABR"流出的Network Summary LSA不会 ...

  8. ospf避免环路_OSPF路由协议的区域防环机制

    一.区域设计原则 为了避免区域间的环路,ospf规定不允许两个非骨干区域之间直接传递路由信息,只允许在一个区域内部或者骨干区域和非骨干区域之间发布路由信息.因此,每个区域边界路由器都必须连接到骨干区域 ...

  9. BGP 路由反射器详解,RR反射簇与RR的防环机制介绍与实验

    一.什么是RR RR(Route Reflector):路由反射器 由于水平分割的原因,为了保证AS内所有的BGP路由器都能学习到完整的BGP路由,就必须在AS内实现IBGP全互联. 然而实现IBGP ...

最新文章

  1. 【错误记录】Flutter 应用运行卡在 Running Gradle task ‘assembleDebug‘... ( 配置阿里云 Maven 仓库镜像 )
  2. 单片机上电复位电路图大全
  3. 【干货】百度十年产品经验总结:产品经理九步法
  4. 34.任务计划cron chkconfig systemctl管理服务 unit target
  5. time()函数php_time()
  6. 分享三:mysql跨库查询
  7. 大数据服务,至少有四点还值得存疑
  8. 局域网带宽控制解决方案 P2P终结者使用详解
  9. html 手机端可以选择复制粘贴,js移动端实现网站内容复制粘贴功能
  10. 关于三角形外心性质的探究
  11. DDOS攻击已然渗透互联网和物联网
  12. 咸鱼Maya笔记—Maya 编辑法线
  13. 沉痛悼念张孝祥老师逝世
  14. VC2008 NewControl 示例
  15. 数据分析 知识体系 Python篇
  16. 亿欧发布《数字孪生城市研究报告》全文
  17. 【Python】Pandas 表格样式设置指南,看这一篇就够了!
  18. ParlAI基本使用【文档翻译】
  19. 关键词提取(3):主题模型:LSI模型
  20. 微信公众号中h5页面扫一扫实现

热门文章

  1. Oracle数据库迁移postgreSQL
  2. ac3168无线网卡驱动下载_星际蜗牛C款i211网卡服务器装Windows sevse2012R2服务器装机篇下...
  3. unity3d和建模关系
  4. 电力预算——超人西藏电力工程造价软件
  5. 数据库sql优化总结之2-百万级数据库优化方案+案例分析
  6. 第十四届蓝桥杯三月真题刷题训练——第 19 天
  7. [原创]下一代Web 应用程序安全性测试工具HP WebInspect简介
  8. Mysql 1022
  9. Cleanmymac x最新版Mac个人电脑垃圾清理软件工具
  10. Leetcode 383 赎金信