OSPF网络类型.doc_第1页
OSPF网络类型.doc_第2页
OSPF网络类型.doc_第3页
OSPF网络类型.doc_第4页
OSPF网络类型.doc_第5页
已阅读5页,还剩11页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1配置一个基本的帧中继环境:中间的帧中继已经配置好了R1(config)#interface s0/0R1(config-if)#no shutdown R1(config-if)#encapsulation frame-relay R1(config-if)#ip address R1(config-if)#no frame-relay inverse-arp R1(config-if)#no arp frame-relay R1(config-if)#frame-relay map ip 102 broadcast R1(config-if)#frame-relay map ip 103 broadcastR1(config-if)#exitR2#sh run int s0/0Building configuration.Current configuration : 223 bytes!interface Serial0/0 ip address encapsulation frame-relay no arp frame-relay frame-relay map ip 203 broadcast frame-relay map ip 201 broadcast no frame-relay inverse-arpendR3#sh run int s0/0Building configuration.Current configuration : 223 bytes!interface Serial0/0 ip address encapsulation frame-relay no arp frame-relay frame-relay map ip 302 broadcast frame-relay map ip 301 broadcast no frame-relay inverse-arpen2帧中继子接口:R1(config)#interface s0/0R1(config-if)#no shutdown R1(config-if)#encapsulation frame-relay R1(config-if)#exitR1(config)#interface s0/0.1 point-to-point R1(config-subif)#R1(config-subif)#ip address R1(config-subif)#frame-relay interface-dlci 102R1(config-fr-dlci)#exitR1(config)#interface s0/0.2 point-to-point R1(config-subif)#ip add R1(config-subif)#frame-relay interface-dlci 103R1(config-fr-dlci)#exitR1#sh ip int brief Interface IP-Address OK? Method Status ProtocolFastEthernet0/0 unassigned YES unset administratively down down Serial0/0 unassigned YES TFTP up up Serial0/0.1 YES manual up up Serial0/0.2 YES manual up up FastEthernet0/1 unassigned YES unset administratively down down Serial0/1 unassigned YES unset administratively down down R3#sh run int s0/0Building configuration.Current configuration : 180 bytes!interface Serial0/0 ip address encapsulation frame-relay no arp frame-relay frame-relay map ip 301 broadcast no frame-relay inverse-arpend3帧中继的多点子接口:R1(config)#interface s0/0R1(config-if)#encapsulation frame-relay R1(config-if)#no shutdown R1(config-if)#exitR1(config)#interface s0/0.1 multipoint R1(config-subif)#R1(config-subif)#ip address R1(config-subif)#frame-relay map ip 102 broadcast R1(config-subif)#frame-relay map ip 103 broadcast R1(config-subif)#R1(config-subif)#exitR3#sh run int Building configuration.Current configuration : 223 bytes!interface Serial0/0 ip address encapsulation frame-relay no arp frame-relay frame-relay map ip 302 broadcast frame-relay map ip 301 broadcast noOSPF的NBMA:4非广播网络方式可以当成一个广播网来看,不具备自动发现邻居的能力,需要手动指定邻居该类网络需要DR。可以手动指定DR,修改其他设备接口的优先级为0适用于全互联网络R1:interface Loopback0 ip address !interface Serial0/0 ip address encapsulation frame-relay no arp frame-relay frame-relay map ip 103 broadcast frame-relay map ip 102 broadcast no frame-relay inverse-arp!R1(config)#router ospf 1R1(config-router)#network 55 aR1(config-router)#network 55 area 0R1(config-router)#network 55 area 0 R1(config-router)#neighbor priority 0R1(config-router)#neighbor priority 0R1(config-router)#exitR1#show ip ospf interface s0/0Serial0/0 is up, line protocol is up Internet Address /24, Area 0 Process ID 1, Router ID , Network Type NON_BROADCAST, Cost: 64 Transmit Delay is 1 sec, State WAITING, Priority 1 No designated router on this network No backup designated router on this network Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5 oob-resync timeout 120 Hello due in 00:00:17 Wait time before Designated router selection 00:01:17 Supports Link-local Signaling (LLS) Cisco NSF helper support enabled IETF NSF helper support enabled Index 1/1, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 0, maximum is 0 Last flood scan time is 0 msec, maximum is 0 msec Neighbor Count is 0, Adjacent neighbor count is 0 Suppress hello for 0 neighbor(s)R2:interface Loopback0 ip address interface Serial0/0 ip address encapsulation frame-relay ip ospf priority 0 no arp frame-relay frame-relay map ip 203 broadcast frame-relay map ip 201 broadcast no frame-relay inverse-arprouter ospf 1 log-adjacency-changes network 55 area 0 network 55 area 0R3:interface Loopback0 ip address interface Serial0/0 ip address encapsulation frame-relay ip ospf priority 0 no arp frame-relay frame-relay map ip 302 broadcast frame-relay map ip 301 broadcast no frame-relay inverse-arprouter ospf 1 log-adjacency-changes network 55 area 0 network 55 area 0R1#show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 0 FULL/DROTHER 00:01:51 Serial0/0 0 FULL/DROTHER 00:01:33 Serial0/0R1#sh ip route ospf /32 is subnetted, 1 subnetsO 110/65 via , 00:02:15, Serial0/0 /32 is subnetted, 1 subnetsO 110/65 via , 00:01:33, Serial0/05 NBMA环境下点到点子接口:不需要DR的选举,可以自动发现邻居,不需要手工指定邻居。需要注意,对端设备如果使用物理接口,需要增加配置ip ospf network point-to-pointR1:interface Loopback0 ip address interface Serial0/0 no ip address encapsulation frame-relay!interface Serial0/0.1 point-to-point ip address frame-relay interface-dlci 102 !interface Serial0/0.2 point-to-point ip address frame-relay interface-dlci 103 router ospf 1 log-adjacency-changes network 55 area 0 network 55 area 0 network 55 area 0R1#show ip ospf interface s0/0.1Serial0/0.1 is up, line protocol is up Internet Address /24, Area 0 Process ID 1, Router ID , Network Type POINT_TO_POINT, Cost: 64 Transmit Delay is 1 sec, State POINT_TO_POINT Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 Hello due in 00:00:06 Supports Link-local Signaling (LLS) Cisco NSF helper support enabled IETF NSF helper support enabled Index 1/1, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 0, maximum is 0 Last flood scan time is 0 msec, maximum is 0 msec Neighbor Count is 0, Adjacent neighbor count is 0 Suppress hello for 0 neighbor(s)R2:interface Loopback0 ip address interface Serial0/0 ip address encapsulation frame-relay ip ospf priority 0 no arp frame-relay frame-relay map ip 203 broadcast frame-relay map ip 201 broadcast no frame-relay inverse-arpip ospf network point-to-pointrouter ospf 1 log-adjacency-changes network 55 area 0 network 55 area 0R3:interface Loopback0 ip address interface Serial0/0 ip address encapsulation frame-relay ip ospf network point-to-point ip ospf priority 0 no arp frame-relay frame-relay map ip 301 broadcast no frame-relay inverse-arp!router ospf 1 log-adjacency-changes network 55 area 0 network 55 area 0R1#show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 0 FULL/ - 00:00:36 Serial0/.2 0 FULL/ - 00:00:39 Serial0/0.1R1#sh ip route ospf /32 is subnetted, 1 subnetsO 110/65 via , 00:02:35, Serial0/0.1 /32 is subnetted, 1 subnetsO 110/65 via , 00:01:58, Serial0/0.26 NBMA环境下多点子接口:星型网络,非全互联需要DR,需要手工指定邻居。R1:interface Loopback0 ip address endinterface Serial0/0 no ip address encapsulation frame-relayinterface Serial0/0.1 multipoint ip address frame-relay map ip 103 broadcast frame-relay map ip 102 broadcastrouter ospf 1 log-adjacency-changes network 55 area 0 network 55 area 0 neighbor neighbor R1#show ip ospf interface s0/0.1Serial0/0.1 is up, line protocol is up Internet Address /24, Area 0 Process ID 1, Router ID , Network Type NON_BROADCAST, Cost: 64 Transmit Delay is 1 sec, State DR, Priority 1 Designated Router (ID) , Interface address No backup designated router on this network Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5 oob-resync timeout 120 Hello due in 00:00:21 Supports Link-local Signaling (LLS) Cisco NSF helper support enabled IETF NSF helper support enabled Index 1/1, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 0, maximum is 0 Last flood scan time is 0 msec, maximum is 0 msec Neighbor Count is 0, Adjacent neighbor count is 0 Suppress hello for 0 neighbor(s)R2:interface Serial0/0 ip address encapsulation frame-relay ip ospf network non-broadcast ip ospf priority 0 no arp frame-relay frame-relay map ip 203 broadcast frame-relay map ip 201 broadcast no frame-relay inverse-arpinterface Loopback0 ip address endrouter ospf 1 log-adjacency-changes network 55 area 0 network 55 area 0R2#R3:interface Loopback0 ip address endinterface Serial0/0 ip address encapsulation frame-relay ip ospf priority 0 no arp frame-relay frame-relay map ip 301 broadcast no frame-relay inverse-arpendrouter ospf 1 log-adjacency-changes network 55 area 0 network 55 area 0R1#show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 0 FULL/DROTHER 00:01:39 Serial0/.3 0 FULL/DROTHER 00:01:31 Serial0/0.17 NBMA环境下点到点:不需要DR,也不需要指定邻居。R1:!interface Loopback0 ip address endinterface Serial0/0 ip address encapsulation frame-relay ip ospf network point-to-point no arp frame-relay frame-relay map ip 103 broadcast frame-relay map ip 102 broadcast no frame-relay inverse-arpendrouter ospf 1 log-adjacency-changes network 55 area 0 network 55 area 0R1# show ip ospf interface s0/0Serial0/0 is up, line protocol is up Internet Address /24, Area 0 Process ID 1, Router ID , Network Type POINT_TO_POINT, Cost: 64 Transmit Delay is 1 sec, State POINT_TO_POINT Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 Hello due in 00:00:04 Supports Link-local Signaling (LLS) Cisco NSF helper support enabled IETF NSF helper support enabled Index 1/1, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 1, maximum is 1 Last flood scan time is 0 msec, maximum is 0 msec Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor Suppress hello for 0 neighbor(s)8 NBMA环境下点到多点:可以当成多个点到点,不需要DR,可以自动发现邻居。非全互联,星型网络需要在各个设备接口下配置:R2(config)#interface s0/0R2(config-if)#ip ospf network point-to-multipointR1#show ip ospf interface s0/0Serial0/0 is up, line protocol is up Internet Address /24, Area 0 Process ID 1, Router ID , Network Type POINT_TO_MULTIPOINT, Cost: 64 Transmit Delay is 1 sec, State POINT_TO_MULTIPOINT Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5 oob-resync timeout 120 Hello due in 00:00:06 Supports Link-local Signaling (LLS) Cisco NSF helper support enabled IETF NSF helper support enabled Index 1/1, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 1, maximum is 1 Last flood scan time is 0 msec, maximum is 4 msec Neighbor Count is 2, Adjacent neighbor count is 2 Adjacent with neighbor Adjacent with neighbor Suppress hello for 0 neighbor(s)R1#show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 0 FULL/ - 00:01:57 Serial0/0 0 FULL/ - 00:01:49 Serial0/0R2#sh ip ospf neighbor Neighbor ID Pri State Dead Time A

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论