CCNA的一個綜合實驗(經典)

【路由器 R-A 的配置】
初次進入路由器 R-A 時,咱們進行以下的基本配置,配置主機名和各端口 IP 地址,配置信息以下 . 仍是被忘了陪時鐘速率,其實能夠用命令查看那端是 DCE DTE 的,爲了保險起見,就都設置了吧!呵呵
Router>enable
Router# conf ter
Router (config)# hostname R-A
R-A(config)# interface fa0/0
R-A (config-if)# ip address 10.1.1 .1 255.255.255.0
R-A (config-if)# no shutdown
R-A (config-if)# exit
R-A(config)# interface fa0/1
R-A (config-if)# ip address 20.2.2 .1 255.255.255.0
R-A (config-if)# no shutdown
R-A (config-if)# exit
R-A (config)# interface serial 3/0
R-A (config-if)# ip address 30.1.1.1 255.255.255.0
R-A(config-if)# clock rate 64000
R-A (config-if)#no shutdown
上面只是路由器 R-A 的基本配置,下面在 R-A 上啓用動態路由協議 Ripv2 ,同時配置 ppp 中的 pap 驗證,還要一條默認路由,配置信息以下:
R-A(config)#router rip
R-A(config-router)# version 2
R-A(config-router)# no au
R-A(config-router)# network 10.0.0 .0
R-A(config-router)# network 20.0.0 .0
R-A(config-router)# network 30.0.0.0
R-A(config-router)# exit
R-A(config)# ip route 0.0.0 .0 0.0.0.0 30.1.1.2 (配置一條到 R-B 默認路由)
R-A(config)#username R-B password cisco // 創建用戶 R-B ,密碼 cisco
R-A (config)#interface serial3/0
R-A(config-if)#encapsulation ppp // PPP 封裝
R-A (config-if)#ppp authentication pap //PPP
驗證方式爲 pap
R-A (config-if)#ppp pap sent-username R-A password cisco 
// 發送用戶名 R-B ,密碼 cisco R-B 上驗證
以上就是路由器 R-A 的配置,配置完成,下面就配置交換機 SW-A
【交換機 SW-A 的配置】
Switch>
Switch>enable
Switch#configure terminal .
Switch(config)#hostname sw-A
sw-A(config)#interface fa0/22
相關文章
相關標籤/搜索