自學思科路由器配置已經有一個月了。雖然,學得還還很膚淺但也算略有所成。
學習筆記總結如下:
一,理論知識:
可參閱
路由器原理及路由協議 http://bbs.cniti.com/cgi-bin/topic_show.cgi?id=350401994&h=1&bpg=2&age=0
路由器主要用於兩AS自治系統間的串連。根據用途和裝置效能的不同主要分為,骨幹路由器如12000 、集散層路由器和邊緣路由器.
1,協議及封裝
⑴,RIP路由協議。一種計算路由跳數的協議,不能用於超過15跳的路由網路;
⑵,OSPE路由協議。鏈路狀態路由選擇協議;
⑶,IGP路由協議。運行於企業內部網路,稱為內部閘道通訊協定;
⑷,EGP,BGP路由協議。外部網關協議,邊界網關協議;
⑸,IPX路由協議。
⑹,各種協議封裝。HDLC,PPP,X.25,FameRelay框架轉送封裝,ISDN
2,與路由相關硬體裝置
串連介質:
4對線的網路電纜
此主題相關圖片如下:
光纖
此主題相關圖片如下:
凝膠填充光纖
此主題相關圖片如下:
同軸電纜
此主題相關圖片如下:
介質連接器
此主題相關圖片如下:
路由器或智能交換器:主要包括,背板,模組,冗餘電源
防火牆
過濾主機網關
此主題相關圖片如下:
過濾子網
此主題相關圖片如下:
雙功能代理主機
此主題相關圖片如下:
三個防火牆概念
點擊瀏覽該檔案
5000型交換器前面板
此主題相關圖片如下:
指示燈
此主題相關圖片如下:
預設控制台參數
此主題相關圖片如下:
在路由可交換器的配置介面上主要配置以下幾種介面
以太口ethernet
快速以太口fatethernet
串口serial
isdn介面bir
dialer介面dialer
二,基本配置過程及命令
1,基本配置命令:
全部命令可參閱[CCNA 640-801 IOS命令大全]
http://bbs.cniti.com/cgi-bin/topic_show.cgi?id=350402707&h=1&bpg=4&age=0
2,基本設定項目
⑴主機設定。包括主機名稱和口令。
⑵遠程登入設定。包括登入方式,數量和口令。我們這裡主要使用 虛擬終端vty
⑶連接埠定義。定義不同連接埠的IP。靜態路由可在此定義。
⑷開啟路由協議和封裝。配置動態路由以及封裝。下面的配置過程不汲及封裝。
3,簡單配置過程
en 進入特權模式
config t進入全域模式
hostname work1 password work設定主機名稱和口令
line vty 0 4允許5個虛擬終端串連
login
username vty password vty 命名並設定口令
end
config t
int e0定義某連接埠
ip address 192.168.1.1 255.255.255.0定義連接埠IP
end
config t
router rip定義RIP路由
network 172.16.0.0動態路由
ip routing
ipx routing啟用ip ipx路由
copy run start儲存當前配置,也可用命令write mem寫入當前配置
reload重啟路由器
路由配置也可以在進入特權模式後執行對話命令進行設定
對話命令設定:
en
setup
would goulike to enter the inital configuration dialog?[yes]
按Y或ENTER進入設定對話過程
First would you like to see the current interface summary?[yes]
然後路由進入全域參數的設定
configuring global parameters;
Enter host name[router]:設定路由器名
the enable secret is a one-way cryptographic secret used instead of the erable password when it exists.
Enter enable secret:設定進入特權模式的密文
Enter virtual terminal password:設定虛擬終端訪問時的密碼
詢問是否設定支援的網路協義
configure SNMP network management?[yes]:
configure DECnet?[no]:
configure AppleTalk:[no]:
configure IPX?[NO]:
configure IP?[YES]:
configure IGRP ruuting:[yes]:
..........................................
如果配置的是拔號訪問伺服器,系統還會設定非同步口參數
configure Async lines?[yes]:
Asyncline speed[9600]:設定線路最高速度
corfigure for hwflow control:[yes]:是否使用硬體流量控制
configure for modems:[yes/no]:yes是否設定modem
configure fot default chat seript:[yes];是否使用預設modem
configure for did-in IP SLL/PPPP access:[no]:yes是否設定非同步PPP參數
configure for Dynamic IP address?[yes]:是否使用動態IP地址
configure Default IP addresses:[yes]:是否使用預設IP地址
configure for TCP Header compression?[yes]是否使用TCP頭壓縮
configure for routing updates on async links?[no]:y是否在非同步口上使用路由表更新
介面參數配置
configuring interface ethernet0:以太口配置
is this interface in use?[yes]:是否使用此介面
configure IP on this interface?[yes'是否設定此介面的IP參數
ip address for this interface:xxxx.xxxx.xxx.xxx設定此介面的IP地址
number of hes in subnet field[0]:設定介面IP掩碼
class cnetwork is xxxx.xxx.xx.xx subnet bits:mask is/24
有關VLAN的化分可參閱
如何在交換器上配置VLAN
http://bbs.cniti.com/cgi-bin/topic_show.cgi?id=350402702&h=1&bpg=4&age=0
常用命令:
特權命令en
設定對話狀態setup
全域命令config t
連接埠設定狀態interface type slot/number
線路設定狀態line type slot/number
路由設定狀態router protocol
退出局部exit
顯示命令
查看版本及引導資訊show version
查看回合設定show running-config
查看開機設定show startap-config
查看連接埠資訊show interface type slot/number
查看路由資訊show ip router
網路命令
登入遠程主機telnet hostname/ip address
網路偵測ping hostname/ip address
路由跟蹤trace hostname/ip address
基本設定命令
設定路由器名hostname name
設定靜態路由ip route destination目標網路 subnet-mask掩碼 next-hop下一跳IP
設定IP地址ip address address subnet-mask
啟用連接埠 no shutdown
口令設定password password
配置實踐可以通過模擬器進行
可見文章
Sybex Virtual Lab模擬器用法圖解
http://bbs.cniti.com/cgi-bin/topic_show.cgi?id=350402295&h=1&bpg=3&age=0