R1 en conf t ho R1 no ip domain-loo line con 0 no exec-t logg s exit interface Loopback0
ip address 1.1.1.1
255.255.255.255
interface Serial0/0
ip address 12.1.1.1 255.255.255.0
no sh interface Serial0/1
ip address 14.1.1.1 255.255.255.0
no sh router ospf 1
network 14.1.1.0
0.0.0.255
area 0
router bgp 100
network 1.1.1.0 mask 255.255.255.0
neighbor 12.1.1.2 remote-as 200
neighbor 14.1.1.4 remote-as 100
neighbor 34.1.1.3 remote-as 100
R2 en conf t ho R2 no ip domain-loo line con 0 no exec-t logg s exit interface Loopback0
ip address 2.2.2.2
255.255.255.255
interface Serial0/0
ip address 12.1.1.2
255.255.255.0
no sh interface Serial0/1
ip address 23.1.1.2 255.255.255.0
no sh router bgp 200
network 2.2.2.0 mask 255.255.255.0
neighbor 12.1.1.1 remote-as 100
neighbor 23.1.1.3 remote-as 100
R3 en conf t ho R3 no ip domain-loo line con 0 no exec-t logg s exit interface Loopback0
ip address 3.3.3.3
255.255.255.255
interface Serial0/0
ip address 23.1.1.3 255.255.255.0
no sh interface Serial0/1
ip address 34.1.1.3 255.255.255.0
no sh router ospf 1
network 34.1.1.0 0.0.0.255 area 0
router bgp 100
network 3.3.3.0 mask 255.255.255.0
neighbor 14.1.1.1 remote-as 100
neighbor 23.1.1.2 remote-as 200
neighbor 34.1.1.4 remote-as 100
R4 en conf t ho R4 no ip domain-loo line con 0 no exec-t logg s exit interface Loopback0
ip address 4.4.4.4
255.255.255.255
interface Serial0/0
ip address 14.1.1.4 255.255.255.0
no sh interface Serial0/1
ip address 34.1.1.4 255.255.255.0
no sh router ospf 1
network 14.1.1.0 0.0.0.255 area 0
network 34.1.1.0 0.0.0.255 area 0
router bgp 100
network 4.4.4.0 mask 255.255.255.0
neighbor 14.1.1.1 remote-as 100
neighbor 34.1.1.3 remote-as 100
这是我写的配置,配置有问题,请大家帮我看看,如果哪位能帮我再加两个路由器,用OSPF IBGP EBGP 做的复杂点,我这个菜鸟将不胜感激!
|