网络工程师交换试验手册之十三:单区域
OPSF
配置
2007-06-25
实验目的:
熟悉 OPSF 在常规区域种的单区配置。熟悉 OSPF 的工作原理和工作过程,理解 OSPF 的特点,理解 OSPF 的区域和 OSPF 的进程的概念。 实验拓扑: 实验内容: 1 .路由器的基本配置。 R1 上的基本配置: interface Loopback0 ip address 1.1.1.1 255.255.255.0 ip ospf network point-to-point ! interface Serial0 ip address 192.168.10.1 255.255.255.0 clockrate 64000 R2 上的基本配置 interface Loopback0 ip address 2.2.2.2 255.255.255.0 ip ospf network point-to-point ! interface Serial1 ip address 192.168.10.2 255.255.255.0 interface serial0 ip address 192.168.11.1 255.255.255.0 clockrate 64000 R3 上的基本配置 interface Loopback0 ip address 3.3.3.3 255.255.255.0 ip ospf network point-to-point interface serial1 ip address 192.168.11.2 255.255.255.0 2 .在路由器上配置 OPSF 协议 R1 上 R1config-if)#router ospf 100 R1config-router)#net 3.3.3.3 0.0.0.0 area 0 R1config-router)#net 192.168.10.0 0.0.0.255 area 0 宣告网络端在区域 0 中 R2 上 R2config-if)#router ospf 100 R2config-router)#net 4.4.4.4 0.0.0.0 area 0 R2config-router)#net 192.168.10.0 0.0.0.255 area 0 R2config-router)#net 192.168.11.0 0.0.0.255 area 0 R3 上 R3config)#router ospf 100 R3config-router)#net 5.5.5.5 0.0.0.0 area 0 R3config-router)#net 192.168.11.0 0.0.0.255 area 0 3 .测试连通性。 在 R3 上 PING R3#ping 2.2.2.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 60/62/64 ms R3#ping 3.3.3.3 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 132/154/180 ms R3#ping 192.168.11.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 60/62/64 ms R3#ping 192.168.11.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 60/62/64 ms 实验总结: 对于 OSPF 的重点,我们依然没有放到单区域上来,希望大家能够做到熟练操作命令就可以了。 |
转载于:https://blog.51cto.com/10748/33475