日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

CCNA(Stand-ALONE)Lab 12-Static Routes

發(fā)布時(shí)間:2025/4/16 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 CCNA(Stand-ALONE)Lab 12-Static Routes 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
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

總結(jié)

以上是生活随笔為你收集整理的CCNA(Stand-ALONE)Lab 12-Static Routes的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。