ospf 帧中继---全网互联_职场

Top图为全网互联结构

1、 r1-r3连接帧交换的接口封装为frame-relay

2、 在ospf协议中添加其他两台路由为邻居

3、 帧交换的接口封装为frame-relay,并且更改本地管理接口lmi的类型为ansi,接口的类型为 dce 并且设置时钟频率,配置虚链路。

帧交换机的配置命令

enable

config t

host r4

no ip domain loo

line console 0

logg syn

exec-time 0 0

exit

frame-relay switch //将路由类型转换为帧交换类型

int s 0/1

encap frame-relay //将接口封装帧中继协议

frame-relay lmi-type ansi //配置本地管理接口lmi类型为ansi

frame-relay intf-type dce //配置接口类型为dce

clock rate 64000 //配置时钟频率

frame-relay route 102 int s0/2 201 //配置r1到r2的链路,从经s0/1的dlci102到接口s0/2的dlci201

frame-relay route 103 int s0/3 301 //配置r1到r3的虚链路,经s0/0的dlci103到s0/3的dlci301(以下接口配置大致相同)

no shu

int s 0/2

encap frame-relay

frame-relay lmi-type ansi

frame-relay intf-type dce

clock rate 64000

frame-relay route 201 int s0/1 102

frame-relay route 203 int s0/3 302

no shu

int s 0/3

encap frame-relay

frame-relay lmi-type ansi

frame-relay intf-type dce

clock rate 64000

frame-relay route 301 int s0/1 103

frame-relay route 302 int s0/2 203

no shu

r1的配置命令

enable

config t

host r1

no ip domain loo

line console 0

logg syn

exec-time 0 0

exit

int s 0/0

enca frame-relay //将接口封装帧中继协议

ip add 192.1.1.1 255.255.255.0

no shu

int lo0

ip add 1.1.1.1 255.255.255.0

router ospf 10

network 192.1.1.1 0.0.0.0 area 0

network 1.1.1.1 0.0.0.0 area 0

nei 192.1.1.2 //与192.1.1.2建立邻居关系

nei 192.1.1.3 //与192.1.1.3建立邻居关系

r2配置命令

enable

config t

host r2

no ip domain loo

line console 0

logg syn

exec-time 0 0

exit

int s 0/0

enca frame-relay //将接口封装为帧中继协议

ip add 192.1.1.2 255.255.255.0

no shu

int lo0

ip add 2.2.2.2 255.255.255.0

router ospf 10

network 192.1.1.2 0.0.0.0 area 0

network 2.2.2.2 0.0.0.0 area 0

nei 192.1.1.3 //与192.1.1.3建立邻居关系

r3的配置命令

enable

config t

host r3

no ip domain loo

line console 0

logg syn

exec-time 0 0

exit

int s 0/0

enca frame-relay //将接口封装帧中继协议

ip add 192.1.1.3 255.255.255.0

no shu

int lo0

ip add 3.3.3.3 255.255.255.0

router ospf 10

network 192.1.1.3 0.0.0.0 area 0

network 3.3.3.3 0.0.0.0 area 0

(虽然是在文本上写好的,可以直接复制到模拟器里,测试没有问题。路由信息就不上图了)

测试

R1的lo0 1.1.1.1ping r2的lo0 2.2.2.2 和r3的lo0 3.3.3.3

ospf 帧中继---全网互联_职场_02

R2的lo0 2.2.2.2 ping r3的lo0 3.3.3.3

ospf 帧中继---全网互联_ospf_03

全网通