CCNA(Stand-ALONE)Lab 12-Static Routes

Objective: configure Routers 1, 2, and 4 with IP addresses, and then add static routes for all routers.
Lab Equipment: Router 1, Router 2, and Router 4 from the eRouters menu
Goals:
• Set the host name, and bring up the interfaces.
• Ping the directly connected interfaces.
• configure static routes for the topology.
• Verify that you can ping all routers.

1. configure Routers 1, 2, and 4 to the specifications outlined in the table and diagram below.
Router1:
Router2:
Router4:

2. On each router, verify that you can ping the directly connected neighbors.
Router1#ping 10.1.1.2

Router1#ping 12.5.10.2

Router2#ping 10.1.1.1

Router4#ping 12.5.10.1

3. Now you need to establish static routes on each router to any location that is not directly connected. Router1 is directly connected to both Router2 and Router4, so it will not need any static routes.On Router4, enter global configuration mode, and think about what the static route command should be. You know that you currently cannot reach Router2 because it is not directly connected. Off of Router4’s serial interface is network 12.5.10.0, which is
connected to Router1. Router1 is also connected to network 10.1.1.0, which you would also like to access. In this case, you will need a static route for network 10.1.1.0. On Router4, what command should you use to establish a static route to network 10.1.1.0?

Router4#conf term
Router4(config)#ip route 10.1.1.0 255.255.255.0 12.5.10.1

You established a route to network 10.1.1.0. Now, whenever a packet of information leaves Router4 destined for network 10.1.1.0, it will first be sent to IP address 12.5.10.1 on Router1.

4. Now, try to ping Router1’s serial 0 interface, Router1’s Ethernet 0 interface, and Router2’s Ethernet 0 interface.
Router4#ping 12.5.10.1

Router4#ping 10.1.1.1

Router4#ping 10.1.1.2

Consider why the ping to 10.1.1.2 (Router2’s Ethernet 0 interface) was unsuccessful. A packet leaves Router4’s serial 0 interface destined for 10.1.1.2. Because the destination address is on the 10.1.1.0 network and the static route on Router4 stipulates that traffic destined for that network should first be sent to 12.5.10.1, the packet will travel to 12.5.10.1. When the packet reaches Router1, the router sends the packet out the interface that is directly connected to the 10.1.1.0 network. Router2 picks up that packet on its Ethernet 0 interface and attempts to send a response packet to confirm receipt.
Router2 examines the source IP address of the received packet, which is 12.5.10.2(Router4’s serial 0 interface). Router2 does not have a route to network 12.5.10.0, so it drops the packet. This is why the ping was not successful.

5. Just to make sure the static route on Router4 worked, view the routing table to see if the static route has been added there.
Router4#show ip route

6. To enable Router4 to ping 10.1.1.2, connect to Router2 and configure a static route back to Router4’s network. Type the command that will set a static route on Router2 for the network 12.5.10.0.
Router2#config term
Router2(config)#ip route 12.5.10.0 255.255.255.0 10.1.1.1
Router2(config)#exit

Consequently, any data sent to network 12.5.10.0 will go to 10.1.1.1 first.

7. Connect to Router4 again, and make sure you can ping Router1’s serial 0 interface,Router1’s Ethernet 0 interface, and Router2’s Ethernet 0 interface.
Router4#ping 12.5.10.1

Router4#ping 10.1.1.1

Router4#ping 10.1.1.2

8. Examine the routing table on Router2.
Router2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route
Gateway of last resort is not set
C 10.1.1.0/24 is directly connected, 10.1.1.2
S 12.5.10.0/24 [1/0] via 10.1.1.1

In the S 12.5.10.0/24 [1/0] via 10.1.1.1 line of output, the S denotes the static route.
Next, the destination network and its subnet information (12.5.10.0/24) are displayed.
The [1/0] represents the administrative distance, which is 1 by default, and the metric(hop count in this case), which is 0. The word via signals the next hop address the packet should be sent to, which in this case is 10.1.1.1.
*******************************************************
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值