实验目的 :
使用EIGRP协议互相建立邻居发送路由
命令行:
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 eigrp 90
Router(config-router)#net
Router(config-router)#network 1.1.1.1 0.0.0.0
Router(config-router)#network 12.1.1.1 0.0.0.0
Router(config-router)#network 13.1.1.1 0.0.0.0
Router(config-router)#no auto-summary
*Jul 11 03:44:46.847: %DUAL-5-NBRCHANGE: EIGRP-IPv4 90: Neighbor 12.1.1.2 (Ethernet0/0) is up: new adjacency
Router(config-router)#
*Jul 11 03:45:25.028: %DUAL-5-NBRCHANGE: EIGRP-IPv4 90: Neighbor 13.1.1.3 (Ethernet0/1) is up: new adjacency
Router(config-router)#end
Router#
*Jul 11 03:45:38.616: %SYS-5-CONFIG_I: Configured from console by console
Router#show ip pro
Router#show ip protocols
*** IP Routing is NSF aware ***
Routing Protocol is "application"
Sending updates every 0 seconds
Invalid after 0 seconds, hold down 0, flushed after 0
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Maximum path: 32
Routing for Networks:
Routing Information Sources:
Gateway Distance Last Update
Distance: (default is 4)
Routing Protocol is "eigrp 90"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
EIGRP-IPv4 Protocol for AS(90)
Metric weight K1=1, K2=0, K3=1, K4=0, K5=0
NSF-aware route hold timer is 240
Router-ID: 1.1.1.1
Topology : 0 (base)
Active Timer: 3 min
Distance: internal 90 external 170
Maximum path: 4
Maximum hopcount 100
Maximum metric variance 1
Automatic Summarization: disabled
Maximum path: 4
Routing for Networks:
1.1.1.1/32
12.1.1.1/32
13.1.1.1/32
Routing Information Sources:
Gateway Distance Last Update
13.1.1.3 90 00:00:14
12.1.1.2 90 00:00:13
Distance: internal 90 external 170
Router#
Router#
Router#
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: 1.1.1.1
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 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 3/4/6 ms
Router#
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 eigrp 90
Router(config-router)#no auto-summary
Router(config-router)#network 12.1.1.2 0.0.0.0
*Jul 11 03:44:46.852: %DUAL-5-NBRCHANGE: EIGRP-IPv4 90: Neighbor 12.1.1.1 (Ethernet0/0) is up: new adjacency
Router(config-router)#network 2.2.2.2 0.0.0.0
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 eigrp 90
Router(config-router)#no auto-summary
Router(config-router)#network 13.1.1.3 0.0.0.0
*Jul 11 03:45:25.038: %DUAL-5-NBRCHANGE: EIGRP-IPv4 90: Neighbor 13.1.1.1 (Ethernet0/0) is up: new adjacency
Router(config-router)#network 3.3.3.3 0.0.0.0
Router(config-router)#end
Router#ping
*Jul 11 03:49:49.889: %SYS-5-CONFIG_I: Configured from console by console
Router#ping
Protocol [ip]:
Target IP address: 2.2.2.2
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 3.3.3.3
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 2.2.2.2, timeout is 2 seconds:
Packet sent with a source address of 3.3.3.3
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Router#