CISCO之BGP配置

R1:

en
conf t
inter lo0
ip addr 192.168.1.1 255.255.255.0
inter f0/0
ip addr 10.1.1.1 255.255.255.0
no shut
exit
router bgp 300
neighbor 10.1.1.2 remote-as 100
net 192.168.1.0 mask 255.255.255.0
net 10.1.1.0 mask 255.255.255.0
 
 
 
R2:
 
en
conf t
inter lo0
ip addr 172.16.8.1 255.255.255.0
inter f0/0
ip addr 10.1.1.2 255.255.255.0
no shut
inter f0/1
ip addr 10.1.2.2 255.255.255.0
no shut
exit
router bgp 100
neighbor 10.1.2.1 remote-as 200
neighbor 10.1.1.1 remote-as 200
net 10.1.1.0 mask 255.255.255.0
net 10.1.2.0 mask 255.255.255.0
net 172.16.8.0 mask 255.255.255.0
 
 
R3:
 
en
conf t
inter lo0
ip addr 172.16.1.1 255.255.255.0
inter f0/0
ip addr 172.16.100.1 255.255.255.0
no shut
inter f0/1
ip addr 10.1.2.1 255.255.255.0
no shut
exit
router bgp 200
neighbor 10.1.2.2 remote-as 100
net 10.1.2.0 mask 255.255.255.0
net 172.16.1.0 mask 255.255.255.0

你可能感兴趣的:(Cisco,BGP)