日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

靜態(tài)路由的設(shè)置及相關(guān)命令


本節(jié)主要是通過靜態(tài)路由設(shè)置的實(shí)驗(yàn)幫助讀者深入地體會路由的概念,并切實(shí)把握靜態(tài)路由的設(shè)置、查看路由表、設(shè)置無類路由等常用的命令 。
1.實(shí)驗(yàn)?zāi)康?br /> 通過本實(shí)驗(yàn),讀者可以把握以下技能:
設(shè)置靜態(tài)路由
設(shè)置啟用路由器的路由功能
查看路由表
ping和trace命令的使用
2.設(shè)備需求
3臺Cisco路由器,其中1臺具有2個以太網(wǎng)接口,其余2臺至少具有1個以太網(wǎng)接口;
2臺Hub,4條雙絞線 (也可以用2條交叉網(wǎng)線直接把3臺路由器連接起來)
1臺終端服務(wù)器,如cisco 2509路由器,及用于反向Telnet的相應(yīng)線纜;
1臺帶有超級終端程序的PC機(jī),以及Console電纜及轉(zhuǎn)接器 。
3.拓?fù)浣Y(jié)構(gòu)及配置說明
本實(shí)驗(yàn)的拓?fù)浣Y(jié)構(gòu)如圖4-2所示 。
3臺路由器分別命名為R1、R2和R3,所使用的接口和相應(yīng)的IP地址分配如圖4.2中的標(biāo)注 。圖中的"/24"表示子網(wǎng)掩碼為24位,即255.255.255.0 。
實(shí)驗(yàn)中,應(yīng)使用靜態(tài)路由的設(shè)置 。實(shí)現(xiàn)R2到R3在IP層的連通性,即要求從R2可以ping通R3,反之亦然 。
4.實(shí)驗(yàn)配置及監(jiān)測結(jié)果
首先,根據(jù)拓?fù)浣Y(jié)構(gòu)圖的要求,正確配置各路由器的以太網(wǎng)接口 。
接下來的實(shí)驗(yàn)記錄是從接口的配置工作完成之后開始的,具體內(nèi)容見配置清單4-1 。
配置清單4-1配置和監(jiān)測靜態(tài)路由
第1段:測試基本的連通性
Term_Server#1
[Resuming connection I to R1 ...]
R1#ping 10.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:
!!!!!
SUCcess rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
Ripping 172.16.1.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.1.3, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 4/4/4 ms
R1#
(鍵入ctrl shift 6,x,切換回終端服務(wù)器)
Term_Server#2
[Resuming connection 2 to R2 ... ]
R2#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:
.....
R2#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
 D - EIGRP, EX - EIGRP external, 0 - 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, E - EGP
 i - IS-IS, 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
第2段:加入靜態(tài)路由并測試連通性
R2#conft
Enter configuration commands, one per line. End with CNTL/Z,
R2(config)#ip route 172.16.1.0 255.255.255.0 10.1.1.1
R2(config)#end
R2#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
 D - EIGRP, EX - EIGRP external, 0 - 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, E - EGP
 i - IS-IS, 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
 S 172.16.1.0[1/0]via 10.1.0.1
 10.0.0.0/24 is subnetted,1subnets
C 10.1.1.0 is directly connected, EthernetO
R2#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:
HW
R2#ping 172.16.1.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos 10172.16.1.3, timeout is 2 seconds:

推薦閱讀