一、点到点:
点对点帧中继配置时,需注意:
(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!!!!!!!!!!搞定了!!!!!!!!!!!!!!!
本文出自 “自....厚.....” 博客,转载请与作者联系!