子接口實現幀中繼

 

實驗拓撲圖如下:
 
 Frame-Relay點對點子接口 - biscuit - biscuit的博客

 
實驗步驟
(一)、基本信息配置
1)、RT1的基本信息配置:
RT1-FRSW#enable
RT1-FRSW#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RT1-FRSW(config)#hostname RT1-FRSW
RT1-FRSW(config)#line console 0
RT1-FRSW(config-line)#logging synchronous
RT1-FRSW(config-line)#no login
RT1-FRSW(config-line)#privilege level 15
RT1-FRSW(config-line)#exit
RT1-FRSW(config)#line vty 0 4
RT1-FRSW(config-line)#no login
RT1-FRSW(config-line)#privilege level 15
 
2)、RT3的基本信息配置:
RT5#enable
RT5#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RT5(config)#hostname RT3
RT3(config)#line console 0
RT3(config-line)#logging synchronous
RT3(config-line)#no login
RT3(config-line)#privilege level 15
RT3(config-line)#exit
RT3(config)#line vty 0 4
RT3(config-line)#no login
RT3(config-line)#privilege level 15
RT3(config-line)#
 
3)、RT5的基本信息配置:
RT5#enable
RT5#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RT5(config)#hostname RT5
RT5(config)#line console 0
RT5(config-line)#logging synchronous
RT5(config-line)#no login
RT5(config-line)#privilege level 15
RT5(config-line)#exit
RT5(config)#line vty 0 4
RT5(config-line)#no login
RT5(config-line)#privilege level 15
RT5(config-line)#
 
4)、RT7的基本信息配置:
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname RT7
RT7(config)#line console 0
RT7(config-line)#logging synchronous
RT7(config-line)#no login
RT7(config-line)#privilege level 15
RT7(config-line)#exit
RT7(config)#line vty 0 4
RT7(config-line)#no login
RT7(config-line)#privilege level 15
RT7(config-line)#
 
 
5)、幀中繼交換機配置
RT1-FRSW(config)#frame-relay switching             //啓動幀中繼交換
RT1-FRSW(config)#int s0/0
RT1-FRSW(config-if)#clock rate 1000000            //DCE端配置時鐘速率
%Clockrate bestfitted (rounded) to 1008000
RT1-FRSW(config-if)#encapsulation frame-relay ietf //配置幀中繼封裝
RT1-FRSW(config-if)#frame-relay lmi-type q933a        //配置LMI類型
RT1-FRSW(config-if)#frame-relay intf-type dce    //配置幀中繼接口類型
RT1-FRSW(config-if)#frame-relay route 101 int s0/2 201
                        //配置幀中繼路由:定義S0/0—S0/2的PVC
RT1-FRSW(config-if)#frame-relay route 102 int s0/3 202
                            //配置幀中繼路由:定義S0/0—S0/2的PVC
RT1-FRSW(config-if)#no shut
RT1-FRSW(config-if)#exit
RT1-FRSW(config)#int s0/2
RT1-FRSW(config-if)#clock rate 1000000           //DCE端配置時鐘速率
%Clockrate bestfitted (rounded) to 1008000
RT1-FRSW(config-if)#encapsulation frame-relay ietf
RT1-FRSW(config-if)#frame-relay lmi-type q933a
RT1-FRSW(config-if)#frame-relay intf-type dce
RT1-FRSW(config-if)#frame-relay route 201 int s0/0 101
RT1-FRSW(config-if)#no shut
RT1-FRSW(config)#int s0/3
RT1-FRSW(config-if)#clock rate 1000000            //DCE端配置時鐘速率
%Clockrate bestfitted (rounded) to 1008000
RT1-FRSW(config-if)#encapsulation frame-relay ietf
RT1-FRSW(config-if)#frame-relay lmi-type q933a
RT1-FRSW(config-if)#frame-relay intf-type dce
RT1-FRSW(config-if)#frame-relay route 202 int s0/0 102
RT1-FRSW(config-if)#no shut
RT1-FRSW(config-if)#
*Mar 1 00:21:02.583: %LINK-3-UPDOWN: Interface Serial0/3, changed state to up
RT1-FRSW(config-if)#end
 
查看幀中繼路由表
RT1-FRSW#sh frame-relay route             //查看RT1上的幀中繼路由表
結果如下:
Frame-Relay點對點子接口 - biscuit - biscuit的博客
    
(二)、接口配置及鏈路測試
1)、RT3的局域網接口配置
RT3(config)#int et3/0
RT3(config-if)#ip add 192.168.10.1 255.255.255.0
RT3(config-if)#no keepalive        
//Cisco路由器的以太網接口如果沒有接網線時,可採用no keepalive使接口up
//Cisco路由器的以太網接口接了網線時,必須配置成默認的keepalive。
RT3(config-if)#no shut
2)、RT5的局域網接口配置
RT5#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RT5(config)#int et3/0
RT5(config-if)#ip add 192.168.18.1 255.255.255.0
RT3(config-if)#no keepalive
RT5(config-if)#no shut
3)、RT7的局域網接口配置
RT7#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RT7(config)#int et3/0
RT7(config-if)#ip add 192.168.22.1 255.255.255.0
RT3(config-if)#no keepalive
RT7(config-if)#no shut
RT7(config-if)#
 
4)、RT3的Frame-Relay點對點子接口配置
RT3(config)#int s0/0
RT3(config-if)#encapsulation frame-relay ietf
//主接口封裝幀中繼,幀中繼封裝類型與相連的幀中繼交換機接口一致
RT3(config-if)#frame-relay lmi-type q933a
//主接口配置幀中繼LMI,幀中繼LMI類型與相連的幀中繼交換機接口一致
RT3(config-if)#no shut
RT3(config-if)#exit
RT3(config)#int s 0/0.101 point-to-point           //創建點對點子接口
RT3(config-subif)#frame-relay interface-dlci 101 //配置子接口DLCI號
RT3(config-fr-dlci)#exit
RT3(config-subif)#ip add 192.168.1.1 255.255.255.252
RT3(config-subif)#no shut
RT3(config-subif)#exit
RT3(config)#int s0/0.102 point-to-point
RT3(config-subif)#frame-relay interface-dlci 102
RT3(config-fr-dlci)#exit
RT3(config-subif)#ip add 192.168.1.5 255.255.255.252
RT3(config-subif)#no shut
 
5)、RT5的Frame-Relay點對點子接口配置
RT5(config)#int s0/0
RT5(config-if)#encapsulation frame-relay ietf      //主接口封裝幀中繼
RT5(config-if)#frame-relay lmi-type q933a       //主接口配置幀中繼LMI
RT5(config-if)#no shut
RT5(config-if)#exit
RT5(config)#int s0/0.201 point-to-point            //創建點對點子接口
RT5(config-subif)#frame-relay interface-dlci 201 //配置子接口DLCI號
RT5(config-fr-dlci)#exit
RT5(config-subif)#ip add 192.168.1.2 255.255.255.252
RT5(config-subif)#no shut
RT5(config-subif)#END
6)、RT7的Frame-Relay點對點子接口配置
RT7(config)#int s0/0
RT7(config-if)#encapsulation frame-relay ietf      //主接口封裝幀中繼
RT7(config-if)#frame-relay lmi-type q933a       //主接口配置幀中繼LMI
RT7(config-if)#no shut
RT7(config-if)#exit
RT7(config)#int s0/0.202 point-to-point          //創建點對點子接口
RT7(config-subif)#frame-relay interface-dlci 202 //配置子接口DLCI號
RT7(config-fr-dlci)#exit
RT7(config-subif)#ip add 192.168.1.6 255.255.255.252
RT7(config-subif)#no shut
RT7(config-subif)#end
查看幀中繼路由表,結果如下所示:
Frame-Relay點對點子接口 - biscuit - biscuit的博客
     可以看出此時配置的PVC都處於活躍狀態。
 
(三)、查看幀中繼映射表
RT3的幀中繼映射表如下:
Frame-Relay點對點子接口 - biscuit - biscuit的博客
RT5的幀中繼映射表如下:
Frame-Relay點對點子接口 - biscuit - biscuit的博客
RT7的幀中繼映射表如下:
Frame-Relay點對點子接口 - biscuit - biscuit的博客
查看幀中繼PVC狀態後
發現RT3上有兩條活躍的PVC,RT5上有一條活躍的PVC,RT7上有一條活躍的PVC。
子接口鏈路調測
將虛電路兩端互ping,都能ping通進一步證實了在整個拓撲中所配置的兩條虛電路是活躍的。
 
(六)、配置靜態路由
1)、在RT3上爲RT5、RT7的業務網段配置靜態路由
RT3(config)#ip route 192.168.18.0 255.255.255.0 192.168.1.2
RT3(config)#ip route 192.168.22.0 255.255.255.0 192.168.1.6
RT3#show ip route                //查看RT3的路由表,結果如下:
Frame-Relay點對點子接口 - biscuit - biscuit的博客
從路由表中看出在RT3上手動配置了兩條靜態路由
2)、在RT5上爲RT3、RT7的業務網段配置靜態路由
RT5(config)#ip route 192.168.10.0 255.255.255.0 192.168.1.1
RT5(config)#ip route 192.168.22.0 255.255.255.0 192.168.1.1
RT5#show ip route                //查看RT5的路由表,結果如下:
Frame-Relay點對點子接口 - biscuit - biscuit的博客
    從路由表中看出在RT3上手動配置了兩條靜態路由
3)、在RT7上爲RT3、RT7、5的業務網段配置靜態路由
RT7(config)#ip route 192.168.10.0 255.255.255.0 192.168.1.5
RT7(config)#ip route 192.168.18.0 255.255.255.0 192.168.1.5
RT7#show ip route                //查看RT7的路由表,結果如下:
 Frame-Relay點對點子接口 - biscuit - biscuit的博客

 
從路由表中看出在RT7上手動配置了兩條靜態路由
 
實驗驗證
RT3pingRT5不能ping通,但後面加上了source192.168.10.1後,就能ping通。
在第六步中已經查看了路由表,三個路由器之間都有去往對方的路由條目,那爲什麼沒有加source以及後面的內容它們就不通呢?
   主要的原因是如果後面不加source以及後面的內容,則收到數據的路由器會以源路由器的出接口作爲目的IP來封裝數據,但這個路由器又沒有去往源路由器出接口的路由,所以封裝不了數據,結果造成ping不通。
 
三、實驗體會
在本實驗中要掌握的知識點有:
1)、幀中繼交換機的配置。
2)、幀中繼路由的配置及命令的含義。
本實驗中要注意的地方有:
1)、廣域網鏈路採用DCE—DTE的背對背連接,DCE端需要配置時鐘速率,要先配置DCE端的時鐘速率,在配置DCE端的其他配置,然後在配置DTE端;尤其要注意的是先no shutdown DCE端,在no shutdown DTE端,順序不能顛倒,否則接口將不能up。如果出現問題,同時shutdown DCE端和DTE端,然後重新配置DCE端的時鐘速率,再no shutdown DCE端,然後在no shutdown DTE端。
2)、路由器發送數據會以出接口作爲數據的源IP地址。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章