<a href="http://s3.51cto.com/wyfs02/M01/25/0A/wKiom1NY0righ2xWAACnb7CWApo121.jpg" target="_blank"></a>
hostname r1
R1#show run
Building configuration...
Current configuration : 1372 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname R1
boot-start-marker
boot-end-marker
no aaa new-model
ip cef
no ip domain lookup
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.0
interface FastEthernet0/0
no ip address
shutdown
duplex half
interface Serial1/0
ip address 12.0.0.1 255.255.255.0
serial restart-delay 0
interface Serial1/1
interface Serial1/2
interface Serial1/3
interface Serial1/4
interface Serial1/5
interface Serial1/6
interface Serial1/7
router bgp 100
no synchronization
bgp log-neighbor-changes
network 1.1.1.0 mask 255.255.255.0
network 12.0.0.0 mask 255.255.255.0
neighbor 12.0.0.2 remote-as 234
no auto-summary
no ip http server
no ip http secure-server
control-plane
gatekeeper
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
line vty 0 4
end
hostname r2
R2#show run
Current configuration : 1559 bytes
hostname R2
ip address 2.2.2.2 255.255.255.0
ip address 12.0.0.2 255.255.255.0
ip address 23.0.0.2 255.255.255.0
router eigrp 11
network 2.0.0.0
network 23.0.0.0
router bgp 65023
bgp confederation identifier 234
network 2.2.2.0 mask 255.255.255.0
neighbor 3.3.3.3 remote-as 65023
neighbor 3.3.3.3 update-source Loopback0
neighbor 3.3.3.3 next-hop-self
neighbor 12.0.0.1 remote-as 100
hostname r3
R3#show run
Current configuration : 1730 bytes
hostname R3
ip address 3.3.3.3 255.255.255.0
ip address 23.0.0.3 255.255.255.0
ip address 34.0.0.3 255.255.255.0
network 3.0.0.0
network 34.0.0.0
bgp confederation peers 65034
network 3.3.3.0 mask 255.255.255.0
network 23.0.0.0 mask 255.255.255.0
network 34.0.0.0 mask 255.255.255.0
neighbor 2.2.2.2 remote-as 65023
neighbor 2.2.2.2 update-source Loopback0
neighbor 4.4.4.4 remote-as 65034
neighbor 4.4.4.4 ebgp-multihop 255
neighbor 4.4.4.4 update-source Loopback0
hostname r4
R4#show run
Current configuration : 1627 bytes
hostname R4
ip address 4.4.4.4 255.255.255.0
ip address 34.0.0.4 255.255.255.0
ip address 45.0.0.4 255.255.255.0
network 4.0.0.0
router bgp 65034
bgp confederation peers 65023
network 4.4.4.0 mask 255.255.255.0
neighbor 3.3.3.3 ebgp-multihop 255
neighbor 45.0.0.5 remote-as 500
hostname r5
R5#show run
hostname R5
ip address 5.5.5.5 255.255.255.0
ip address 45.0.0.5 255.255.255.0
router bgp 500
network 5.5.5.0 mask 255.255.255.0
network 45.0.0.0 mask 255.255.255.0
neighbor 45.0.0.4 remote-as 234
R3#show ip bgp
BGP table version is 12, local router ID is 3.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
*>i1.1.1.0/24 2.2.2.2 0 100 0 100 i
r>i2.2.2.0/24 2.2.2.2 0 100 0 i
*> 3.3.3.0/24 0.0.0.0 0 32768 i
r> 4.4.4.0/24 4.4.4.4 0 100 0 (65034) i
*> 5.5.5.0/24 4.4.4.4 0 100 0 (65034) 500 i
*>i12.0.0.0/24 2.2.2.2 0 100 0 100 i
*> 23.0.0.0/24 0.0.0.0 0 32768 i
*> 34.0.0.0/24 0.0.0.0 0 32768 i
*> 45.0.0.0/24 4.4.4.4 0 100 0 (65034) 500
R1#ping 5.5.5.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/61/128 ms
R5#ping 1.1.1.1
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/74/152 ms
本文轉自zhang25yun51CTO部落格,原文連結: http://blog.51cto.com/1585654/1402027,如需轉載請自行聯系原作者