Frmae-relay
实验
1
点对点的实验
1.
首先配置帧中继交换机
这里的是
R3
模拟帧中继交换机
下面的是配置
Router>enable
Router#conf t
Router(config)#hostname FR-S
FR-S(config)#line console 0
FR-S(config-line)#exec-timeout 0 0
FR-S(config-line)#loggi
FR-S(config-line)#logging sy
FR-S(config-line)#logging synchronous
FR-S(config-line)#exit
FR-S(config)#no ip domain lookup
FR-S(config)#^Z
配置
Serial1/0
FR-S#conf t
Enter configuration commands, one per line. End with CNTL/Z.
FR-S(config)#frame-relay switching
FR-S(config)#interface s1/0
FR-S(config-if)#no ip add
FR-S(config-if)#encapsulation frame-relay
FR-S(config-if)#clockrate 64000
R-S(config-if)#frame-relay intf-type ?
dce Configure a FR DCE
dte Configure a FR DTE
nni Configure a FR NNI
FR-S(config-if)#frame-relay intf-type dce
(这个是配置帧中继的接口类型)
FR-S(config-if)#frame-relay lmi-type ?
cisco
ansi
q 933a
FR-S(config-if)#frame-relay lmi-type cisco
(配置帧中继的
LMI
接口类型)
FR-S(config-if)#frame-relay route 102 interface serial1/1 201
(配置帧中继中继交换表)
上面这条命令说简单点
:
从哪个
DLCI(102)
进入
S1/0(inter s1/0)
的数据要到哪个
DLCI(201).
它将从哪个接口出去
(S1/1)
FR-S(config-if)#no shutdown
配置
Serial1/1
FR-S(config-if)#interface serial1/1
FR-S(config-if)#no ip add
FR-S(config-if)#encapsulation frame-relay
FR-S(config-if)#clock ratte 64000
FR-S(config-if)#frame-relay lmi-type cisco
FR-S(config-if)#frame-relay intf-type dce
FR-S(config-if)#frame-relay route 201 interface serial1/0 102
FR-S(config-if)#no shutdown
FR-S(config-if)#^Z
帧中继交换机配置完成!
2.
配置
R1
Router(config)#hostname R1
R1(config)#
R1(config)#
R1(config)#
R1(config)#line console 0
R1(config-line)#exec-timeout 0 0
R1(config-line)#logging synchronous
R1(config-line)#exit
R1(config)#no ip domain lookup
R1(config)#^Z
R1#
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface s1/0
R1(config-if)#ip add 192.168.10.1 255.255.255.0
R1(config-if)#encapsulation frame-relay
R1(config-if)#frame-relay lmi-type cisco
R1(config-if)#frame-relay map ip 192.168.20.1 102 broadcast
上面这条命令
:
协议地址映射
.
即远端
IP
映射到本地的
DLCI.
后面的
Broadcast
参数指明路由更新信息通过该电路穿越网络
(
让
NBMA
支持广播
)
R1(config-if)#no shutdown
R1(config-if)#^Z
3.
配置
R2
R2(config)#interface serial1/0
R2(config-if)#ip address 192.168.20.1 255.255.255.0
R2(config-if)#encapsulation frame-relay
R2(config-if)#frame-relay lmi-type cisco
R2(config-if)#frame-relay map ip 192.168.10.1 201 broadcast
上面的这条命令:协议地址映射
.
即远端
IP
映射到本地的
DLCI.
后面的
broadcast
参数指明路由更新信息同过该电路穿越网络(让
NVMA
支持广播)
R2(config-if)#no shutdown