R1的配置
R3>en
R3#conf t
R3(config)#inter f0/0
R3(config-if)#ip address 202.106.23.3 255.255.255.0
R3(config-if)#no shut
R3(config-if)#inter f0/1
R3(config-if)#ip address 202.106.34.3 255.255.255.0
R3(config-if)#no shut
R3(config-if)#inter loop 0
R3(config-if)#ip address 3.3.3.3 255.255.255.255
R3(config-if)#no shut
R3(config-if)#ex
R3(config)#router ospf 110 配置OSPF协议 度量值为COST
R3(config-router)#net 3.3.3.3 0.0.0.0 a 1
R3(config-router)#net 202.106.34.0 0.0.0.255 a 1
R3(config-router)#net 202.106.23.0 0.0.0.255 a 1
R3(config-router)#redistribute rip subnets 把RIP协议加入到OSPF里
R3(config-router)#end
R3(config)#router rip
R3(config-router)#v 2
R3(config-router)#no au
R3(config-router)#net 0.0.0.0
R3(config-router)#end
R3#show ip rout
C 202.106.23.0/24 is directly connected, FastEthernet0/0
1.0.0.0/32 is subnetted, 1 subnets
R 1.1.1.1 [120/2] via 202.106.23.2, 00:00:16, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
R 2.2.2.2 [120/1] via 202.106.23.2, 00:00:16, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/11] via 202.106.34.4, 00:01:46, FastEthernet0/1
5.0.0.0/32 is subnetted, 1 subnets
O IA 5.5.5.5 [110/21] via 202.106.34.4, 00:01:48, FastEthernet0/1
6.0.0.0/32 is subnetted, 1 subnets
O IA 6.6.6.6 [110/31] via 202.106.34.4, 00:01:48, FastEthernet0/1
C 202.106.34.0/24 is directly connected, FastEthernet0/1
O IA 202.106.45.0/24 [110/20] via 202.106.34.4, 00:07:02, FastEthernet0/1
R 202.106.12.0/24 [120/1] via 202.106.23.2, 00:00:23, FastEthernet0/0
O IA 202.106.56.0/24 [110/30] via 202.106.34.4, 00:07:02, FastEthernet0/1
R3#write
Building configuration…
[OK]
R3#
R4的配置
R6>en
R6#conf t
R6(config)#inter f0/0
R6(config-if)#ip address 202.106.56.6 255.255.255.0
R6(config-if)#no shut
R6(config-if)#int loop 0
R6(config-if)#ip address 6.6.6.6 255.255.255.255
R6(config-if)#no shut
R6(config-if)#ex
R6(config)#router ospf 110
R6(config-router)#net 6.6.6.6 0.0.0.0 a 2
R6(config-router)#net 202.106.56.0 0.0.0.255 a 2
R6(config-router)#end
R6#ping 202.106.34.3
ending 5, 100-byte ICMP Echos to 202.106.34.3, timeout is 2 seconds:
!!!!!
R6#write
Building configuration…
[OK]
R6#show ip route
O IA 202.106.23.0/24 [110/40] via 202.106.56.5, 00:01:54, FastEthernet0/0
1.0.0.0/32 is subnetted, 1 subnets
O E2 1.1.1.1 [110/20] via 202.106.56.5, 00:01:49, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
O E2 2.2.2.2 [110/20] via 202.106.56.5, 00:01:49, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/31] via 202.106.56.5, 00:20:46, FastEthernet0/0
4.0.0.0/32 is subnetted, 1 subnets
O IA 4.4.4.4 [110/21] via 202.106.56.5, 00:20:46, FastEthernet0/0
5.0.0.0/32 is subnetted, 1 subnets
O IA 5.5.5.5 [110/11] via 202.106.56.5, 00:20:47, FastEthernet0/0
6.0.0.0/32 is subnetted, 1 subnets
C 6.6.6.6 is directly connected, Loopback0
O IA 202.106.34.0/24 [110/30] via 202.106.56.5, 00:20:48, FastEthernet0/0
O IA 202.106.45.0/24 [110/20] via 202.106.56.5, 00:20:48, FastEthernet0/0
O E2 202.106.12.0/24 [110/20] via 202.106.56.5, 00:01:51, FastEthernet0/0
C 202.106.56.0/24 is directly connected, FastEthernet0/0
R6#ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
由区域内的路由器发出。
2类
5,美国服务器,香港服务器租用,香港服务器租用愚者用肉体监视心灵,智者用心灵监视肉体