您的位置:首页 > 职场人生

CCNA(Stand-ALONE)Lab 12-Static Routes

2008-04-16 16:11 633 查看
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.
*******************************************************
Above:CCNA(Stand-ALONE)Lab 11-Creating a Host Table
Next:CCNA(Stand-ALONE)Lab 13-RIP
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息