转载 树袋大熊

BGP中联邦应用  

2011-11-23 20:04:58|  分类: 实验 |  标签:bgp中的联邦应用配置  |举报|字号 订阅

实验拓扑:

BGP中联邦应用 - 树袋大熊 - 树袋大熊

 实验目的:熟悉理解BGP中联邦应用及其配置命令

实验配置:

R1配置:

R1#show run | begin router bgp
router bgp 100
 no synchronization
 bgp router-id 1.1.1.1
 bgp log-neighbor-changes
 network 1.1.1.0 mask 255.255.255.0
 neighbor 12.1.1.2 remote-as 200
 no auto-summary
!
ip classless
ip http server
ip pim bidir-enable
!
!
!
!
call rsvp-sync
!
!
mgcp profile default
!
dial-peer cor custom
!
!
!         
!
line con 0
line aux 0
line vty 0 4

R2配置:

R2#show run | begin router    
router ospf 1
 router-id 2.2.2.2
 log-adjacency-changes
 network 2.2.2.0 0.0.0.255 area 0
 network 23.1.1.0 0.0.0.255 area 0
!
router bgp 64512
 no synchronization
 bgp router-id 2.2.2.2
 bgp log-neighbor-changes
 bgp confederation identifier 200
 neighbor 3.3.3.3 remote-as 64512
 neighbor 3.3.3.3 update-source Loopback0
 neighbor 3.3.3.3 next-hop-self
 neighbor 12.1.1.1 remote-as 100
 no auto-summary
!
ip classless
ip http server
ip pim bidir-enable
!
!
!
!         
call rsvp-sync

R3配置:

R3#show run | begin router 
router ospf 1
 router-id 3.3.3.3
 log-adjacency-changes
 network 3.3.3.0 0.0.0.255 area 0
 network 23.1.1.0 0.0.0.255 area 0
 network 34.1.1.0 0.0.0.255 area 0
!
router bgp 64512
 no synchronization
 bgp router-id 3.3.3.3
 bgp log-neighbor-changes
 bgp confederation identifier 200
 bgp confederation peers 64513 
 neighbor 2.2.2.2 remote-as 64512
 neighbor 2.2.2.2 update-source Loopback0
 neighbor 2.2.2.2 next-hop-self
 neighbor 4.4.4.4 remote-as 64513
 neighbor 4.4.4.4 ebgp-multihop 2
 neighbor 4.4.4.4 update-source Loopback0
 neighbor 4.4.4.4 next-hop-self
 no auto-summary
!
ip classless
ip http server
ip pim bidir-enable

 

R4配置:

R4#show run | begin router
router ospf 1
 router-id 4.4.4.4
 log-adjacency-changes
 network 4.4.4.0 0.0.0.255 area 0
 network 34.1.1.0 0.0.0.255 area 0
!
router bgp 64513
 no synchronization
 bgp router-id 4.4.4.4
 bgp log-neighbor-changes
 bgp confederation identifier 200                    联邦对外宣称自己是AS200
 bgp confederation peers 64512                      联邦EBGP对等体配置
 neighbor 3.3.3.3 remote-as 64512
 neighbor 3.3.3.3 ebgp-multihop 2
 neighbor 3.3.3.3 update-source Loopback0
 neighbor 3.3.3.3 next-hop-self
 neighbor 45.1.1.5 remote-as 300
 no auto-summary
!
ip classless
ip http server
ip pim bidir-enable

 

R5配置:

R5#show run | begin router
router bgp 300
 no synchronization
 bgp router-id 5.5.5.5
 bgp log-neighbor-changes
 network 5.5.5.0 mask 255.255.255.0
 neighbor 45.1.1.4 remote-as 200
 no auto-summary
!
ip classless
ip http server
ip pim bidir-enable
!

实验结果测试及查看:

R1# show ip bgp 
BGP table version is 3, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 1.1.1.0/24       0.0.0.0                  0         32768 i
*> 5.5.5.0/24       12.1.1.2                               0 200 300 i
R1#

R2# show  ip bgp 
BGP table version is 3, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 1.1.1.0/24       12.1.1.1                 0             0 100 i
*>i5.5.5.0/24       3.3.3.3                  0    100      0 (64513) 300 i
R2#

R3#show ip bgp 
BGP table version is 3, local router ID is 3.3.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*>i1.1.1.0/24       2.2.2.2                  0    100      0 100 i
*> 5.5.5.0/24       4.4.4.4                  0    100      0 (64513) 300 i

R4#sho ip bgp 
BGP table version is 3, local router ID is 4.4.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 1.1.1.0/24       3.3.3.3                  0    100      0 (64512) 100 i
*> 5.5.5.0/24       45.1.1.5                 0             0 300 i

R5# show ip bgp 
BGP table version is 3, local router ID is 5.5.5.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 1.1.1.0/24       45.1.1.4                               0 200 100 i
*> 5.5.5.0/24       0.0.0.0                  0         32768 i
R5#

实验完毕!!