R2 S2/0 192.168.10.6/30
R2 S3/0 192.168.10.9/30
R3 S2/0 192.168.10.10/30
R1(config-if)#ip address 192.168.10.17 255.255.255.240
R1(config-if)#no shutdown
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R1(config-if)#exit
R1(config)#interface serial 2/0
R1(config-if)#ip address 192.168.10.5 255.255.255.252
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config-router)#network 192.168.10.0 0.0.0.255 area 0 //0爲網絡區域ID area-id在0-4294967295內的十進制數,也可以是帶有IP地址格式的x.x.x.x。當網絡區域ID爲0或0.0.0.0時爲主幹域。不同網絡區域的路由器通過主幹域學習路由信息。
R2(config-if)#ip address 192.168.10.6 255.255.255.252
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
R2(config-if)#exit
R2(config)#interface serial 3/0
R2(config-if)#ip address 192.168.10.9 255.255.255.252
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#router ospf 111
R2(config-router)#network 192.168.10.0 0.0.0.255 area 0
R3(config-if)#ip address 192.168.10.33 255.255.255.224
R3(config-if)#no shutdown
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R3(config-if)#exit
R3(config)#interface serial 2/0
R3(config-if)#ip address 192.168.10.10 255.255.255.252
R3(config-if)#no shutdown
R3(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
R3(config-if)#exit
R3(config)#router ospf 112
R3(config-router)#network 192.168.10.0 0.0.0.255 area 0
Reply from 192.168.10.34: bytes=32 time=168ms TTL=125
Reply from 192.168.10.34: bytes=32 time=157ms TTL=125
Reply from 192.168.10.34: bytes=32 time=167ms TTL=125