CCNA实验四 (简单OSPF)

实验目的 :

CCNA实验四 (简单OSPF)_第1张图片

使用OSPF协议互相建立邻居发送路由

命令行:

R1命令行如下:

Router>en
Router#conf
Router#configure t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface loopback 0
*Jul 11 03:40:33.922: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up
Router(config-if)#ip address 1.1.1.1 255.255.255.0
Router(config-if)#exit
Router(config)#int e 0/0
Router(config-if)#ip add
Router(config-if)#ip address 12.1.1.1 255.255.255.0
Router(config-if)#no shu
Router(config-if)#exit
Router(config)#
*Jul 11 03:41:20.496: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up
*Jul 11 03:41:21.497: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to up
Router(config)#int e 0/1
Router(config-if)#ip address 13.1.1.1 255.255.255.0
Router(config-if)#no shu
*Jul 11 03:41:37.691: %LINK-3-UPDOWN: Interface Ethernet0/1, changed state to up
*Jul 11 03:41:38.692: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/1, changed state to up
Router(config-if)#exit
Router(config)#router ospf 110
Router(config-router)#router-id 1.1.1.1
Router(config-router)#network 1.1.1.1 0.0.0.0 area 0
Router(config-router)#network 12.1.1.1 0.0.0.0 area 0
Router(config-router)#network 13.1.1.1 0.0.0.0 area 0
Router(config-router)#end

R2命令行如下:

Router#configure t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface loopback 0
Router(config-if)#
*Jul 11 03:41:57.017: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up
Router(config-if)#ip address 2.2.2.2 255.255.255.0
Router(config-if)#exit
Router(config)#int e 0/0
Router(config-if)#ip add
Router(config-if)#ip address 12.1.1.2 255.255.255.0
Router(config-if)#no shu
Router(config-if)#exit
*Jul 11 03:42:33.496: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up
*Jul 11 03:42:34.501: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to up
Router(config)#router ospf 110
Router(config-router)#router-id 2.2.2.2
Router(config-router)#network 2.2.2.2 0.0.0.0 area 0
Router(config-router)#network 12.1.1.2 0.0.0.0 area 0
Router(config-router)#end
*Jul 11 04:00:24.801: %SYS-5-CONFIG_I: Configured from console by consolew
Router#ping   
Protocol [ip]: 
Target IP address: 3.3.3.3
Repeat count [5]: 
Datagram size [100]: 
Timeout in seconds [2]: 
Extended commands [n]: Y
Source address or interface: 2.2.2.2
Type of service [0]: 
Set DF bit in IP header? [no]: 
Validate reply data? [no]: 
Data pattern [0xABCD]: 
Loose, Strict, Record, Timestamp, Verbose[none]: 
Sweep range of sizes [n]: 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
Packet sent with a source address of 2.2.2.2 
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Router#

R3命令行如下:

Router>en
Router#configure t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface loopback 0 
*Jul 11 03:42:52.895: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up
Router(config-if)#ip address 3.3.3.3 255.255.255.0
Router(config-if)#exit
Router(config)#int e 0/0
Router(config-if)#ip address 13.1.1.3 255.255.255.0
Router(config-if)#no shu
Router(config-if)#exit
Router(config)#
*Jul 11 03:43:29.459: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up
*Jul 11 03:43:30.465: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to up
Router(config)#router ospf 110
Router(config-router)#router-id 3.3.3.3
Router(config-router)#network 13.1.1.3 0.0.0.0 area 0
Router(config-router)#network 3.3.3.3 0.0.0.0 area 0
Router(config-router)#end

你可能感兴趣的:(训练中的网工)