Soo 防环机制, 在配置了之后如果show 出来还是没有生效,建议clear 一下bgp,最好实验就是 把 物理接口给 shutdown--在no shutdown ,就好了,记住,!!!
来源:互联网 发布:旅游大数据分析方案 编辑:程序博客网 时间:2024/05/21 16:57
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
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#
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#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#
0 0
- Soo 防环机制, 在配置了之后如果show 出来还是没有生效,建议clear 一下bgp,最好实验就是 把 物理接口给 shutdown--在no shutdown ,就好了,记住,!!!
- BGP SOO 防环机制
- shutdown 关机命令(2000中没有shutdown命令,XP中的shutdown命令可以复制出来,到2000中完全可用)
- shutdown
- Shutdown
- Shutdown
- ShutDown
- shutdown
- shutdown
- shutdown
- shutdown
- shutdown
- shutdown
- shutdown
- Shutdown
- shutdown
- shutdown
- shutdown
- Android 页面顶部状态栏隐藏和透明
- Spark -9:Spark SQL, DataFrames and Datasets 编程指南
- mysql 复合索引
- python题目-----lambda函数
- Sublime Text安装和常用的插件总结
- Soo 防环机制, 在配置了之后如果show 出来还是没有生效,建议clear 一下bgp,最好实验就是 把 物理接口给 shutdown--在no shutdown ,就好了,记住,!!!
- 2017.1.19日测试题解
- Win7 U盘安装Ubuntu16.04 双系统详细教程
- android项目组件化
- 文章标题
- Zookeeper安装和配置
- npm run XXX是执行配置在package.json中的脚本
- JVM类加载原理学习笔记
- 写了一个简单的数据库连接池