路由器如何設置網速變快歡迎閱讀( 二 )


2. 全局參數的設置
3. 接口參數的設置
4. 顯示結果
利用設置對話過程可以避免手工輸入命令的煩瑣 , 但它還不能完全代替手工設置 , 一些特殊的設置還必須通過手工輸入的方式完成 。
進入設置對話過程后 , 路由器首先會顯示一些提示信息:
--- System Configuration Dialog ---
At any point you may enter a question mark ? for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets [].
這是告訴你在設置對話過程中的任何地方都可以鍵入“?”得到系統的幫助 , 按ctrl-c可以退出設置過程 , 缺省設置將顯示在‘[]’中 。 然后路由器會問是否進入設置對話:
Would you like to enter the initial configuration dialog? [yes]:
如果按y或回車 , 路由器就會進入設置對話過程 。 首先你可以看到各端口當前的狀況:
First, would you like to see the current interface summary? [yes]:
Any interface listed with OK? value NO does not have a valid configuration
Interface IP-Address OK? Method Status Protocol
Ethernet0 unassigned NO unset up up
Serial0 unassigned NO unset up up
……… ……… … …… … …
然后 , 路由器就開始全局參數的設置:
Configuring global parameters:
1.設置路由器名:
Enter host name [Router]:
2.設置進入特權狀態的密文(secret) , 此密文在設置以后不會以明文方式顯示:
The enable secret is a one-way cryptographic secret used
instead of the enable password when it exists.
Enter enable secret: cisco
3.設置進入特權狀態的密碼(password) , 此密碼只在沒有密文時起作用 , 并且在設置以后會以明文方式顯示:
The enable password is used when there is no enable secret
and when using older software and some boot images.
Enter enable password: pass
4.設置虛擬終端訪問時的密碼:
Enter virtual terminal password: cisco
5.詢問是否要設置路由器支持的各種網絡協議:
Configure SNMP Network Management? [yes]:
Configure DECnet? [no]:
Configure AppleTalk? [no]:
Configure IPX? [no]:
Configure IP? [yes]:
Configure IGRP routing? [yes]:
Configure RIP routing? [no]:
………
6.如果配置的是撥號訪問服務器 , 系統還會設置異步口的參數:
Configure Async lines? [yes]:
1) 設置線路的最高速度:
Async line speed [9600]:
2) 是否使用硬件流控:
Configure for HW flow control? [yes]:
3) 是否設置modem:
Configure for modems? [yes/no]: yes
4) 是否使用默認的modem命令:
Configure for default chat script? [yes]:
5) 是否設置異步口的PPP參數:
Configure for Dial-in IP SLIP/PPP access? [no]: yes
6) 是否使用動態IP地址:
Configure for Dynamic IP addresses? [yes]:
7) 是否使用缺省IP地址:
Configure Default IP addresses? [no]: yes
8) 是否使用TCP頭壓縮:
Configure for TCP Header Compression? [yes]:
9) 是否在異步口上使用路由表更新:
Configure for routing updates on async links? [no]: y
10) 是否設置異步口上的其它協議 。
接下來 , 系統會對每個接口進行參數的設置 。
1.Configuring interface Ethernet0:
1) 是否使用此接口:
Is this interface in use? [yes]:
2) 是否設置此接口的IP參數:
Configure IP on this interface? [yes]:
3) 設置接口的IP地址:
IP address for this interface: 192.168.162.2
4) 設置接口的IP子網掩碼:
Number of bits in subnet field [0]:
Class C network is 192.168.162.0, 0 subnet bits; mask is /24
四、常用命令
1. 幫助
在IOS操作中 , 無論任何狀態和位置 , 都可以鍵入“?”得到系統的幫助 。
2. 改變命令狀態
任務 命令
進入特權命令狀態 enable
退出特權命令狀態 disable
進入設置對話狀態 setup
進入全局設置狀態 config terminal
退出全局設置狀態 end
進入端口設置狀態 interface type slot/number
進入子端口設置狀態 interface type number.subinterface [point-to-point multipoint]
進入線路設置狀態 line type slot/number
進入路由設置狀態 router protocol
退出局部設置狀態 exit
3. 顯示命令
任務 命令
查看版本及引導信息 show version
查看運行設置 show running-config
查看開機設置 show startup-config
顯示端口信息 show interface type slot/number

推薦閱讀