CCIE实验笔记之---第3章 WAN协议(帧中继)之二
[b][size=5][size=10.5pt][color=#000000]3.2[size=10.5pt]帧中继的配置[/size][/color][/size][/size][/b]
[b]第1[/b][b]步 [/b] [b]在接口或子接口进行帧中继封装[/b]
Router(config-if)#[b]encapsulaion frame-relay [/b][ cisco | ietf ]
Cisco是默认封装,符合RFC1490 or cisco设备时使用。第三方时用ietf。
[b]第2[/b][b]步 设置LMI[/b][b]类型[/b]
IOS 11.2 or later的router支持LMI auto autosense。手工配置使用下面命令:
Router(config-if)#[b]frame-relay lmi-type[/b] [ ansi | cisco | q933i ]
LMI默认类型是cisco。
[b]第3[/b][b]步 配置静态or[/b][b]动态地址映射[/b]
根据远端设备是否支持RARP选用frame-relay map or frame-relay interface-dlci命令。
两种子接口类型:
※
Point-to-point
使用如下命令:
Router(config-if)[b]#frame-relay interface-dlci [/b][i]dlci_number[/i]
※
Point-to-multipoint
需要使用静态寻址方式,主要是因为路由的问题决定。使用下面命令配置:
Router(config-if)#[b]frame-relay map [/b][i]protocol[/i] [[b] ip | dec | appletalk | xns | ipx | vines | clns | bridge | llc2 | dlsw[/b] ][i] next_hop_address[/i] [ [b]broadcast[/b] ] [ ietf | cisco ]
[b]Frame-relay map[/b]是在本地DLCI和下一跳建立地址映射。[b]Broadcast[/b]用来转发广播,建议无论何时都采用。
表3-1 列出不同接口逆向ARP地址映射的一些用法
表3-1 推荐的RARP和对应的地址映射
[table=499][tr][td][align=center][b]标准接口[/b][/align][/td][td][align=center][b]Point-to-multipoint[/b][/align][/td][td][align=center][b]Point-to-point[/b][/align][/td][td][align=center][b]连接到不支持RARP[/b][b]的设备[/b][/align][/td][/tr][tr][td]每个协议加入网络地址
[/td][td]每个协议加入网络地址。使用frame-relay map
[/td][td]每个协议加入网络地址,使用
frame-relay interface-dlci
[/td][td]每个协议加入网络地址。使用frame-relay map
[/td][/tr][tr][td]静态or 动态寻址
[/td][td]静态寻址
[/td][td]动态寻址
[/td][td]静态寻址
[/td][/tr][/table]
[b]第4[/b][b]步 相关协议问题[/b]
在帧中继上配置路由需要注意的问题。如:ospf时需要使用neighbor声明or 改变网络类型。
距离矢量路由协议or eigrp 的多点网络有水平分割问题,表3-2列出常见问题。
表3-2 帧中继网络常见问题
[table=484][tr][td][align=center][b]Protocol [/b][/align][/td][td][align=center][b]Point-to-multipoint[/b][/align][/td][td][align=center][b]Point-to-point[/b][/align][/td][/tr][tr][td]OSPF
[/td][td]必须使用neighbor声明or接口上使用ip ospf network type命令,使用优先级1设置DR路由器,该router有到all neihgebor的PVC。
[/td][td]必须使用neighbor声明,或者在接口上使用ip ospf network type broadcast命令。
[/td][/tr][tr][td]EIGRP
[/td][td]关闭水平分割,加入bandwidth命令
[/td][td]加入bandwidth命令
[/td][/tr][tr][td]IGRP
[/td][td]关闭水平分割,加入bandwidth命令
[/td][td]加入bandwidth命令
[/td][/tr][tr][td]RIP
[/td][td]关闭水平分割
[/td][td]无
[/td][/tr][tr][td]BGP
[/td][td]无
[/td][td]无
[/td][/tr][tr][td]桥接
[/td][td]设置到router的根桥,该根桥具到all子桥的PVC
[/td][td]设置到router的根桥,该根桥具到all子桥的PVC
[/td][/tr][/table]
[b]注:[/b]在rip or igrp网络中使用no ip split-horizon关闭水平分割。
在EIGRP网络中使用no ip split-horizon eigrp [i]autonomous_system[/i]命令关闭。
在point-to-point接口配置中无需关闭。
[b][size=4][size=10.5pt][color=#000000]3.2.1
[size=10.5pt]实例:配置混合型帧中继网络[/size][/color][/size][/size][/b]
图3-4是一个混合型的帧中继网络,在本例中要配置router A、B、C之间的point-to-multipoint网络。
还要配置一个point-to-point网络。Route protocol use igrp。
图3-4 帧中混合型网络
[img=400,377]http://www.cnfan.net/cisco/uploadfile/200707/20070703104427566.JPG[/img]
先配置R5开始,先配置㥈中继封装,然后配置两种类型子接口。路由器配置见例3-1 所示。
例3-2 封装的设置和子接口类型定义
R5(config)#int s1/0
R5(config-if)#encapsulation frame-relay
R5(config)#int s1/0.1 multipoint [color=red]<-[/color][color=red]配置点到多点子接口[/color]
R5(config-subif)#ip add 172.16.1.5 255.255.255.0
R5(config-subif)#frame-relay map ip 172.16.1.2 502 broadcast [color=red]<-[color=red]配置静态寻址[/color][/color]
R5(config-subif)#frame-relay map ip 172.16.1.3 503 broadcast
R5(config-subif)#exit
R5(config)#int s1/0.2 point-to-point [color=red]<-[color=red]配置点到点子接口[/color][/color]
R5(config-subif)#ip add 172.16.16.5 255.255.255.0
R5(config-subif)#frame-relay interface-dlci 504 [color=red]<-[color=red]配置动态寻址[/color][/color]
配置R2路由器上的点对多点接口,此路由器上不需要配置子接口。如例3-2所示:
例3-3 R2路由器点对多点配置
R2(config)#int s1/0
R2(config-if)#ip add 172.16.1.2 255.255.255.0
R2(config-if)#encapsulation frame-felay
R2(config-if)#frame-relay map ip 172.16.1.5 205 broadcast
R2(config-if)#frame-relay map ip 172.16.1.3 205 broadcast
R2(config-if)#
配置R4路由器上的点到点接口,如例3-3所示:
例3-4 R4路由器点对点配置
R4(config)#int s1/0
R4(config-if)#encapsulation frame-relay
R4(config-if)#ip add 172.16.16.4 255.255.255.0
R4(config-if)#frame
R4(config-if)#frame-relay interface-dlci 405
到此基本的帧中继的配置已经完成,下面需要解决的就是水平分割的问题了.
水平分割默认为开,因此在R5上不会转发R2后面172.16.2.0这个子网的路由信息给R3.
解决这一问题就是在R5的serial1/0.1子接口上使用no ip split-horizon命令。例3-5 列出了完整的配置:
例3-5 图3-4中所有路由器的配置信息
hostname R5
!
interface Loopback1
ip address 172.16.5.1 255.255.255.0
!
interface Serial1/0
no ip address
encapsulation frame-relay
serial restart_delay 0
!
interface Serial1/0.1 multipoint
ip address 172.16.1.5 255.255.255.0
frame-relay map ip 172.16.1.3 503 broadcast
frame-relay map ip 172.16.1.2 502 broadcast
!
interface Serial1/0.2 point-to-point
ip address 172.16.16.5 255.255.255.0
frame-relay interface-dlci 504
-------------------------------------------------------
hostname R2
!
interface Loopback1
ip address 172.16.2.1 255.255.255.0
!
interface Serial1/0
ip address 172.16.1.2 255.255.255.0
encapsulation frame-relay
serial restart_delay 0
frame-relay map ip 172.16.1.3 205 broadcast
frame-relay map ip 172.16.1.5 205 broadcast
!
---------------------------------------------------------
hostname R3
!
interface Loopback1
ip address 172.16.3.1 255.255.255.0
!
interface Serial1/0
ip address 172.16.1.3 255.255.255.0
encapsulation frame-relay
serial restart_delay 0
frame-relay map ip 172.16.1.5 305 broadcast
frame-relay map ip 172.16.1.2 305 broadcast
!
-------------------------------------------------------
hostname R4
!
interface Loopback1
ip address 172.16.4.1 255.255.255.0
!
interface Serial1/0
ip address 172.16.16.4 255.255.255.0
encapsulation frame-relay
serial restart_delay 0
frame-relay interface-dlci 405
!
在配置帧中继网络也可以在接口下加入bandwidth命令以便于route protocol准确的select routes。
页:
[1]