CCNP之BSCI实验4:配置EIGRP默认路由

CCNPBSCI实验4:配置EIGRP默认路由

 

 

 

实验目的:掌握通过IP DEFAULTNETWORK命令配置EIGRP默认网络

实验拓扑:如图

 

 

实验步骤:

1.  按图配置每台路由器的IP地址,且用PING命令检验互通性。

2.  R3模拟一个外部网络

3.  R1R2配置EIGRP

4.  SHOW IP EIGRP NEIGHBORS命令查看EIGRP邻居

5.  R2上配置默认路由,用于到达外部网络,并测试能否PINGR3的直连路由

6.  IP DEFAULTNETWORKR2自动的向内部通告默认路由

7.  查看R1路由表,且尝试访问外部网络

注:IP DEFAULT-NETWORK ,应该采用网络。如果使用无类网络,则会出现问题的。

r1(config)#int f0/0

r1(config-if)#ip add 172.16.1.1 255.255.255.0

r1(config-if)#no sh

r1(config-if)#

*Mar  1 00:04:22.071: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up

*Mar  1 00:04:23.071: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

r1(config-if)#exit

r1(config)#router eigrp 1

r1(config-router)#net 172.16.1.0

r1(config-router)#

*Mar  1 00:06:20.367: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.1.2 (FastEthernet0/0) is up: new adjacency

  r1(config-router)#do sh ip eigrp neiSHOW IP EIGRP NEIGHBORS命令查看EIGRP邻居

 

IP-EIGRP neighbors for process 1

H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq

                                            (sec)         (ms)       Cnt Num

0   172.16.1.2              Fa0/0             14 00:00:23 1273  5000  0  3

  r1(config-router)#do ping 192.168.1.1测试能否PINGR3的直连路由,不能PING能,内部的R1缺少到达192.168.1.1的路由,所以无法访问外网

 

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:

.....

Success rate is 0 percent (0/5)

r1(config-router)#

r1#

*Mar  1 00:09:03.507: %SYS-5-CONFIG_I: Configured from console by console

r1#sh 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

 

     172.16.0.0/24 is subnetted, 1 subnets

C       172.16.1.0 is directly connected, FastEthernet0/0

r1#sh 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 172.16.1.2 to network 202.192.22.0

 

D*   202.192.22.0/24 [90/2172416] via 172.16.1.2, 00:00:19, FastEthernet0/0

     172.16.0.0/24 is subnetted, 1 subnets

C       172.16.1.0 is directly connected, FastEthernet0/0

r1#ping 192.168.1.1

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 12/32/88 ms

 

 

r2(config)#int loo 1

r2(config-if)#ip add 1

*Mar  1 00:03:11.451: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up

r2(config-if)#ip add 129.1.1.2 255.255.255.0

r2(config-if)#exit

r2(config)#int s1/0

r2(config-if)#clo r 64000

r2(config-if)#ip add 202.192.22.1 255.255.255.0

r2(config-if)#no sh

r2(config-if)#exit

r2(config)#int f

*Mar  1 00:03:49.831: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up

*Mar  1 00:03:50.831: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up

r2(config)#int f0/0

r2(config-if)#ip add 172.16.1.2 255.255.255.0

r2(config-if)#no sh

r2(config-if)#

*Mar  1 00:04:04.231: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up

*Mar  1 00:04:05.231: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

r2(config-if)#exit

r2(config)#router eigrp 1                  

r2(config-router)#net 172.16.1.0

r2(config-router)#

*Mar  1 00:06:19.891: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.1.1 (FastEthernet0/0) is up: new adjacency

r2(config-router)#do sh ip eigrp nei

IP-EIGRP neighbors for process 1

H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq

                                            (sec)         (ms)       Cnt Num

0   172.16.1.1              Fa0/0             14 00:00:38   59   354  0  3

r2(config-router)#exit

r2(config)#ip route 0.0.0.0 0.0.0.0 202.192.22.2

r2(config)#do ping 192.168.1.1

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/32/60 ms

r2(config)#do sh 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 202.192.22.2 to network 0.0.0.0

 

C    202.192.22.0/24 is directly connected, Serial1/0

     172.16.0.0/24 is subnetted, 1 subnets

C       172.16.1.0 is directly connected, FastEthernet0/0

     129.1.0.0/24 is subnetted, 1 subnets

C       129.1.1.0 is directly connected, Loopback1

S*   0.0.0.0/0 [1/0] via 202.192.22.2

r2(config)#router eigrp 1

r2(config-router)#net 202.192.22.0

r2(config-router)#exit

10.              r2(config)#ip default-network 202.192.22.0IP DEFAULTNETWORKR2自动的向内部通告默认路由

 

r2(config)#exit

r2#

*Mar  1 00:11:05.311: %SYS-5-CONFIG_I: Configured from console by console

r2#sh 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 202.192.22.2 to network 0.0.0.0

 

C*   202.192.22.0/24 is directly connected, Serial1/0

     172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks

D       172.16.0.0/16 is a summary, 00:00:29, Null0

C       172.16.1.0/24 is directly connected, FastEthernet0/0

     129.1.0.0/24 is subnetted, 1 subnets

C       129.1.1.0 is directly connected, Loopback1

S*   0.0.0.0/0 [1/0] via 202.192.22.2

 

r3(config)#int loo 1

r3(config-if)#ip ad

*Mar  1 00:02:18.071: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up

r3(config-if)#ip add 192.168.1.1 255.255.255.0

r3(config-if)#exit

r3(config)#iint s0/0

            ^

% Invalid input detected at '^' marker.

 

r3(config)#int s0/0

r3(config-if)#ip add 202.192.22.2 255.255.255.0

r3(config-if)#no sh

r3(config-if)#

*Mar  1 00:02:51.947: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up

*Mar  1 00:02:52.947: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

r3(config-if)#     

*Mar  1 00:03:15.191: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down

r3(config-if)#

*Mar  1 00:03:55.175: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

r3(config-if)#exit

r3(config)#ip route 0.0.0.0 0.0.0.0 202.192.22.1 

r3(config)#do sh 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 202.192.22.1 to network 0.0.0.0

 

C    202.192.22.0/24 is directly connected, Serial0/0

C    192.168.1.0/24 is directly connected, Loopback1

S*   0.0.0.0/0 [1/0] via 202.192.22.1

r3(config)#do ping 172.16.1.1

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds:

.....

Success rate is 0 percent (0/5)

 

你可能感兴趣的:(路由,实验,ccnp,EIGRP,BSCI)