CCNP Day2 路由分类及EIGRP
1、路由分类
2、EIGRP网络拓扑测试
3、路由器基础配置
R1的基础配置
R1>enable R1#config t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#interface f0/0 R1(config-if)#ip address 172.16.12.1 255.255.255.0 R1(config-if)#no shu R1(config)#interface loopback 0 R1(config-if)#ip address 1.1.1.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#
R2的基础配置
R2>enable
R2#config t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#interface f0/0
R2(config-if)#ip address 172.16.12.2 255.255.255.0
R2(config-if)#no shu
R2(config)#interface s1/0
R2(config-if)#ip add 192.168,23.1 255.255.255.0
R2(config-if)#ip add 192.168.23.1 255.255.255.0
R2(config-if)#no shu
R2(config-if)#
R3的基础配置
R3>
R3>eanble
Translating "eanble"
R3#config t
R3(config)#interface s1/0
R3(config-if)#ip address 192.168.23.2 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config-if)#ip address 3.3.3.3 255.255.255.0
R3(config-if)#no shu
R3(config-if)#no shutdown
3、EIGRP配置
R1(config)#router eigrp 99 R1(config-router)#network 172.16.12.0 0.0.0.255 /****使用标准反掩码方式宣告*****/ R1(config-router)#
R1#show running-config | b r e
router eigrp 99
network 172.16.12.0 0.0.0.255
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#router eigrp 99
R1(config-router)#no network 172.16.12.0 0.0.0.255
R1(config-router)#network 172.16.12.0 255.255.255.0 /****使用标准网络方式宣告,系统内部会自动转反掩码*****/
R1(config-router)#network 1.1.1.0 0.0.0.255
R1#show run | b r e
router eigrp 99
network 172.16.12.0 0.0.0.255
auto-summary
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, Loopback0
D 1.0.0.0/8 is a summary, 00:00:40, Null0
D 3.0.0.0/8 [90/2300416] via 172.16.12.2, 00:02:29, FastEthernet0/0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.12.0/24 is directly connected, FastEthernet0/0
D 172.16.0.0/16 is a summary, 00:00:40, Null0
D 192.168.23.0/24 [90/2172416] via 172.16.12.2, 00:03:14, FastEthernet0/0
R1#
R2 EIGRP配置
R2(config)#router eigrp 99 R2(config-router)#network 172.16.12.0 0.0.0.255 *Nov 23 08:55:30.759: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 99: Neighbor 172.16.12.1 (FastEthernet0/0) is up: new adjacency R2(config-router)#network 192.168.23.0 0.0.0.255 *Nov 23 08:56:17.883: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 99: Neighbor 192.168.23.2 (Serial1/0) is up: new adjacency R2(config)#end R2#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set D 1.0.0.0/8 [90/156160] via 172.16.12.1, 01:15:16, FastEthernet0/0 D 3.0.0.0/8 [90/2297856] via 192.168.23.2, 01:17:05, Serial1/0 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C 172.16.12.0/24 is directly connected, FastEthernet0/0 D 172.16.0.0/16 is a summary, 01:17:50, Null0 C 192.168.23.0/24 is directly connected, Serial1/0 R2#
R3 EIGRP配置
R3(config)#router eigrp 99 R3(config-router)#network 192.168.23.0 0.0.0.255 R3(config-router)#network 3.3.3.0 0 *Nov 23 08:56:21.863: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 99: Neighbor 192.168.23.1 (Serial1/0) is up: new adjacency R3(config-router)#network 3.3.3.0 0.0.0.255 R3(config-router)#exit R3(config)#end R3#show ip *Nov 23 08:56:36.919: %SYS-5-CONFIG_I: Configured from console by console R3#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set 3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 3.3.3.0/24 is directly connected, Loopback0 D 3.0.0.0/8 is a summary, 00:00:10, Null0 D 172.16.0.0/16 [90/2172416] via 192.168.23.1, 00:00:17, Serial1/0 C 192.168.23.0/24 is directly connected, Serial1/0 R3#
连通性测试
R1#ping 3.3.3.3 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 60/67/84 ms R1# R3#ping 1.1.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 60/65/72 ms R3#
EIGRP路由基础汇总: