1、!router bgp 65000 no synchronization bgp cluster-id 10.0.0.1 bgp log-neighbor-changes network 10.0.0.0 mask 255.255.0.0 network 10.1.0.0 mask 255.255.0.0 network 10.65.0.0 mask 255.255.0.0 network 10.129.0.0 mask 255.255.0.0 neighbor rrc peer-group neighbor rrc remote-as 65000 neighbor rrc update-so
2、urce Loopback0 neighbor rrc route-reflector-client neighbor rrc next-hop-self neighbor 10.0.0.2 remote-as 65000 neighbor 10.0.0.2 update-source Loopback0 neighbor 10.0.0.2 next-hop-self neighbor 10.0.0.3 peer-group rrc neighbor 10.0.0.4 peer-group rrc neighbor 10.0.0.5 peer-group rrc neighbor 10.0.0
3、.6 peer-group rrc no auto-summaryno ip http serverip classlessip route 10.0.0.0 255.255.0.0 Null0ip route 10.1.0.0 255.255.0.0 Null0ip route 10.65.0.0 255.255.0.0 Null0ip route 10.129.0.0 255.255.0.0 Null0RT2: router-id 10.0.0.2 network 10.0.0.2 0.0.0.0 area 0 network 10.0.1.8 0.0.0.3 area 0 network
4、 10.0.1.24 0.0.0.3 area 0 neighbor 10.0.0.1 remote-as 65000 neighbor 10.0.0.1 update-source Loopback0 neighbor 10.0.0.1 next-hop-selfRT3: router-id 10.0.0.3 redistribute connected metric 1000 metric-type 1 subnets passive-interface default no passive-interface Serial0/0 no passive-interface FastEthe
5、rnet1/0 network 10.0.0.3 0.0.0.0 area 0 network 10.0.1.12 0.0.0.3 area 0 neighbor 10.0.9.2 remote-as 65001 neighbor 10.0.9.2 default-originate neighbor 10.0.9.2 prefix-list hubei in /路由策略 neighbor 10.0.9.2 route-map hubei in /路由策略ip prefix-list bg seq 5 permit 10.131.0.0/16 /抓取流量ip prefix-list hubei
6、 seq 5 permit 10.67.0.0/16 /匹配路由抓取流量ip prefix-list hubei seq 10 permit 10.3.0.0/16 /匹配路由抓取流量ip prefix-list hubei seq 15 permit 10.131.0.0/16 /匹配路由抓取流量ip prefix-list sc seq 5 permit 10.67.0.0/16 /匹配路由抓取流量no cdp runroute-map hubei permit 10 match ip address prefix-list sc set local-preference 1000 /设置
7、本地优先级为1000route-map hubei permit 20 match ip address prefix-list bg set local-preference 500 /设置本地优先级为500route-map hubei permit 30RT4: router-id 10.0.0.4 network 10.0.0.4 0.0.0.0 area 0 neighbor 10.0.9.6 remote-as 65001 neighbor 10.0.9.6 default-originate neighbor 10.0.9.6 prefix-list hubei in /分发列表
8、应用在对等体的in方向 neighbor 10.0.9.6 route-map hubei in /分发列表应用在对等体的in方向ip prefix-list bg seq 5 permit 10.131.0.0/16ip prefix-list hubei seq 5 permit 10.3.0.0/16ip prefix-list hubei seq 10 permit 10.67.0.0/16ip prefix-list hubei seq 15 permit 10.131.0.0/16ip prefix-list sc seq 5 permit 10.67.0.0/16 set loc
9、al-preference 500 set local-preference 1000RT5: router-id 10.0.0.5 network 10.0.0.5 0.0.0.0 area 0 network 10.0.1.28 0.0.0.3 area 0 neighbor 10.0.9.10 remote-as 65002 neighbor 10.0.9.10 default-originate neighbor 10.0.9.10 prefix-list hunan in neighbor 10.0.9.10 route-map hunan inip prefix-list bg s
10、eq 5 permit 10.132.0.0/16ip prefix-list hunan seq 5 permit 10.4.0.0/16ip prefix-list hunan seq 10 permit 10.68.0.0/16ip prefix-list hunan seq 15 permit 10.132.0.0/16ip prefix-list sc seq 5 permit 10.68.0.0/16route-map hunan permit 10route-map hunan permit 20route-map hunan permit 30RT6: router-id 10
11、.0.0.6 network 10.0.0.6 0.0.0.0 area 0 neighbor 10.0.9.14 remote-as 65002 neighbor 10.0.9.14 default-originate neighbor 10.0.9.14 prefix-list hunan in neighbor 10.0.9.14 route-map hunan inip prefix-list hunan seq 5 permit 10.3.0.0/16 RT9: router-id 10.3.0.1 no passive-interface FastEthernet3/0 netwo
12、rk 10.3.0.1 0.0.0.0 area 0 network 10.3.1.0 0.0.0.3 area 0 network 10.3.1.4 0.0.0.3 area 0 default-information originate always metric 3000 metric-type 1router bgp 65001 network 10.3.0.0 mask 255.255.0.0 network 10.67.0.0 mask 255.255.0.0 network 10.131.0.0 mask 255.255.0.0 neighbor 10.0.9.1 remote-
13、as 65000 neighbor 10.0.9.1 route-map hubei in neighbor 10.0.9.1 filter-list 10 out neighbor 10.3.0.2 remote-as 65001 neighbor 10.3.0.2 update-source Loopback0 neighbor 10.3.0.2 next-hop-selfip route 10.3.0.0 255.255.0.0 Null0ip route 10.67.0.0 255.255.0.0 Null0ip route 10.131.0.0 255.255.0.0 Null0ip
14、 as-path access-list 10 permit $ip prefix-list bg seq 5 permit 10.129.0.0/16ip prefix-list bg seq 10 permit 10.132.0.0/16ip prefix-list sc seq 5 permit 10.65.0.0/16ip prefix-list sc seq 10 permit 10.68.0.0/16RT10: router-id 10.3.0.2 network 10.3.0.2 0.0.0.0 area 0 network 10.3.1.8 0.0.0.3 area 0 neighbor 10.0.9.5 remote-as 65000 neighbor 10.0.9.5 route-map hubei in neighbor 10.0.9.5 filter-list 10 out neighbor 10.3.0.1 remote-as 65001 neighbor 10.3.0.1 update-source Loopback0 neighbor 10.3.0.1 next-hop-selfip prefix-list bg seq 5 p
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1