第1步 在接口或子接口进行帧中继封装
Router(config-if)#encapsulaion frame-relay [ cisco | ietf ]
Cisco是默认封装,符合RFC1490 or cisco设备时使用。第三方时用ietf。
第2步 设置LMI类型
IOS 11.2 or later的router支持LMI auto autosense。手工配置使用下面命令:
Router(config-if)#frame-relay lmi-type [ ansi | cisco | q933i ]
LMI默认类型是cisco。
第3步 配置静态or动态地址映射
根据远端设备是否支持RARP选用frame-relay map or frame-relay interface-dlci命令。
两种子接口类型:
※ Point-to-point
使用如下命令:
Router(config-if)#frame-relay interface-dlci dlci_number
※ Point-to-multipoint
需要使用静态寻址方式,主要是因为路由的问题决定。使用下面命令配置:
Router(config-if)#frame-relay map protocol [ ip | dec | appletalk | xns | ipx | vines | clns | bridge | llc2 | dlsw ] next_hop_address [ broadcast ] [ ietf | cisco ]
Frame-relay map是在本地DLCI和下一跳建立地址映射。Broadcast用来转发广播,建议无论何时都采用。
表3-1 列出不同接口逆向ARP地址映射的一些用法
表3-1 推荐的RARP和对应的地址映射
|
标准接口 |
Point-to-multipoint |
Point-to-point |
连接到不支持RARP的设备 |
|
每个协议加入网络地址 |
每个协议加入网络地址。使用frame-relay map |
每个协议加入网络地址,使用 frame-relay interface-dlci |
每个协议加入网络地址。使用frame-relay map |
|
静态or 动态寻址 |
静态寻址 |
动态寻址 |
静态寻址 |
第4步 相关协议问题
在帧中继上配置路由需要注意的问题。如:ospf时需要使用neighbor声明or 改变网络类型。
距离矢量路由协议or eigrp 的多点网络有水平分割问题,表3-2列出常见问题。
表3-2 帧中继网络常见问题
|
Protocol |
Point-to-multipoint |
Point-to-point |
|
OSPF |
必须使用neighbor声明or接口上使用ip ospf network type命令,使用优先级1设置DR路由器,该router有到all neihgebor的PVC。 |
必须使用neighbor声明,或者在接口上使用ip ospf network type broadcast命令。 |
|
EIGRP |
关闭水平分割,加入bandwidth命令 |
加入bandwidth命令 |
|
IGRP |
关闭水平分割,加入bandwidth命令 |
加入bandwidth命令 |
|
RIP |
关闭水平分割 |
无 |
|
BGP |
无 |
无 |
|
桥接 |
设置到router的根桥,该根桥具到all子桥的PVC |
设置到router的根桥,该根桥具到all子桥的PVC |
注:在rip or igrp网络中使用no ip split-horizon关闭水平分割。
在EIGRP网络中使用no ip split-horizon eigrp autonomous_system命令关闭。
在point-to-point接口配置中无需关闭。
