实验拓扑如下
R1#
hostname R1
enable password cisco ip dhcp pool lufukang
network 192.168.1.0 255.255.255.0 default-router 192.168.1.1 interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0 interface Serial0/0/0
ip address 202.1.1.2 255.255.255.0 clock rate 128000 router eigrp 10
network 192.168.1.0 network 202.1.1.0 auto-summary line vty 0 4 password cisco login R2#
hostname R2
enable password cisco ip dhcp pool lufukang
network 172.16.1.0 255.255.255.0 default-router 172.16.1.1 interface FastEthernet0/0
ip address 172.16.1.1 255.255.255.0 interface Serial0/0/0
ip address 202.1.1.1 255.255.255.0 interface Serial0/0/1
ip address 171.16.1.1 255.255.255.0 clock rate 128000 router eigrp 10
redistribute ospf 23 metric 10000000 100000 255 1 1000 network 202.1.1.0 no auto-summary router ospf 23
log-adjacency-changes
redistribute eigrp 10 subnets
network 172.16.1.0 0.0.0.255 area 0 network 171.16.1.0 0.0.0.255 area 0 line vty 0 4 password cisco Login R3#
hostname R3
enable password cisco ip dhcp pool lufukang
network 10.1.1.0 255.255.255.0 default-router 10.1.1.1 interface FastEthernet0/0
ip address 10.1.1.1 255.255.255.0 interface Serial0/0/0
ip address 171.16.1.2 255.255.255.0 interface Serial0/0/1
ip address 5.1.1.1 255.255.255.0 clock rate 128000 router ospf 43
log-adjacency-changes
redistribute rip metric 25 metric-type 1 subnets network 171.16.1.0 0.0.0.255 area 0 network 10.1.1.0 0.0.0.255 area 0 router rip version 2
redistribute ospf 43 metric 12 network 5.0.0.0 no auto-summary line vty 0 4
password cisco login R4#
hostname R4
enable password cisco ip dhcp pool lufukang
network 192.168.255.0 255.255.255.0 default-router 192.168.255.1 interface FastEthernet0/0
ip address 192.168.255.1 255.255.255.0 interface Serial0/0/0
ip address 5.1.1.2 255.255.255.0 router rip version 2
network 5.0.0.0
network 192.168.255.0 line vty 0 4 password cisco login