小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

精!銳捷路由器配置命令大全,有案例分析

 copy_left 2021-12-02

一、路由器基本配置命令

由遠(yuǎn)程終端登錄路由器

Red-Giant>enable ——由用戶模式進(jìn)入特權(quán)模式Password:****** ——輸入密碼Red-Giant#configure ——由特權(quán)模式進(jìn)入全局配置模式Configuring from terminal, memory, or network [terminal]? t ——輸入 t繼續(xù)Red-Giant(config)#hostname Router ——修改路由器名稱

配置接口IP地址

Router(config)#interface fastethernet 0 ——進(jìn)入以太網(wǎng)口 0接口模式Router(config-if)#ip address 192.168.1.1 255.255.255.0 ——為其配置 IP地址Router(config-if)#no shutdown ——啟用配置Router(config-if)#exit ——退至配置模式Router(config)#interface fastethernet 1 ——進(jìn)入以太網(wǎng)口 0接口模式Router(config-if)#ip address 192.168.2.1 255.255.255.0 ——為其配置 IP地址Router(config-if)#no shutdown ——啟用配置Router(config-if)#exit ——退至配置模式Router(config)#interface serial 0 ——進(jìn)入 Serial 0 接口模式Router(config-if)#ip address 192.168.3.1 255.255.255.0 ——為其配置 IP地址Router(config-if)#no shutdown ——啟用配置Router(config-if)#exit ——退至配置模式Router(config)#interface serial 1 ——進(jìn)入 Serial 1 接口模式Router(config-if)#ip address 192.168.4.1 255.255.255.0 ——為其配置 IP地址Router(config-if)#no shutdown ——啟用配置Router(config-if)#end ——退至特權(quán)模式Router#write ——保存配置信息Router(config)#interface loopback 0 ——新建 Loopback 0Router(config-if)#ip add 10.10.1.1 255.255.255.0 ——為其配置 IP地址Router(config-if)#int loopback 1 ——新建 Loopback 1Router(config-if)#ip add 10.10.2.1 255.255.255.0 ——為其配置 IP地址Router(config-if)#end——退至特權(quán)模式

查看路由器相關(guān)配置信息

Router#show ip interface brief ——查看配置狀態(tài)Router#show version ——顯示路由器版本信息Router#show ip interface fastethernet 0 ——查看以太網(wǎng)口 0接口配置狀態(tài)Router#show running-config——顯示當(dāng)前運(yùn)行的配置參數(shù)Router#show startup-config——顯示 NVRAM中中配置參數(shù)的副本Router#copy running-config startup-config ——將當(dāng)前運(yùn)行的配置參數(shù)復(fù)制到 NVRAMRouter#erase startup-config——清空 NVRAM中的配置參數(shù)Router#reload——重新啟動(dòng)路由器

配置console 登陸密碼

Router(config)#line console 0Router(config-line)#loginRouter(config-line)#password star

配置VTY登陸密碼

Router(config)#line vty 0 4Router(config-line)#loginRouter(config-line)#password star

配置特權(quán)模式登錄密碼

Router(config)#enable password star——配置明文密碼Router(config)#enable secret star——配置的密碼不能與 password密碼相同

二、路由器密碼丟失的處理方法

  1. 關(guān)閉路由器,重新登錄超級(jí)終端,按默認(rèn)方法設(shè)置;
  2. 啟動(dòng)路由器,不停地按 Ctrl+Pause Break,直至出現(xiàn) Boot:提示符,輸入 Setup-Reg;
Boot:Setup-Reg
  1. 出現(xiàn)如下提示信息,按“ Y”回車確認(rèn):
Do you wish to change the configuration?y/n[n]:
  1. 出現(xiàn)提示如下信息,按“ Y”回車確認(rèn):
Enablebypass the system configure filey/n[n]:
  1. 出現(xiàn)提示如下信息,按“ N”回車確認(rèn):
Enabledebug mode?”y/n[n]:
  1. 出現(xiàn)提示如下信息,按“ N”回車確認(rèn):
Enable“user break/abort enabled?”y/n[n]:
  1. 出現(xiàn)提示如下信息,按“ N”回車確認(rèn):
Change console speed?y/n[n]:
  1. 出現(xiàn)提示如下信息,按“ N”回車確認(rèn):
Do you wish to change the configuration?y/n[n]:
  1. 出現(xiàn)提示符“Boot:”,輸入Reset;
Boot:reset
  1. 出現(xiàn)提示如下信息,按“ N”回車確認(rèn):
Would you like to enter the initial configuration dialog?[Yes]:

此時(shí)密碼及路由器信息被清除,你就可以順利進(jìn)入路由器了?? 可以歸納為“Setup-Reg,兩個(gè)Y五個(gè)N,Reset”。

三、靜態(tài)路由配置

兩臺(tái)路由器,其中 :

Route A

  • S0:192.168.3.1 ,
  • F1:192.168.2.1 ,
  • Loopback 1:12.12.1.1 ,
  • Loopback 2:12.12.2.1

Route B

  • S0:192.168.3.2 ,
  • F0:192.168.5.1 ,
  • Loopback 3:10.10.1.1 ,
  • Loopback 4:10.10.2.1

具體配置如下:

文章圖片1

登錄路由器并配置 F0、F1、S0、S1的IP地址

Router>enPassword:Router#conConfiguring from terminal, memory, or network [terminal]? tRouter(config-if)#ip address 192.168.1.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#int f1Router(config-if)#ip address 192.168.2.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#int s0Router(config-if)#ip address 192.168.3.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#Router(config)#int s1Router(config-if)#ip address 192.168.4.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#end

新增Loopback1、Loopback2并為其配置 IP地址

Router#conConfiguring from terminal, memory, or network [terminal]? tRouter(config)#int loopback 1Router(config-if)#ip address 12.12.1.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#int loopback 2Router(config-if)#ip address 12.12.2.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exit

指向下一跳 路由器

Router(config)#ip route 10.10.1.0 255.255.255.0 192.168.3.2Router#show ip interface briefRouter#interface serial 0

設(shè)置接口物理時(shí)鐘頻率

Router#show control serial 0 ——查看Serial 0 接口型號(hào)Router#configureConfiguring from terminal, memory, or network [terminal]? tRouter(config)#int s0Router(config-if)#clock rate 64000 ——設(shè)置接口物理時(shí)鐘頻率為 64KbpsDCERouter(config-if)#no shutdownRouter(config)#end

為Serial 0 封裝PPP協(xié)議

Router#configureConfiguring from terminal, memory, or network [terminal]? tRouter(config)#int s0Router(config-if)#enca ppp ——為Serial 0 封裝PPP協(xié)議Router(config-if)#end

測(cè)試路由配置信息及互聯(lián)互通

Router#show ip routeRouter#show ip interface briefRouter#show running-configRouter#Ping 192.168.3.1Router#Ping 192.168.3.2Router#Ping 10.10.1.1

接下來,在另一臺(tái)路由器上進(jìn)行相應(yīng)配置,并測(cè)試互連互通。實(shí)驗(yàn)完成?。。?/span>

四、RIP動(dòng)態(tài)路由配置

配置步驟:

  1. 啟用RIP進(jìn)程;
  2. 配置Network命令;
  3. 配置均載負(fù)衡(代價(jià)相等);
  4. 配置RIP發(fā)布初始度量值。

(一)配置命令

User Access VerificationPassword:Router>enPassword:Router#conConfiguring from terminal, memory, or network [terminal]? tRouter(config)#router rip ——開啟路由功能Router(config-router)#version 2 ——升級(jí)至版本 2Router(config-router)#no auto-summary ——在主類邊界關(guān)閉自動(dòng)匯總Router(config-router)#network 192.168.1.0 ——配置 network命令Router(config-router)#maximum-paths 4 ——配置均衡負(fù)載,缺省值為 4Router(config-router)#default-metric 1 ——配置 RIP發(fā)布初始度量值,建議設(shè)置為 1Router#show ip protocols ——驗(yàn)證RIP的配置Router#show ip route ——顯示路由表的信息Router#clear ip route ——清除 IP路由表的信息Router#debug ip rip ——在控制臺(tái)顯示 RIP的工作狀態(tài)Router#no debug all ——清除控制臺(tái)顯示 RIP的工作狀態(tài)

(二)實(shí)驗(yàn)?zāi)P?/h2>

拓樸圖如下,用 RIP配置Route-A和Route-B之間的路由。

文章圖片2

配置F0、F1和S0端口IP地址

User Access VerificationPassword:Router>enPassword:Router#conConfiguring from terminal, memory, or network [terminal]? tRouter(config)#int f0Router(config-if)#ip add 192.168.1.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#int f1Router(config-if)#ip add 192.168.2.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#int s0Router(config-if)#ip add 10.1.1.2 255.255.255.252Router(config-if)#no shutdownRouter(config-if)#exit

開啟RIP路由功能, 配置Network命令

Router(config)#router ripRouter(config-router)#version 2Router(config-router)#no auto-summaryRouter(config-router)#network 10.1.1.0Router(config-router)#network 172.16.1.0Router(config-router)#network 172.16.2.0Router(config-router)#end

查看配置信息,并測(cè)試配置正確與否

Router#show ip routeRouter#show ip protocolsRouter#debug ip ripRouter#no debug allRouter#ping 192.168.1.1Router#ping 172.16.1.1Router#ping 172.16.2.1

接下來,在另一臺(tái)路由器上進(jìn)行相應(yīng)配置,并測(cè)試互連互通。實(shí)驗(yàn)完成!??!

五、交換機(jī)、路由器配置步驟簡要說明

(一)配置說明

  1. 首先連接好設(shè)備,確保連接正確;
  2. 用超級(jí)終端進(jìn)入路由器,如果忘記了密碼,請(qǐng)按密碼破解方法清除設(shè)置,還原默認(rèn)設(shè)置;
  3. 查看各接口配置信息, “Show ip interface brief ” ,看以前的配置有沒有保存在機(jī)器里面,視情進(jìn)行清除設(shè)置;
  4. 查看交換機(jī)、路由器的配置, “show running -config”;
  5. 按自己的需要給交換機(jī)和路由器命名,以便于區(qū)分, “hostname XXXXXX”;
  6. 按照配置需求對(duì)交換機(jī)、路由器的各接口進(jìn)行配置,配置之前最好查看一下接口時(shí)鐘類型:
show controllers serial 0clock rate 64000no shutdown

記?。簩?duì)接口配置完退至上一級(jí)時(shí)一定要保存配置,即 “no shutdown”;

  1. 配置完畢后,退至特權(quán)模式下,檢查配置的正確與否。

(二)故障排除

如果兩臺(tái)路由器或交換機(jī)之間不能互連互通,請(qǐng)按照下列步驟進(jìn)行檢查:

  1. 檢查Serial 接口的時(shí)鐘頻率;
  2. 檢查同一介質(zhì)上兩個(gè)接口的 IP地址是不是在同一網(wǎng)段;
  3. 配置完接口后有沒有 “no shutdwon”;
  4. 接口的封裝協(xié)議是否相同;
  5. 有沒有把 IP地址配置錯(cuò)誤。

(三)三層交換機(jī)的有關(guān)說明

  1. 管理二層交換機(jī)的 IP地址只有一個(gè)生效,且為最后一個(gè) “no shutdown”;
  2. 創(chuàng)建一個(gè) Vlan,至少一個(gè),為了冗余備份。

六、OSPF動(dòng)態(tài)路由配置實(shí)驗(yàn)

配置步驟:

  1. 確定Area 0;
  2. 激活進(jìn)程號(hào);
  3. 反向掩碼;
  4. 主干鏈路區(qū)域?yàn)?0。
User Access VerificationPassword:router>enPassword:router#conConfiguring from terminal, memory, or network [terminal]? trouter(config)#int f0router(config-if)#ip add 192.168.8.1 255.255.255.0router(config-if)#no shutdownrouter(config-if)#exitrouter(config)#int f1router(config-if)#ip add 192.168.2.1 255.255.255.0router(config-if)#no shutdownrouter(config-if)#exitrouter(config)#int s0router(config-if)#ip add 192.168.1.2 255.255.255.0router(config-if)#no shutdownrouter(config-if)#exitrouter(config)#int s1router(config-if)#ip add 192.168.3.2 255.255.255.0router(config-if)#no shutdownrouter(config-if)#int loopback 4router(config-if)#ip add 12.12.1.1 255.255.255.0router(config-if)#no shutdownrouter(config-if)#int loopback 5router(config-if)#ip add 12.12.2.1 255.255.255.0router(config-if)#no shutdownrouter(config-if)#int loopback 6router(config-if)#ip add 12.12.3.1 255.255.255.0router(config-if)#no shutdownrouter(config-if)#exit

配置OSPF路由協(xié)議

router(config)#router ospf 11 ——激活進(jìn)程號(hào)router(config-router)#network 192.168.1.0 0.0.0.255 area 0 ——申明自治區(qū)域 0router(config-router)#network 12.12.1.0 0.0.0.255 area 1 ——申明自治區(qū)域 1router(config-router)#network 12.12.2.0 0.0.0.255 area 1router(config-router)#network 12.12.3.0 0.0.0.255 area 1router(config-router)#endrouter#show ip protocolsrouter#show ip interface briefrouter#show ip ospf neighbor

七、訪問控制列表

文章圖片3

Router#con
Configuring from terminal, memory, or network [terminal]? t
讓用戶D不能遠(yuǎn)程登錄 A Router(config)#access-list 103 deny tcp host 192.168.3.139 host 192.168.5.165eq 23
Router(config)#access-list 103 permit ip any any
Router(config)#int Serial 0
Router(config-if)#ip access-group 103 out
記用戶A不能問網(wǎng)絡(luò),而用戶 B能夠訪問網(wǎng)絡(luò) Router(config)#access-list 12 deny 192.168.5.0 0.0.0.255
Router(config)#access-list 12 permit 192.168.6.0 0.0.0.255
Router(config)#int serial 0
Router(config-if)#ip access-group 12 out

Router(config-if)#no shutdown
Router(config-if)#end
Router#show ip access-list
八、封裝 PPP協(xié)議驗(yàn)證 User Access Verification
Password:
router>en
Password:
router
#con
Configuring from terminal, memory, or network [terminal]? t
Red-Giant(config)#hostname Router
Router(config)#enable password star
Router(config)#line vty 0 4
Router(config-line)#login
Router(config-line)#password star
Router(config-line)#end
Router#show ip in b
Router#con
Configuring from terminal, memory, or network [terminal]? t
Router(config)#int f0
Router(config-if)#ip add 192.168.2.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#exit
Router(config)#int f1
Router(config-if)#ip add 192.168.3.1 255.255.255.0
Router(config-if)#no shu
Router(config)#int s0
Router(config-if)#clock rate 64000
Router(config-if)#ip add 192.168.1.1 255.255.255.0
Router(config-if)#no shu
Router(config-if)#end
Router#con
Configuring from terminal, memory, or network [terminal]? t
Router(config)#router ospf 11
Router(config-router)#network 192.168.1.0 0.0.0.255 area 0
Router(config-router)#network 192.168.2.0 0.0.0.255 area 1
Router(config-router)#network 192.168.3.0 0.0.0.255 area 1
Router(config-router)#end
Router#show ip ospf neighbor
Router#show ip interface brief
Router#ping 192.168.1.2
Router#show ip protocols
Router#show ip inter s0
Router#ping 192.168.1.2
Router#con
Configuring from terminal, memory, or network [terminal]? t
Router(config)#int loopback 1
Router(config-if)#ip add 11.1.1.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#exit
Router(config)#in loopback 2
Router(config-if)#ip add 11.1.2.1 255.255.255.0
Router(config-if)#end
Router#show ip interface brief
Router#con
Configuring from terminal, memory, or network [terminal]? t
將Serial 0 封裝PPP Router(config)#int s0
Router(config-if)#enca ppp
Router(config-if)#exit
Router(config)#hostname A
A(config)#username A password star ——此處用戶名和密碼由服務(wù)器端定義,用于客戶端驗(yàn)證
A(config)#int s0
封裝類型為 PAP A(config-if)#ppp authentication pap
A(config-if)#ppp pap sent-username A password star ——發(fā)送服務(wù)端提供的用戶名和密碼
封裝類型為 CHAP A(config-if)#ppp authentication chap
A(config-if)#ppp chap hostname A
A(config-if)#ppp chap password star
A(config-if)#end
A#show inter s0
A#show run

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多