幀中繼更具體配置信息

一、點到點:
點對點幀中繼配置時,需注意:
(DLCI)數據鏈路標識符要“有來有回”也就是說數據就像在一個
管道中流動不能只想一個方向流動,這樣的話就達不到通信的效果了,
所以,要雙向流動(即:(DLCI)數據鏈路標識符要“有來有回”);
另外,在來回的兩個端口ip地址需要在同一個網段;
 
路由器R1配置信息:
第一步進入物理接口,該封裝,設置時鐘速率,並啓動:
R1(config)#interface serial 0/0/1
R1(config-if)#encapsulation frame-relay
R1(config-if)#clock rate 128000
R1(config-if)#no shutdown
第二步進入子接口,設置爲點對點模式:
R1(config)#interface serial 0/0/1.1 point-to-point
第三步配置子接口ip地址:
R1(config-subif)#ip address 10.1.3.1 255.255.255.0
第四步進行端口地址映射:
R1(config-subif)#frame-relay interface-dlci 103
R1(config-subif)#exit
以下重複二、三、四步:
R1(config)#interface serial 0/0/1.2 point-to-point
R1(config-subif)#ip address 10.1.5.1 255.255.255.0
R1(config-subif)#frame-relay interface-dlci 105
R1(config-subif)#end
%SYS-5-CONFIG_I: Configured from console by console
R1#ping 10.1.3.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.3.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 46/53/63 ms
R1#
路由器R3配置信息:
R3(config)#interface serial 0/0/0
R3(config-if)#encapsulation frame-relay
R3(config-if)#clock rate 128000
R3(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
R3(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
R3(config-if)#exit
R3(config)#

R3(config)#interface serial 0/0/0.1 point-to-point
R3(config-subif)#ip address 10.1.3.2 255.255.255.0
R3(config-subif)#frame-relay interface-dlci 301
R3(config-subif)#exit
R3(config)#
R3(config)#interface serial 0/0/0.2 point-to-point

R3(config-subif)#ip address 10.3.5.1 255.255.255.0
R3(config-subif)#frame-relay interface-dlci 305
R3(config-subif)#end
%SYS-5-CONFIG_I: Configured from console by console
R3#ping 10.1.3.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.3.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 62/62/63 ms
R3#

路由器R5配置信息:
Router(config)#interface serial 0/0/0
Router(config-if)#encapsulation frame-relay
Router(config-if)#clock rate 128000
Router(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
Router(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
Router(config-if)#ex
Router(config)#
Router(config)#interface serial 0/0/0.1 point-to-point

Router(config-subif)#ip address 10.1.5.2 255.255.255.0
Router(config-subif)#frame-relay interface-dlci 501
Router(config-subif)#exit
Router(config)#

Router(config)#interface serial 0/0/0.2 point-to-point

Router(config-subif)#ip address 10.3.5.2 255.255.255.0
Router(config-subif)#frame-relay interface-dlci 503
Router(config-subif)#end
%SYS-5-CONFIG_I: Configured from console by console
Router#ping 10.3.5.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.3.5.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 125/128/141 ms
 

二、點到多點:
點到多點幀中繼配置較簡單:
仍需注意,數據流是有去有回的!!!
路由器R3配置信息:
第一步同樣進入物理接口改封裝,設速率,啓動:
R3(config)#interface serial 0/1/1
R3(config-if)#encapsulation frame-relay
R3(config-if)#clock rate 128000
R3(config-if)#no shutdown

R3(config-if)#ex
R3(config)#
第二步進入邏輯接口,並設置其爲點到多點模式,並設置好ip地址:
R3(config)#interface serial 0/1/1.1 multipoint

R3(config-subif)#ip address 172.16.134.3 255.255.255.0
第三步地址映射
R3(config-subif)#frame-relay map ip 172.16.134.1 103
R3(config-subif)#frame-relay map ip 172.16.134.2 104
R3(config-subif)#end
%SYS-5-CONFIG_I: Configured from console by console
R3#ping 172.16.134.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.134.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 62/62/63 ms
R3#ping 172.16.134.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.134.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 62/62/63 ms
R3#
 
路由器R1配置信息:
R1(config)#interface serial 0/1/1
R1(config-if)#encapsulation frame-relay
R1(config-if)#clock rate 128000
R1(config-if)#no shutdown

R1(config-if)#exit
R1(config)#
R1(config)#interface serial 0/1/1.1 multipoint

R1(config-subif)#ip address 172.16.134.1 255.255.255.0
R1(config-subif)#frame-relay map ip 172.16.134.2 304
R1(config-subif)#frame-relay map ip 172.16.134.3 301
R1(config-subif)#
路由器R4配置信息:
Router(config)#interface serial 0/0/0
Router(config-if)#clock rate 128000
Router(config-if)#encapsulation frame-relay
Router(config-if)#no shutdown

Router(config-if)#ex
Router(config)#
Router(config)#interface serial 0/0/0.1 multipoint

Router(config-subif)#ip address 172.16.134.2 255.255.255.0
Router(config-subif)#frame-relay map ip 172.16.134.1 403
Router(config-subif)#frame-relay map ip 172.16.134.3 401
Router(config-subif)#
 
OK!!!!!!!!!!搞定了!!!!!!!!!!!!!!!
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章