路由器基本配置試驗

2023-02-01 22:03:02 字數 2381 閱讀 8900

1、路由器模式配置概述

router> 使用者模式,通常用來檢視統計資訊,但不能更改路由器的設定

router# 特權模式,可以檢視並修改路由器的配置,通常在這裡執行show命令

router(config)# 全域性配置模式,從這裡開始對路由器進行配置

router(config-if)# 介面模式,用來配置路由器的物理介面或者環迴介面

router(config-subif)# 子介面模式,用來配置路由器的虛擬子介面

router(config-line)# 線路模式,通常用來配置console口、telnet的登陸密碼

2、登陸路由器的基本配置

router>enable (從使用者模式進入到特權模式)

router#configure terminal (從特權模式進入全域性模式)

router(config)#no ip domain-lookup (關閉動態的網域名稱解析)

router(config)# line console 0 (進入console口)

router(config-line)#exec-timeout 0 0 (關閉控制台的會話超時)

router(config-line)#logging synchronous (重新顯示被阻斷的輸出)

router(config-line)#exit

router(config)#

3、路由器基本配置

router(config)#hostname easthome(設定路由器的名稱)

router(config)#inte***ce e0 (進入e0介面)

router(config-if)#ip address 10.5.5.11 255.255.255.0 (給e0口配置ip位址)

router(config-if)#no shutdown (啟動e0介面)

router(config)#inte***ce s0 (進入s0介面)

router(config-if)#clock rate 64000 (如果該介面是dce介面)

router(config-if)#ip address 100.5.5.11 255.255.255.0 (給s0口配置ip位址)

router(config-if)#no shutdown (啟動s0介面)

router(config-if)#exit

router#copy running-config startup-config (儲存當前的配置到nvram)

4、路由器資訊的檢視

router#show version (顯示系統硬體、軟體、ios版本、系統啟動時間、介面數量型別等資訊)

router#show running-config (顯示路由器當前正在執行的配置檔案)

router# show inte***ce (顯示路由器介面的配置和其他狀態)

5、配置路由器的密碼

router(config)#line console 0 (進入console口)

router(config-line)#password easthome (設定console登陸密碼)

router(config-line)#login (啟用console上的密碼驗證)

router(config)#line vty 0 x (進入vty介面)

router(config-line)#password easthome (設定vty登陸密碼)

router(config-line)#login (啟用vty上的密碼驗證)

router(config)#enable password easthome (設定特權模式明文密碼)

router(config)#enable secret sutongyue (設定特權模式密文密碼)

router(config)#service password-encryption (啟動路由器上密碼加密服務)

router(config)#no service password-encryption (關閉路由器上的密碼加密服務)

6、配置路由器的登陸提示

router# banner motd配置路由器上每日登陸提示資訊,#號內是要提示的內容資訊)

7、配置路由器支援ssh遠端連線

router(config)#line vty 0 4 (進入vty介面)

router(config-line)#login local (啟用vty介面登陸的本地驗證)

router(config-line)#transport input ssh (允許vty介面接受ssh登陸)

8. cisco環境下可以通過show cdp 來查詢環路。

路由器配置流程

路由器設定 路由器怎麼設定,區域網怎麼配置 最近公司幾個同事問我,自己家裡有好幾臺電腦,拉了寬頻adsl,但是只有一台電腦能上網,怎麼才能讓幾台電腦同時用一根adsl線上網呢?目前很多人都在用電信adsl,因為是個人或者家庭,從節省費用方面考慮,幾台電腦同時使用一天adsl線上網,這裡就出現了上面的...

路由器配置基礎

ios是cisco公司的註冊商標,是在大部分cisco路由器上執行的作業系統的名稱。大部分cisco路由器使用具有熟悉的命令列介面 cli 的ios。其他裝置中的一些路由器模組也使用ios。例如,catalyst5000系列lan交換機上的路由 交換模組 rsm 完成路由功能和執行ios。本章的主要...

華為路由器配置命令大全

一 access list 用於建立訪問規則。1 建立標準訪問列表 access list normal special listnumber1 source addr source mask 2 建立擴充套件訪問列表 access list normal special listnumber2 p...