标签:efi ESS tar 10.2.1 pat address imu seconds 1.5
路由选路
1.分支的办公流和生产流默认走联通MSTP线路,DC流默认走电信MSTP线路,当其中某条互联的链路down后才会进行流量切换
XRV1配置
============================================================
ip prefix-list as65000-ct seq 5 permit 10.78.1.0/24
ip prefix-list as65000-ct seq 10 permit 10.78.2.0/24
ip prefix-list as65000-ct seq 15 permit 10.78.3.0/24
ip prefix-list as65000-ct seq 20 permit 10.78.4.0/24
ip prefix-list as65000-ct seq 25 permit 10.78.5.0/24
ip prefix-list as65000-ct seq 30 permit 10.78.6.0/24
ip prefix-list as65000-ct seq 35 permit 10.78.7.0/24
ip prefix-list as65000-ct seq 40 permit 10.78.8.0/24
ip prefix-list as65000-ct seq 45 permit 10.78.9.0/24
ip prefix-list as65000-ct seq 50 permit 10.78.10.0/24
ip prefix-list as65000-ct seq 55 permit 10.78.11.0/24
ip prefix-list as65000-ct seq 60 permit 10.78.12.0/24
ip prefix-list as65000-ct seq 65 permit 10.78.13.0/24
ip prefix-list as65000-ct seq 70 permit 10.78.14.0/24
ip prefix-list as65000-ct seq 75 permit 10.78.15.0/24
ip prefix-list as65000-ct seq 80 permit 10.78.16.0/24
!
route-map as65000-ct permit 10
match ip address prefix-list as65000-ct
set as-path prepend 65000 65000 65000
!
route-map as65000-ct permit 20
!
router bgp 65000
bgp router-id 10.255.255.1
neighbor 10.201.1.10 route-map as65000-ct out
XRV2配置
============================================================
!
ip prefix-list as65000-cu seq 5 permit 10.158.1.0/24
ip prefix-list as65000-cu seq 10 permit 10.158.2.0/24
ip prefix-list as65000-cu seq 15 permit 10.158.3.0/24
ip prefix-list as65000-cu seq 20 permit 10.158.4.0/24
ip prefix-list as65000-cu seq 25 permit 10.158.5.0/24
ip prefix-list as65000-cu seq 30 permit 10.158.6.0/24
ip prefix-list as65000-cu seq 35 permit 10.158.7.0/24
ip prefix-list as65000-cu seq 40 permit 10.158.8.0/24
ip prefix-list as65000-cu seq 45 permit 10.158.9.0/24
ip prefix-list as65000-cu seq 50 permit 10.158.10.0/24
ip prefix-list as65000-cu seq 55 permit 10.158.11.0/24
ip prefix-list as65000-cu seq 60 permit 10.158.12.0/24
ip prefix-list as65000-cu seq 65 permit 10.158.13.0/24
ip prefix-list as65000-cu seq 70 permit 10.158.14.0/24
ip prefix-list as65000-cu seq 75 permit 10.158.15.0/24
ip prefix-list as65000-cu seq 80 permit 10.158.16.0/24
ip prefix-list as65000-cu seq 85 permit 10.78.1.0/24
ip prefix-list as65000-cu seq 90 permit 10.78.2.0/24
ip prefix-list as65000-cu seq 95 permit 10.78.3.0/24
ip prefix-list as65000-cu seq 100 permit 10.78.4.0/24
ip prefix-list as65000-cu seq 105 permit 10.78.5.0/24
ip prefix-list as65000-cu seq 110 permit 10.78.6.0/24
ip prefix-list as65000-cu seq 115 permit 10.78.7.0/24
ip prefix-list as65000-cu seq 120 permit 10.78.8.0/24
ip prefix-list as65000-cu seq 125 permit 10.78.9.0/24
ip prefix-list as65000-cu seq 130 permit 10.78.10.0/24
ip prefix-list as65000-cu seq 135 permit 10.78.11.0/24
ip prefix-list as65000-cu seq 140 permit 10.78.12.0/24
ip prefix-list as65000-cu seq 145 permit 10.78.13.0/24
ip prefix-list as65000-cu seq 150 permit 10.78.14.0/24
ip prefix-list as65000-cu seq 155 permit 10.78.15.0/24
ip prefix-list as65000-cu seq 160 permit 10.78.16.0/24
!
route-map as65000-cu permit 10
match ip address prefix-list as65000-cu
set as-path prepend 65000 65000 65000
!
route-map as65000-cu permit 20
!
!
router bgp 65000
bgp router-id 10.255.255.2
neighbor 10.201.1.6 route-map as65000-cu out
!
XRV3配置
============================================================
ip prefix-list as65001-ct seq 5 permit 10.178.1.0/24
ip prefix-list as65001-ct seq 10 permit 10.178.2.0/24
ip prefix-list as65001-ct seq 15 permit 10.178.3.0/24
ip prefix-list as65001-ct seq 20 permit 10.178.4.0/24
ip prefix-list as65001-ct seq 25 permit 10.178.5.0/24
ip prefix-list as65001-ct seq 30 permit 10.178.6.0/24
ip prefix-list as65001-ct seq 35 permit 10.178.7.0/24
ip prefix-list as65001-ct seq 40 permit 10.178.8.0/24
ip prefix-list as65001-ct seq 45 permit 10.178.9.0/24
ip prefix-list as65001-ct seq 50 permit 10.178.10.0/24
ip prefix-list as65001-ct seq 55 permit 10.178.11.0/24
ip prefix-list as65001-ct seq 60 permit 10.178.12.0/24
ip prefix-list as65001-ct seq 65 permit 10.178.13.0/24
ip prefix-list as65001-ct seq 70 permit 10.178.14.0/24
ip prefix-list as65001-ct seq 75 permit 10.178.15.0/24
ip prefix-list as65001-ct seq 80 permit 10.178.16.0/24
!
route-map as65001-ct permit 10
match ip address prefix-list as65001-ct
set as-path prepend 65001 65001 65001
!
route-map as65001-ct permit 20
!
!
router bgp 65001
bgp router-id 192.168.1.3
neighbor 10.201.1.1 route-map as65001-ct out
!
XRV4配置
============================================================
!
!
router bgp 65001
bgp router-id 192.168.1.4
neighbor 10.201.1.5 route-map as65001-cu out
!
ip prefix-list as65001-cu seq 5 permit 10.138.1.0/24
ip prefix-list as65001-cu seq 10 permit 10.138.2.0/24
ip prefix-list as65001-cu seq 15 permit 10.138.3.0/24
ip prefix-list as65001-cu seq 20 permit 10.138.4.0/24
ip prefix-list as65001-cu seq 25 permit 10.138.5.0/24
ip prefix-list as65001-cu seq 30 permit 10.138.6.0/24
ip prefix-list as65001-cu seq 35 permit 10.138.7.0/24
ip prefix-list as65001-cu seq 40 permit 10.138.8.0/24
ip prefix-list as65001-cu seq 45 permit 10.138.9.0/24
ip prefix-list as65001-cu seq 50 permit 10.138.10.0/24
ip prefix-list as65001-cu seq 55 permit 10.138.11.0/24
ip prefix-list as65001-cu seq 60 permit 10.138.12.0/24
ip prefix-list as65001-cu seq 65 permit 10.138.13.0/24
ip prefix-list as65001-cu seq 70 permit 10.138.14.0/24
ip prefix-list as65001-cu seq 75 permit 10.138.15.0/24
ip prefix-list as65001-cu seq 80 permit 10.138.16.0/24
ip prefix-list as65001-cu seq 85 permit 10.173.1.0/24
ip prefix-list as65001-cu seq 90 permit 10.173.2.0/24
ip prefix-list as65001-cu seq 95 permit 10.173.3.0/24
ip prefix-list as65001-cu seq 100 permit 10.173.4.0/24
ip prefix-list as65001-cu seq 105 permit 10.173.5.0/24
ip prefix-list as65001-cu seq 110 permit 10.173.6.0/24
ip prefix-list as65001-cu seq 115 permit 10.173.7.0/24
ip prefix-list as65001-cu seq 120 permit 10.173.8.0/24
ip prefix-list as65001-cu seq 125 permit 10.173.9.0/24
ip prefix-list as65001-cu seq 130 permit 10.173.10.0/24
ip prefix-list as65001-cu seq 135 permit 10.173.11.0/24
ip prefix-list as65001-cu seq 140 permit 10.173.12.0/24
ip prefix-list as65001-cu seq 145 permit 10.173.13.0/24
ip prefix-list as65001-cu seq 150 permit 10.173.14.0/24
ip prefix-list as65001-cu seq 155 permit 10.173.15.0/24
ip prefix-list as65001-cu seq 160 permit 10.173.16.0/24
!
route-map as65001-cu permit 10
match ip address prefix-list as65001-cu
set as-path prepend 65001 65001 65001
!
route-map as65001-cu permit 20
!
XRV5配置
============================================================
!
ip prefix-list as65002-ct seq 5 permit 10.175.1.0/24
ip prefix-list as65002-ct seq 10 permit 10.175.2.0/24
ip prefix-list as65002-ct seq 15 permit 10.175.3.0/24
ip prefix-list as65002-ct seq 20 permit 10.175.4.0/24
ip prefix-list as65002-ct seq 25 permit 10.175.5.0/24
ip prefix-list as65002-ct seq 30 permit 10.175.6.0/24
ip prefix-list as65002-ct seq 35 permit 10.175.7.0/24
ip prefix-list as65002-ct seq 40 permit 10.175.8.0/24
ip prefix-list as65002-ct seq 45 permit 10.175.9.0/24
ip prefix-list as65002-ct seq 50 permit 10.175.10.0/24
ip prefix-list as65002-ct seq 55 permit 10.175.11.0/24
ip prefix-list as65002-ct seq 60 permit 10.175.12.0/24
ip prefix-list as65002-ct seq 65 permit 10.175.13.0/24
ip prefix-list as65002-ct seq 70 permit 10.175.14.0/24
ip prefix-list as65002-ct seq 75 permit 10.175.15.0/24
ip prefix-list as65002-ct seq 80 permit 10.175.16.0/24
!
route-map as65002-ct permit 10
match ip address prefix-list as65002-ct
set as-path prepend 65002 65002 65002
!
route-map as65002-ct permit 20
!
router bgp 65002
bgp router-id 10.255.255.5
neighbor 10.201.1.9 route-map as65002-ct out
!
XRV6配置
============================================================
!
!
ip prefix-list as65002-cu seq 5 permit 10.38.1.0/24
ip prefix-list as65002-cu seq 10 permit 10.38.2.0/24
ip prefix-list as65002-cu seq 15 permit 10.38.3.0/24
ip prefix-list as65002-cu seq 20 permit 10.38.4.0/24
ip prefix-list as65002-cu seq 25 permit 10.38.5.0/24
ip prefix-list as65002-cu seq 30 permit 10.38.6.0/24
ip prefix-list as65002-cu seq 35 permit 10.38.7.0/24
ip prefix-list as65002-cu seq 40 permit 10.38.8.0/24
ip prefix-list as65002-cu seq 45 permit 10.38.9.0/24
ip prefix-list as65002-cu seq 50 permit 10.38.10.0/24
ip prefix-list as65002-cu seq 55 permit 10.38.11.0/24
ip prefix-list as65002-cu seq 60 permit 10.38.12.0/24
ip prefix-list as65002-cu seq 65 permit 10.38.13.0/24
ip prefix-list as65002-cu seq 70 permit 10.38.14.0/24
ip prefix-list as65002-cu seq 75 permit 10.38.15.0/24
ip prefix-list as65002-cu seq 80 permit 10.38.16.0/24
ip prefix-list as65002-cu seq 85 permit 10.38.17.0/24
ip prefix-list as65002-cu seq 90 permit 10.38.18.0/24
ip prefix-list as65002-cu seq 95 permit 10.17.1.0/24
ip prefix-list as65002-cu seq 100 permit 10.17.2.0/24
ip prefix-list as65002-cu seq 105 permit 10.17.3.0/24
ip prefix-list as65002-cu seq 110 permit 10.17.4.0/24
ip prefix-list as65002-cu seq 115 permit 10.17.5.0/24
ip prefix-list as65002-cu seq 120 permit 10.17.6.0/24
ip prefix-list as65002-cu seq 125 permit 10.17.7.0/24
ip prefix-list as65002-cu seq 130 permit 10.17.8.0/24
ip prefix-list as65002-cu seq 135 permit 10.17.9.0/24
ip prefix-list as65002-cu seq 140 permit 10.17.10.0/24
ip prefix-list as65002-cu seq 145 permit 10.17.11.0/24
ip prefix-list as65002-cu seq 150 permit 10.17.12.0/24
ip prefix-list as65002-cu seq 155 permit 10.17.13.0/24
ip prefix-list as65002-cu seq 160 permit 10.17.14.0/24
ip prefix-list as65002-cu seq 165 permit 10.17.15.0/24
ip prefix-list as65002-cu seq 170 permit 10.17.16.0/24
!
route-map as65002-cu permit 10
match ip address prefix-list as65002-cu
set as-path prepend 65002 65002 65002
!
route-map as65002-cu permit 20
!
!
router bgp 65002
bgp router-id 10.255.255.6
neighbor 10.201.1.13 route-map as65002-cu out
!
进行路由测试
在XRV7上tracert到达10.178.1.254,源为10.158.1.254
============================================================
XRV7#traceroute
Protocol [ip]:
Target IP address: 10.178.1.254
Source address: 10.158.1.254
Numeric display [n]:
Timeout in seconds [3]:
Probe count [3]:
Minimum Time to Live [1]:
Maximum Time to Live [30]:
Port Number [33434]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Type escape sequence to abort.
Tracing the route to 10.178.1.254
VRF info: (vrf in name/id, vrf out name/id)
1 10.10.1.10 13 msec 22 msec 15 msec
2 10.201.1.6 68 msec 23 msec 16 msec
3 10.10.2.10 24 msec 110 msec *
XRV7#
在XRV7上tracert到达10.38.1.254,源为10.158.1.254
============================================================
XRV7#traceroute
Protocol [ip]:
Target IP address: 10.38.1.254
Source address: 10.158.1.254
Numeric display [n]:
Timeout in seconds [3]:
Probe count [3]:
Minimum Time to Live [1]:
Maximum Time to Live [30]:
Port Number [33434]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Type escape sequence to abort.
Tracing the route to 10.38.1.254
VRF info: (vrf in name/id, vrf out name/id)
1 10.10.1.6 24 msec 9 msec 8 msec
2 10.201.1.10 10 msec 9 msec 29 msec
3 10.10.3.6 14 msec 20 msec *
XRV7#
标签:efi ESS tar 10.2.1 pat address imu seconds 1.5
原文地址:https://www.cnblogs.com/networking/p/10769646.html