当前位置:文档之家› 不同路由协议间能够互相通信的路由配置

不同路由协议间能够互相通信的路由配置

R0(config)#interface serial 0/0/0

R0(config-if)#ip add

R0(config-if)#ip address 192.168.2.2 255.255.255.0 R0(config-if)#no shutdown

R0 (config-if)#clock rate 64000

R0(config)#router eigrp 1

R0(config-router)#network 192.168.2.0 0.0.0.255

R1(config)#interface fastEthernet 0/0

R1(config-if)#ip address 172.16.2.2 255.255.255.0 R1(config-if)#no shutdown

R1(config-if)#exit

R1(config)#interface serial 0/0/0

R1(config-if)#ip address 192.168.2.1 255.255.255.0 R1(config-if)#no shutdown

R1(config)#router ospf 1

R1(config-router)#network 172.16.2.0 0.0.0.255 area 0 R1(config-router)#exit

R1(config)#router eigrp 1

R1(config-router)#network 192.168.2.0 0.0.0.255

R1(config-router)#exit

R1(config)#ip route 0.0.0.0 0.0.0.0 fastEthernet 0/0

R1(config)#router eigrp 1

R1(config-router)#redistribute static

R1(config)#router OSpf 1

R1(config-router)#redistribute eigrp 1 subnets

//把eigrp注入到ospf中

R1(config-router)#eixt

R3(config)#interface serial 0/0/0

R3(config-if)#ip address 192.168.1.2 255.255.255.0

R3(config-if)#no shutdown

R3(config-if)#clock rate 64000

R3(config-if)#exit

R3(config)#interface fastEthernet 0/0

R3(config-if)#ip address 172.16.2.1 255.255.255.0

R3(config-if)#no shutdown

R3(config)#router ospf 1

R3(config-router)#network 192.168.1.0 0.0.0.255 area 1 R3(config-router)#network 172.16.2.0 0.0.0.255 area 0 R3(config-router)#exit

R3(config)#interface loopback 0

R3(config-if)#ip address 1.1.1.1 255.255.255.255

R3(config-if)#no shutdown

R3(config-if)#exit

R3(config)#ip route 0.0.0.0 0.0.0.0 loopback 0

R4(config)#interface serial 0/0/0

R4(config-if)#ip address 192.168.1.1 255.255.255.0

R4(config-if)#no shutdown

R4(config)#router ospf 1

R4(config-router)#network 192.168.1.0 0.0.0.255 area 1

相关主题