Objectives
config t
access-list 68 permit 210.15.1.0 0.0.254.255
access-list 68 permit 215.10.0.0 0.0.254.255
router bgp 6050
neighbor 160.5.1.99 distribute-list 68 in
clear ip bgp 160.5.1.99
check on router 1
show ip bgp
Show ip ospf detabase
check for tag info
config t
route-map OSPF_2_BGP
match tag 5
set metric 130
exit
router BGP 6050
redistribute ospf 1 rout-emap OSPF_2_BGP
clear ip bgp *
R3#show ip bgp
BGP table version is 24, local router ID is 10.3.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i100.100.100.0/24 10.1.1.1 0 100 0 112 i
*> 170.12.7.0/24 129.186.35.7 130 32768 ?
*> 192.168.0.0 129.186.35.7 130 32768 ?
*> 192.168.1.0 129.186.35.7 130 32768 ?
*> 192.168.2.0 129.186.35.7 130 32768 ?
*> 192.168.3.0 129.186.35.7 130 32768 ?
*> 192.168.4.0 129.186.35.7 130 32768 ?
*> 192.168.5.0 129.186.35.7 130 32768 ?
*> 192.168.6.0 129.186.35.7 130 32768 ?
*> 192.168.7.0 129.186.35.7 130 32768 ?
*> 192.168.8.0 129.186.35.7 130 32768 ?
*> 192.168.9.0 129.186.35.7 130 32768 ?
*> 192.168.10.0 129.186.35.7 130 32768 ?
*>i210.15.5.0 10.6.6.6 0 100 0 60 i
*>i210.15.15.0 10.6.6.6 0 100 0 60 i
*>i210.15.25.0 10.6.6.6 0 100 0 60 i
*>i210.15.35.0 10.6.6.6 0 100 0 60 i
*>i210.15.45.0 10.6.6.6 0 100 0 60 i
*>i210.15.55.0 10.6.6.6 0 100 0 60 i
*>i210.15.65.0 10.6.6.6 0 100 0 60 i
*>i210.15.75.0 10.6.6.6 0 100 0 60 i
*>i210.15.85.0 10.6.6.6 0 100 0 60 i
*>i210.15.95.0 10.6.6.6 0 100 0 60 i
Router 1
config t
router bgp 112
neighbor 10.3.3.3 remot as 6050
nighbor 10.3.3.3 update source loopback 0
neghbor 10.3.3.3 ebgp-multihop 5
Router 3
router bgp 6050
neighbor 10.1.1.1 remot as 6050
nighbor 10.1.1.1 update source loopback 0
neghbor 10.1.1.1 ebgp-multihop 5
router bgp 112
neighbor 10.2.2.2 route-map WEIGHT_4_R2 in
neighbor 10.3.3.3 route-map WEIGHT_4_R3 in
no auto-summary
access-list 30 permit 215.10.0.0 0.0.255.255
access-list 40 permit 210.15.0.0 0.0.255.255
route-map WEIGHT_4_R2 permit 10
match ip address 30
set weight 100
!
route-map WEIGHT_4_R2 permit 20
!
route-map WEIGHT_4_R3 permit 10
match ip address 40
set weight 100
!
route-map WEIGHT_4_R3 permit 20
!
R1#show ip bg
R1#show ip bgp
BGP table version is 56, local router ID is 100.100.100.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 100.100.100.0/24 0.0.0.0 0 32768 i
*> 170.12.7.0/24 10.2.2.2 0 6050 ?
* 10.3.3.3 130 0 6050 ?
*> 192.168.0.0 10.2.2.2 0 6050 ?
* 10.3.3.3 130 0 6050 ?
*> 192.168.1.0 10.2.2.2 0 6050 ?
* 10.3.3.3 130 0 6050 ?
*> 192.168.2.0 10.2.2.2 0 6050 ?
* 10.3.3.3 130 0 6050 ?
*> 192.168.3.0 10.2.2.2 0 6050 ?
* 10.3.3.3 130 0 6050 ?
*> 192.168.4.0 10.2.2.2 0 6050 ?
* 10.3.3.3 130 0 6050 ?
*> 192.168.5.0 10.2.2.2 0 6050 ?
* 10.3.3.3 130 0 6050 ?
*> 192.168.6.0 10.2.2.2 0 6050 ?
* 10.3.3.3 130 0 6050 ?
*> 192.168.7.0 10.2.2.2 0 6050 ?
* 10.3.3.3 130 0 6050 ?
*> 192.168.8.0 10.2.2.2 0 6050 ?
* 10.3.3.3 130 0 6050 ?
*> 192.168.9.0 10.2.2.2 0 6050 ?
* 10.3.3.3 130 0 6050 ?
*> 192.168.10.0 10.2.2.2 0 6050 ?
* 10.3.3.3 130 0 6050 ?
* 210.15.5.0 10.2.2.2 0 6050 60 i
*> 10.3.3.3 100 6050 60 i
* 210.15.15.0 10.2.2.2 0 6050 60 i
*> 10.3.3.3 100 6050 60 i
* 210.15.25.0 10.2.2.2 0 6050 60 i
*> 10.3.3.3 100 6050 60 i
* 210.15.35.0 10.2.2.2 0 6050 60 i
*> 10.3.3.3 100 6050 60 i
* 210.15.45.0 10.2.2.2 0 6050 60 i
*> 10.3.3.3 100 6050 60 i
* 210.15.55.0 10.2.2.2 0 6050 60 i
*> 10.3.3.3 100 6050 60 i
* 210.15.65.0 10.2.2.2 0 6050 60 i
*> 10.3.3.3 100 6050 60 i
* 210.15.75.0 10.2.2.2 0 6050 60 i
*> 10.3.3.3 100 6050 60 i
* 210.15.85.0 10.2.2.2 0 6050 60 i
*> 10.3.3.3 100 6050 60 i
* 210.15.95.0 10.2.2.2 0 6050 60 i
*> 10.3.3.3 100 6050 60 i
*> 215.10.105.0 10.2.2.2 100 6050 60 i
* 10.3.3.3 0 6050 60 i
*> 215.10.115.0 10.2.2.2 100 6050 60 i
* 10.3.3.3 0 6050 60 i
*> 215.10.125.0 10.2.2.2 100 6050 60 i
* 10.3.3.3 0 6050 60 i
*> 215.10.135.0 10.2.2.2 100 6050 60 i
* 10.3.3.3 0 6050 60 i
*> 215.10.145.0 10.2.2.2 100 6050 60 i
* 10.3.3.3 0 6050 60 i
*> 215.10.155.0 10.2.2.2 100 6050 60 i
* 10.3.3.3 0 6050 60 i
*> 215.10.165.0 10.2.2.2 100 6050 60 i
* 10.3.3.3 0 6050 60 i
*> 215.10.175.0 10.2.2.2 100 6050 60 i
* 10.3.3.3 0 6050 60 i
*> 215.10.185.0 10.2.2.2 100 6050 60 i
* 10.3.3.3 0 6050 60 i
*> 215.10.195.0 10.2.2.2 100 6050 60 i
* 10.3.3.3 0 6050 60 i
R1#