实验目的;配置frame-relay and ospf_p2mp 此处使用回环口模拟各分支的内网。 完成R1 R4 R5之间的全互联。
帧中继 中使用OSPF 默认使用NON-BROADCAST
此处修改为POINT-TO-MULTIPOINT(自动查找邻居,不选举DR,自动MAP) R1: Int s0/0
Ip add 145.1.1.1 255.255.255.0 No shut
Encapsulation frame-relay Frame-realy lmi-type ansi Exit
Show int s0/0 (查看二层s0/0的封装属性,验证是否已经完成了frame-relay的封装)
显示封装OK! 进行下一步 Int loop 0
Ip add 1.1.1.1 255.255.255.0 Exit
Router ospf 110
Router-id 1.1.1.1
Network 1.1.1.0 0.0.0.255 a 0 Network 145.1.1.0 0.0.0.255 a 0 Exit
Show ip ospf inter s0/0 (查看s0/0 ospf的网络属性,在帧中继下默认是NON-BROADCAST)
此处修改ospf网络属性 为point-to-multipoint Config t Int s0/0
Ip ospf network point-to-multipoint Exit
使用show查证
OSPF网络类型修改成功。
R2与R3为运营商所属,不需要进行OSPF网络宣告。只需要配置好PVC通道 frame-relay封装 frame-relay 协议的配对。 R2 config t
no ip domain-lookup line con 0
exec-timeout 0 0 logg syn exit
frame-relay switching int s0/0
encapsulation frame-relay frame-relay lmi-type ansi frame-relay intf-type dce clock rate 64000
frame-relay route 104 interface s0/1 401 frame-relay route 105 interface tunnel2 500 no shut int s0/1
encapsulation frame-relay frame-relay lmi-type ansi frame-relay intf-type dce clock rate 64000
frame-relay route 401 interface s0/0 104 no shut int fa0/0
ip add 23.1.1.2 255.255.255.0 no shut int tunnel 2
tunnel source 23.1.1.2 tunnel des 23.1.1.3 exit R3 config t
no ip domain-lookup line con 0
exec-timeout 0 0 logg syn exit
frame-relay switching int fa0/0
ip add 23.1.1.3 255.255.255.0 no shut int tunnel 2
tunnel source 23.1.1.3 tunnel des 23.1.1.2 exit int s0/0
encapsulation frame-relay frame-relay lmi-type ansi frame-relay intf-type dce clock rate 64000
frame-relay route 501 interface tunnel2 500 no shut exit R4 config t
no ip domain-lookup line con 0
exec-timeout 0 0 logg syn
exit
int loop 0
ip add 4.4.4.4 255.255.255.0 int s0/0
ip ospf network point-to-multipoint encapsulation frame-relay frame-relay lmi-type ansi
ip add 145.1.1.4 255.255.255.0 no shut
router ospf 110 router-id 4.4.4.4
network 4.4.4.0 0.0.0.255 a 0 network 145.1.1.0 0.0.0.255 a 0 exit R5 config t
no ip domain-lookup line con 0
exec-timeout 0 0 logg syn exit
int loop 0
ip add 5.5.5.5 255.255.255.0 int s0/0
ip ospf network point-to-multipoint encapsulation frame-relay frame-relay lmi-type ansi
ip add 145.1.1.5 255.255.255.0 no shut
router ospf 110 router-id 5.5.5.5
network 5.5.5.0 0.0.0.255 a 0 network 145.1.1.0 0.0.0.255 a 0 exit
接下来进行验证。 Show ip route ospf
Ping 测试
OK.此实验已完成。 透过以上配置文件可查看,并未使用frame-relay map 进行映射。
感谢大家的赏阅!
因篇幅问题不能全部显示,请点此查看更多更全内容