当前位置:首页 > 实验二十七、OSPF 在 NBMA 环境中点到点的配置
!
interface Serial1/0 no ip address
no ip directed-broadcast physical-layer speed 64000 !
interface Serial1/1
ip address 192.168.1.1 255.255.255.0 no ip directed-broadcast encapsulation frame-relay frame-relay local-dlci 100
frame-relay map 192.168.1.2 pvc 100 broadcast frame-relay intf-type dce physical-layer speed 64000 ip ospf network point-to-point !
interface Async0/0 no ip address
no ip directed-broadcast ! ! !
router ospf 2
network 192.168.0.0 255.255.255.0 area 0 network 192.168.1.0 255.255.255.0 area 0 ! ! ! ! !
九、 共同思考
1. 为什么在帧中继环境下默认的网络类型导致无法得到 OSPF 路由? 2. 如果是一个物理接口对应多条 PVC,应该如何配置?
十、 课后练习
请将地址改为 10.0.0.0/24 重复以上实验
十一、
相关命令详解
ip ospf network
设置接口的网络类型。no ip ospf network 取消设置。
ip ospf network { broadcast | nonbroadcast | point_to_multipoint | point-to-point} no ip ospf network { broadcast | nonbroadcast | point_to_multipoint | point-to-point}
参数
参数 参数说明 broadcast 设置接口的网络类型为广播类型。 nonbroadcast 设置接口的网络类型为非广播NBMA类型。 point-to-point 设置接口的网络类型为点到点 设置接口的网络类型为点到多点 point-to-multipoint
命令模式 接口配置态
使用说明
在没有多址访问能力的广播网上,应该将接口配置成 NBMA 方式。当一个 NBMA 网络中, 不能保证任意两台路由器之间都是直接可达的话,应将网络设置为点到多点的方式。
示例
配置接口 Serial1/0 为非广播 NBMA 类型。 router_config_S1/0#ip ospf network nonbroadcast
共分享92篇相关文档