Академический Документы
Профессиональный Документы
Культура Документы
Lab Purpose:
1、Solve AS-PATH attribute missing issue during BGP and IGP redistribution.
2、Master route tag store and restore BGP AS-PATH attribute configuration.
Lab Steps:
R2(config)#router ospf 1
R2(config-router)#exit
R2(config)#exit
R3(config)#router ospf 1
1
R3(config-router)#exit
R3(config)#exit
4、Establish BGP relationship between R1 R2, R3 R4. No BGP relationship between R2 R3.
R1(config-router)#exit
R2(config-router)#exit
R2(config)#exit
R3(config-router)#exit
R3(config)#exit
2
5、Confirm BGP relationship on R2 and R3.
6、Check routing table on R4, we can see no routes have been learn.
R4#show ip route
R2(config)#router ospf 1
R2(config-router)#exit
R2(config)#
R2(config-router)#
R3(config-router)#exit
R3(config)#
3
R3(config)#router ospf 1
R3(config-router)#exit
R3(config)#exit
8、Check routing table again on R4, we can see routes are there.
R4#show ip route
…………
9、Check BGP routing table on R4, we can see routes are there but some BGP attributes are
missing. Such as item 130.130.1.0/24 from AS 64512, the AS-PATH of this item should be
64521 65513, but in the BGP table it only appears AS 64513, the BGP origin attribute is also
incomplete.
R4#show ip bgp
r RIB-failure, S Stale
4
*> 192.168.1.0 192.168.2.1 1 0 64513 ?
10、As OSPF can not recognize BGP AS-PATH attribute from redistribution, so there is BGP
AS-PATH attribute missing issue. To solve this problem, route tag should be introduced. We use
route tag to store BGP attribute before redistribution from BGP to OSPF on R2, and restore it by
redistribution from OSPF to BGP on R3.
R2(config-route-map)#set automatic-tag
R2(config-route-map)#exit
R2(config)#
R2(config-router)#table-map SET_TAG
R2(config-router)#exit
R3(config-router)#exit
13、Check BGP routing table on R4, we can see the AS-PATH for item 130.130.1.0/24 is
complete now, and originate from IGP.
R4#show ip bgp
5
BGP table version is 15, local router ID is 192.168.2.2
r RIB-failure, S Stale
R4#ping 130.130.1.1
!!!!!