實驗拓?fù)?/p>
配置R1
Router(config) R1(config) R1(config-if) R1(config-if) R1(config-if) R1(config-if) R1(config-if) R1(config) R1(config)
查看接口ip
R1 Interface IP-Address OK? Method Status Protocol Ethernet0/0 192.168.12.1 YES manual up up Ethernet0/1 192.168.1.254 YES manual up up Ethernet0/2 unassigned YES unset administratively down down Ethernet0/3 unassigned YES unset administratively down down Serial1/0 unassigned YES unset administratively down down Serial1/1 unassigned YES unset administratively down down Serial1/2 unassigned YES unset administratively down down Serial1/3 unassigned YES unset administratively down down
查看R1路由表
R1 Codes: L - local, 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, H - NHRP, l - LISP a - application route + - replicated route, % - next hop override, p - overrides from PfR Gateway of last resort is not set 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.1.0/24 is directly connected, Ethernet0/1 L 192.168.1.254/32 is directly connected, Ethernet0/1 S 192.168.3.0/24 [1/0] via 192.168.12.2 192.168.12.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.12.0/24 is directly connected, Ethernet0/0 L 192.168.12.1/32 is directly connected, Ethernet0/0 S 192.168.23.0/24 [1/0] via 192.168.12.2
配置R2
Router>enable Router Router(config) R2(config) R2(config-if) R2(config-if) R2(config-if) R2(config-if) R2(config-if) R2(config) R2(config)
查看接口ip
R2 Interface IP-Address OK? Method Status Protocol Ethernet0/0 192.168.12.2 YES manual up up Ethernet0/1 192.168.23.2 YES manual up up Ethernet0/2 unassigned YES unset administratively down down Ethernet0/3 unassigned YES unset administratively down down Serial1/0 unassigned YES unset administratively down down Serial1/1 unassigned YES unset administratively down down Serial1/2 unassigned YES unset administratively down down Serial1/3 unassigned YES unset administratively down down
查看路由
R2 Codes: L - local, 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, H - NHRP, l - LISP a - application route + - replicated route, % - next hop override, p - overrides from PfR Gateway of last resort is not set S 192.168.1.0/24 [1/0] via 192.168.12.1 S 192.168.3.0/24 [1/0] via 192.168.23.3 192.168.12.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.12.0/24 is directly connected, Ethernet0/0 L 192.168.12.2/32 is directly connected, Ethernet0/0 192.168.23.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.23.0/24 is directly connected, Ethernet0/1 L 192.168.23.2/32 is directly connected, Ethernet0/1
配置R3
Router>enable Router Router(config) R3(config) R3(config) R3(config-if) R3(config-if) R3(config-if) R3(config-if) R3(config-if) R3(config) R3(config)
查看接口ip
R3 Interface IP-Address OK? Method Status Protocol Ethernet0/0 192.168.23.3 YES manual up up Ethernet0/1 192.168.3.254 YES manual up up Ethernet0/2 unassigned YES unset administratively down down Ethernet0/3 unassigned YES unset administratively down down Serial1/0 unassigned YES unset administratively down down Serial1/1 unassigned YES unset administratively down down Serial1/2 unassigned YES unset administratively down down Serial1/3 unassigned YES unset administratively down down
查看路由
R3 Codes: L - local, 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, H - NHRP, l - LISP a - application route + - replicated route, % - next hop override, p - overrides from PfR Gateway of last resort is not set S 192.168.1.0/24 [1/0] via 192.168.23.2 192.168.3.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.3.0/24 is directly connected, Ethernet0/1 L 192.168.3.254/32 is directly connected, Ethernet0/1 S 192.168.12.0/24 [1/0] via 192.168.23.2 192.168.23.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.23.0/24 is directly connected, Ethernet0/0 L 192.168.23.3/32 is directly connected, Ethernet0/0
配置vpc4
VPCS> ip 192.168.1.2/24 192.168.1.254 Checking for duplicate address... VPCS : 192.168.1.2 255.255.255.0 gateway 192.168.1.254
配置vpc5
VPCS> ip 192.168.3.2/24 192.168.3.254 Checking for duplicate address... VPCS : 192.168.3.2 255.255.255.0 gateway 192.168.3.254
在vpc4上ping vpc5測試連通性
VPCS> ping 192.168.3.2 84 bytes from 192.168.3.2 icmp_seq=1 ttl=61 time=0.958 ms 84 bytes from 192.168.3.2 icmp_seq=2 ttl=61 time=0.785 ms 84 bytes from 192.168.3.2 icmp_seq=3 ttl=61 time=1.050 ms 84 bytes from 192.168.3.2 icmp_seq=4 ttl=61 time=0.823 ms 84 bytes from 192.168.3.2 icmp_seq=5 ttl=61 time=0.827 ms
審核編輯:湯梓紅
聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請聯(lián)系本站處理。
舉報投訴
-
接口
+關(guān)注
關(guān)注
33文章
8447瀏覽量
150722 -
CISCO
+關(guān)注
關(guān)注
1文章
65瀏覽量
24640 -
靜態(tài)路由
+關(guān)注
關(guān)注
0文章
18瀏覽量
8563
原文標(biāo)題:Cisco配置靜態(tài)路由
文章出處:【微信號:magedu-Linux,微信公眾號:馬哥Linux運維】歡迎添加關(guān)注!文章轉(zhuǎn)載請注明出處。
發(fā)布評論請先 登錄
相關(guān)推薦
Cisco路由器網(wǎng)絡(luò)設(shè)計
Cisco路由器網(wǎng)絡(luò)設(shè)計相關(guān)知識,拓展網(wǎng)絡(luò)知識。
發(fā)表于 06-04 19:42
?29次下載
CISCO路由器配置實例
Cisco 路由器的基本配置百余例目錄1.用戶通過DDN專線接入ISP 2.遠(yuǎn)程用戶撥號連入局域網(wǎng) 3.遠(yuǎn)程用戶間對撥 4.Cisco 
發(fā)表于 08-31 09:46
?46次下載
Cisco路由安全性分析和改進
路由器安全在網(wǎng)絡(luò)安全領(lǐng)域占有非常重要的地位,針對互聯(lián)網(wǎng)中使用最為廣泛的Cisco路由器,從3個方面出發(fā)分別說明了Cisco路由器所面臨的各種
發(fā)表于 11-24 18:41
?15次下載
靜態(tài)路由協(xié)議配置
實驗十、靜態(tài)路由協(xié)議配置
一、實驗原理1.1 路由協(xié)議路由器依據(jù)路由表進行轉(zhuǎn)發(fā)。
發(fā)表于 09-24 13:48
?4726次閱讀
CISCO系列路由器密碼恢復(fù)匯總
CISCO系列路由器密碼恢復(fù)匯總
密碼恢復(fù)原理(1)Cisco路由器保存了幾種不同的配置參數(shù),并存放在不
發(fā)表于 01-13 13:03
?933次閱讀
CISCO路由器初始配置手冊
CISCO路由器初始配置手冊
很多初學(xué)路由器知識的網(wǎng)友對路由器的初始配置可能感到很陌生,本人在
發(fā)表于 04-01 11:49
?829次閱讀
CISCO路由器之廣域網(wǎng)協(xié)議設(shè)置
CISCO路由器之廣域網(wǎng)協(xié)議設(shè)置
一、HDLC
HDLC是CISCO路由器使用的缺省協(xié)議,一臺新路由器在未指定封裝協(xié)議時默認(rèn)使用H
發(fā)表于 04-01 13:42
?3387次閱讀
CISCO與華為3COM路由器的比較分析
剖析CISCO與華為3COM路由器的區(qū)別,熟練掌握下面涉及到的CISCO與華為3COM路由器知識,很多方法都會使你豁然開朗的。華為路由器與同
發(fā)表于 02-26 10:22
?1217次閱讀
靜態(tài)路由和缺省路由知識
一、實驗?zāi)康?本實驗主要用來練習(xí)靜態(tài)路由、缺省路與配置,驗證靜態(tài)路由、缺省路由的工作原理,實驗的
發(fā)表于 03-12 16:59
?28次下載
思科路由器配置基礎(chǔ)_7個方面詳解cisco路由器配置
大家一定對Cisco路由器并不陌生,作為第一個入行的國際化企業(yè)而言,它的產(chǎn)品眾所周知,但也正因為如此讓大家對于一些有關(guān)它的配置有所困惑,本文主要介紹的是思科路由器
發(fā)表于 05-14 09:32
?1.6w次閱讀
詳解交換機與路由器的配置,如何配置靜態(tài)路由
一種路由的方式,路由項由手動配置,而非動態(tài)決定。與動態(tài)路由不同,靜態(tài)路由是固定的,不會改變,即使
Cisco路由器調(diào)試命令大全
在配置Cisco路由器時,全局和接口命令的界限是十分明顯的。在這種情況下,我們使用“全局”來標(biāo)識那些不能用于接口調(diào)試或者特定的傳輸介質(zhì)類型和協(xié)議調(diào)試的命令。
評論