标签:-o 0.0.0.0 int router ec2 text ESS match RoCE
一、实验拓扑:三、命令部署:
1、2、3部署:
R2(config)#int lo1
R2(config-if)#ip add 20.20.20.20 255.255.255.0
R2(config)#router bgp 123
R2(config-router)#network 20.20.20.0 mask 255.255.255.0
R3(config)#ip route 20.20.20.0 255.255.255.0 f0/0
R3(config)#router bgp 123
R3(config-router)#network 20.20.20.0 mask 255.255.255.0
4、部署:
R3(config)#access-list 10 permit 20.20.20.0 0.0.0.255
R3(config)#route-map pl permit 10
R3(config-route-map)#match ip address 10
R3(config-route-map)#set weight 32768
R3(config-route-map)#route-map pl permit 20
R3(config-route-map)#match ip address 10
R3(config-route-map)#set local-preference 200
R3(config-route-map)#route-map permit 1000
R3(config)#router bgp 123
R3(config-router)#neighbor 2.2.2.2 route-map pl in
四、验证:
1、2、3部署完成后验证:
R3#show ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 20.20.20.0/24 0.0.0.0 0 32768 I
R2#show ip bgp
Network Next Hop Metric LocPrf Weight Path
标签:-o 0.0.0.0 int router ec2 text ESS match RoCE
原文地址:http://blog.51cto.com/13856092/2137651