Scalable Policy Routing

Transcription

Scalable Policy Routing
router bgp 65100
network 10.0.1.1 mask 255.255.255.255
network 192.168.1.0




router bgp 65000
template peer-policy Global
send-community both
!
template peer-policy LocalAS
inherit peer-policy Global 1
!
template peer-policy RRClient
route-reflector-client
inherit peer-policy Global 1
!
template peer-policy RemoteSite
inherit peer-policy Global 1
!
template peer-session LocalAS
remote-as 65000
update-source Loopback0
router bgp 65000
neighbor 10.0.1.3 description CoreFR
neighbor 10.0.1.3 inherit peer-session LocalAS
neighbor 10.0.1.3 inherit peer-policy LocalAS
!
neighbor 10.0.1.4 description Legacy
neighbor 10.0.1.4 inherit peer-session LocalAS
neighbor 10.0.1.4 inherit peer-policy RRClient
!
neighbor 10.0.1.20 description Web
neighbor 10.0.1.20 inherit peer-session LocalAS
neighbor 10.0.1.20 inherit peer-policy RRClient
!
neighbor 10.0.11.2 description Site-A
neighbor 10.0.11.2 remote-as 65100
neighbor 10.0.11.2 inherit peer-policy RemoteSite
!
neighbor 10.0.11.6 description Site-B
neighbor 10.0.11.6 remote-as 65101
neighbor 10.0.11.6 inherit peer-policy RemoteSite
!
neighbor 10.0.11.10 description Site-C
neighbor 10.0.11.10 remote-as 65102
neighbor 10.0.11.10 inherit peer-policy RemoteSite
router bgp 65100
neighbor 10.0.8.1 remote-as 65000
neighbor 10.0.8.1 description CoreInet
!
neighbor 10.0.11.1 description CoreFR
neighbor 10.0.11.1 remote-as 65000



Site-A#show ip bgp 10.0.21.0
BGP routing table entry for 10.0.21.0/24, version 22
Paths: (2 available, best #1, table Default-IP-Routing-Table)
65000
10.0.11.1 from 10.0.11.1 (10.0.1.2)
metric 200, localpref 100, valid, external, best
65000
10.0.8.1 from 10.0.8.1 (10.0.1.3)
metric 300, localpref 100, valid, external
Site-A#show ip bgp 10.0.20.0
BGP routing table entry for 10.0.20.0/24, version 13
Paths: (2 available, best #2, table Default-IP-Routing-Table)
65000
10.0.11.1 from 10.0.11.1 (10.0.1.2)
metric 200, localpref 100, valid, external
Community: 65000:100
65000
10.0.8.1 from 10.0.8.1 (10.0.1.3)
metric 100, localpref 100, valid, external, best
Community: 65000:100
router bgp 65000
network 10.0.20.0 mask 255.255.255.0 route-map FRBest
!
route-map FRBest permit 10
set community 65000:100
router bgp 65000
template peer-policy RemoteSite
route-map InetMED out
!
route-map InetMED permit 10
set metric 200



router bgp 65000
template peer-policy RemoteSite
route-map FRMED out
!
ip community-list standard FRBest permit 65000:100
!
route-map FRMED permit 10
match community FRBest
set metric 100
!
route-map FRMED permit 20
set metric 300
router bgp 65000
neighbor 10.0.1.3 weight 500
Legacy#show ip bgp reg 65100
Network
Next Hop
Metric LocPrf Weight Path
*>i10.0.1.1/32
10.0.8.2
0
100
500 65100 i
* i
10.0.11.2
0
100
0 65100 i
*>i192.168.1.0
10.0.8.2
0
100
500 65100 i
* i
10.0.11.2
0
100
0 65100 i
router bgp 65000
neighbor 10.0.1.2 weight 500
Web#show ip bgp regexp 65100
Network
Next Hop
Metric LocPrf Weight Path
*>i10.0.1.1/32
10.0.11.2
0
100
500 65100 i
* i
10.0.8.2
0
100
0 65100 i
*>i192.168.1.0
10.0.11.2
0
100
500 65100 i
* i
10.0.8.2
0
100
0 65100 i


Client.Site-A#traceroute TN3270
Type escape sequence to abort.
Tracing the route to TN3270 (10.0.20.20)
1 Site-A (192.168.1.1) 4 msec 4 msec 4 msec
2 Serial-1-0-100.CoreFR (10.0.8.1) 8 msec 8 msec 8 msec
3 Fast-0-0.Legacy (10.0.10.3) 16 msec 12 msec 12 msec
4 TN3270 (10.0.20.20) 20 msec *
36 msec
Client.Site-A#traceroute MAIL
Type escape sequence to abort.
Tracing the route to MAIL (10.0.21.25)
1 Site-A (192.168.1.1) 8 msec 8 msec 4 msec
2 Tunnel-0.CoreInet (10.0.11.1) 12 msec 8 msec 12 msec
3 Fast-0-0.Web (10.0.10.4) 8 msec 8 msec 16 msec
4 MAIL (10.0.21.25) 36 msec *
28 msec
TN3270#traceroute Client.Site-A
Type escape sequence to abort.
Tracing the route to Client.Site-A (192.168.1.100)
1 Fast-0-1.Legacy (10.0.20.1) 8 msec 4 msec 4 msec
2 Fast-0-0.CoreFR (10.0.10.2) 12 msec 12 msec 8 msec
3 FR-1-0-100.Site-A (10.0.8.2) 8 msec 8 msec 12 msec
4 Client.Site-A (192.168.1.100) 20 msec *
40 msec
Mail#traceroute Client.Site-A
Type escape sequence to abort.
Tracing the route to Client.Site-A (192.168.1.100)
1 Fast-0-1.Web (10.0.21.1) 8 msec 4 msec 4 msec
2 Fast-0-0.CoreInet (10.0.10.1) 12 msec 8 msec 8 msec
3 Tunnel-0.Site-A (10.0.11.2) 16 msec 16 msec 16 msec
4 Client.Site-A (192.168.1.100) 24 msec *
40 msec









Similar documents

INE.CCIE.SPv3.Lab.Workbook-Latest

INE.CCIE.SPv3.Lab.Workbook-Latest 5.1 MPLS Traffic Engineering with OSPF ............................................................... 487 5.2 MPLS Traffic Engineering with IS-IS .....................................................

More information