收藏 分享(赏)

OSPF网络类型及NBMA五种类型配置.doc

上传人:精品资料 文档编号:11029589 上传时间:2020-02-01 格式:DOC 页数:16 大小:74.87KB
下载 相关 举报
OSPF网络类型及NBMA五种类型配置.doc_第1页
第1页 / 共16页
OSPF网络类型及NBMA五种类型配置.doc_第2页
第2页 / 共16页
OSPF网络类型及NBMA五种类型配置.doc_第3页
第3页 / 共16页
OSPF网络类型及NBMA五种类型配置.doc_第4页
第4页 / 共16页
OSPF网络类型及NBMA五种类型配置.doc_第5页
第5页 / 共16页
点击查看更多>>
资源描述

1、配置一个基本的帧中继环境:中间的帧中继已经配置好了R1(config)#interface s0/0R1(config-if)#no shutdown R1(config-if)#encapsulation frame-relay R1(config-if)#ip address 10.0.0.1 255.255.255.0R1(config-if)#no frame-relay inverse-arp R1(config-if)#no arp frame-relay R1(config-if)#frame-relay map ip 10.0.0.2 102 broadcast R1(conf

2、ig-if)#frame-relay map ip 10.0.0.3 103 broadcastR1(config-if)#exitR2#sh run int s0/0Building configuration.Current configuration : 223 bytes!interface Serial0/0ip address 10.0.0.2 255.255.255.0encapsulation frame-relayno arp frame-relayframe-relay map ip 10.0.0.3 203 broadcastframe-relay map ip 10.0

3、.0.1 201 broadcastno frame-relay inverse-arpendR3#sh run int s0/0Building configuration.Current configuration : 223 bytes!interface Serial0/0ip address 10.0.0.3 255.255.255.0encapsulation frame-relayno arp frame-relayframe-relay map ip 10.0.0.2 302 broadcastframe-relay map ip 10.0.0.1 301 broadcastn

4、o frame-relay inverse-arpen帧中继子接口: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 10.0.0.1 255.255.255.0R1(config-subif)#frame-relay interface-dlci 102

5、R1(config-fr-dlci)#exitR1(config)#interface s0/0.2 point-to-point R1(config-subif)#ip add 20.0.0.1 255.255.255.0R1(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 administrativel

6、y down down Serial0/0 unassigned YES TFTP up up Serial0/0.1 10.0.0.1 YES manual up up Serial0/0.2 20.0.0.1 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 confi

7、guration : 180 bytes!interface Serial0/0ip address 20.0.0.3 255.255.255.0encapsulation frame-relayno arp frame-relayframe-relay map ip 20.0.0.1 301 broadcastno frame-relay inverse-arpend帧中继的多点子接口:R1(config)#interface s0/0R1(config-if)#encapsulation frame-relay R1(config-if)#no shutdown R1(config-if)

8、#exitR1(config)#interface s0/0.1 multipoint R1(config-subif)#R1(config-subif)#ip address 10.0.0.1 255.255.255.0R1(config-subif)#frame-relay map ip 10.0.0.2 102 broadcast R1(config-subif)#frame-relay map ip 10.0.0.3 103 broadcast R1(config-subif)#R1(config-subif)#exitR3#sh run int Building configurat

9、ion.Current configuration : 223 bytes!interface Serial0/0ip address 10.0.0.3 255.255.255.0encapsulation frame-relayno arp frame-relayframe-relay map ip 10.0.0.2 302 broadcastframe-relay map ip 10.0.0.1 301 broadcastnoOSPF 的 NBMA:非广播网络方式可以当成一个广播网来看,不具备自动发现邻居的能力,需要手动指定邻居该类网络需要 DR。可以手动指定 DR,修改其他设备接口的优先

10、级为 0适用于全互联网络R1:interface Loopback0ip address 1.1.1.1 255.255.255.0!interface Serial0/0ip address 10.0.0.1 255.255.255.0encapsulation frame-relayno arp frame-relayframe-relay map ip 10.0.0.3 103 broadcastframe-relay map ip 10.0.0.2 102 broadcastno frame-relay inverse-arp!R1(config)#router ospf 1R1(co

11、nfig-router)#network 10.0.0.0 0.0.0.255 aR1(config-router)#network 10.0.0.0 0.0.0.255 area 0R1(config-router)#network 1.1.1.0 0.0.0.255 area 0 R1(config-router)#neighbor 10.0.0.2 priority 0R1(config-router)#neighbor 10.0.0.3 priority 0R1(config-router)#exitR1#show ip ospf interface s0/0Serial0/0 is

12、up, line protocol is up Internet Address 10.0.0.1/24, Area 0 Process ID 1, Router ID 1.1.1.1, Network Type NON_BROADCAST, Cost: 64Transmit Delay is 1 sec, State WAITING, Priority 1No designated router on this networkNo backup designated router on this networkTimer intervals configured, Hello 30, Dea

13、d 120, Wait 120, Retransmit 5oob-resync timeout 120Hello due in 00:00:17Wait time before Designated router selection 00:01:17Supports Link-local Signaling (LLS)Cisco NSF helper support enabledIETF NSF helper support enabledIndex 1/1, flood queue length 0Next 0x0(0)/0x0(0)Last flood scan length is 0,

14、 maximum is 0Last flood scan time is 0 msec, maximum is 0 msecNeighbor Count is 0, Adjacent neighbor count is 0 Suppress hello for 0 neighbor(s)R2:interface Loopback0ip address 2.2.2.2 255.255.255.0interface Serial0/0ip address 10.0.0.2 255.255.255.0encapsulation frame-relayip ospf priority 0no arp

15、frame-relayframe-relay map ip 10.0.0.3 203 broadcastframe-relay map ip 10.0.0.1 201 broadcastno frame-relay inverse-arprouter ospf 1log-adjacency-changesnetwork 2.2.2.0 0.0.0.255 area 0network 10.0.0.0 0.0.0.255 area 0R3:interface Loopback0ip address 3.3.3.3 255.255.255.0interface Serial0/0ip addres

16、s 10.0.0.3 255.255.255.0encapsulation frame-relayip ospf priority 0no arp frame-relayframe-relay map ip 10.0.0.2 302 broadcastframe-relay map ip 10.0.0.1 301 broadcastno frame-relay inverse-arprouter ospf 1log-adjacency-changesnetwork 3.3.3.0 0.0.0.255 area 0network 10.0.0.0 0.0.0.255 area 0R1#show

17、ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface2.2.2.2 0 FULL/DROTHER 00:01:51 10.0.0.2 Serial0/03.3.3.3 0 FULL/DROTHER 00:01:33 10.0.0.3 Serial0/0R1#sh ip route ospf 2.0.0.0/32 is subnetted, 1 subnetsO 2.2.2.2 110/65 via 10.0.0.2, 00:02:15, Serial0/03.0.0.0/32 is subnetted, 1 sub

18、netsO 3.3.3.3 110/65 via 10.0.0.3, 00:01:33, Serial0/0NBMA 环境下点到点子接口:不需要 DR 的选举,可以自动发现邻居,不需要手工指定邻居。需要注意,对端设备如果使用物理接口,需要增加配置 ip ospf network point-to-pointR1:interface Loopback0ip address 1.1.1.1 255.255.255.0interface Serial0/0no ip addressencapsulation frame-relay!interface Serial0/0.1 point-to-poi

19、ntip address 10.0.0.1 255.255.255.0frame-relay interface-dlci 102 !interface Serial0/0.2 point-to-pointip address 20.0.0.1 255.255.255.0frame-relay interface-dlci 103 router ospf 1log-adjacency-changesnetwork 1.1.1.0 0.0.0.255 area 0network 10.0.0.0 0.0.0.255 area 0network 20.0.0.0 0.0.0.255 area 0R

20、1#show ip ospf interface s0/0.1Serial0/0.1 is up, line protocol is up Internet Address 10.0.0.1/24, Area 0 Process ID 1, Router ID 1.1.1.1, Network Type POINT_TO_POINT, Cost: 64Transmit Delay is 1 sec, State POINT_TO_POINTTimer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5oob-resync

21、 timeout 40Hello due in 00:00:06Supports Link-local Signaling (LLS)Cisco NSF helper support enabledIETF NSF helper support enabledIndex 1/1, flood queue length 0Next 0x0(0)/0x0(0)Last flood scan length is 0, maximum is 0Last flood scan time is 0 msec, maximum is 0 msecNeighbor Count is 0, Adjacent n

22、eighbor count is 0 Suppress hello for 0 neighbor(s)R2:interface Loopback0ip address 2.2.2.2 255.255.255.0interface Serial0/0ip address 10.0.0.2 255.255.255.0encapsulation frame-relayip ospf priority 0no arp frame-relayframe-relay map ip 10.0.0.3 203 broadcastframe-relay map ip 10.0.0.1 201 broadcast

23、no frame-relay inverse-arpip ospf network point-to-pointrouter ospf 1log-adjacency-changesnetwork 2.2.2.0 0.0.0.255 area 0network 10.0.0.0 0.0.0.255 area 0R3:interface Loopback0ip address 3.3.3.3 255.255.255.0interface Serial0/0ip address 20.0.0.3 255.255.255.0encapsulation frame-relayip ospf networ

24、k point-to-pointip ospf priority 0no arp frame-relayframe-relay map ip 20.0.0.1 301 broadcastno frame-relay inverse-arp!router ospf 1log-adjacency-changesnetwork 3.3.3.0 0.0.0.255 area 0network 20.0.0.0 0.0.0.255 area 0R1#show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface3.3.3.3

25、 0 FULL/ - 00:00:36 20.0.0.3 Serial0/0.22.2.2.2 0 FULL/ - 00:00:39 10.0.0.2 Serial0/0.1R1#sh ip route ospf 2.0.0.0/32 is subnetted, 1 subnetsO 2.2.2.2 110/65 via 10.0.0.2, 00:02:35, Serial0/0.13.0.0.0/32 is subnetted, 1 subnetsO 3.3.3.3 110/65 via 20.0.0.3, 00:01:58, Serial0/0.2NBMA 环境下多点子接口:星型网络,非全

26、互联需要 DR,需要手工指定邻居。R1:interface Loopback0ip address 1.1.1.1 255.255.255.0endinterface Serial0/0no ip addressencapsulation frame-relayinterface Serial0/0.1 multipointip address 10.0.0.1 255.255.255.0frame-relay map ip 10.0.0.3 103 broadcastframe-relay map ip 10.0.0.2 102 broadcastrouter ospf 1log-adjac

27、ency-changesnetwork 1.1.1.0 0.0.0.255 area 0network 10.0.0.0 0.0.0.255 area 0neighbor 10.0.0.2neighbor 10.0.0.3R1#show ip ospf interface s0/0.1Serial0/0.1 is up, line protocol is up Internet Address 10.0.0.1/24, Area 0 Process ID 1, Router ID 1.1.1.1, Network Type NON_BROADCAST, Cost: 64Transmit Del

28、ay is 1 sec, State DR, Priority 1Designated Router (ID) 1.1.1.1, Interface address 10.0.0.1No backup designated router on this networkTimer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5oob-resync timeout 120Hello due in 00:00:21Supports Link-local Signaling (LLS)Cisco NSF helper s

29、upport enabledIETF NSF helper support enabledIndex 1/1, flood queue length 0Next 0x0(0)/0x0(0)Last flood scan length is 0, maximum is 0Last flood scan time is 0 msec, maximum is 0 msecNeighbor Count is 0, Adjacent neighbor count is 0 Suppress hello for 0 neighbor(s)R2:interface Serial0/0ip address 1

30、0.0.0.2 255.255.255.0encapsulation frame-relayip ospf network non-broadcastip ospf priority 0no arp frame-relayframe-relay map ip 10.0.0.3 203 broadcastframe-relay map ip 10.0.0.1 201 broadcastno frame-relay inverse-arpinterface Loopback0ip address 2.2.2.2 255.255.255.0endrouter ospf 1log-adjacency-

31、changesnetwork 2.2.2.0 0.0.0.255 area 0network 10.0.0.0 0.0.0.255 area 0R2#R3:interface Loopback0ip address 3.3.3.3 255.255.255.0endinterface Serial0/0ip address 10.0.0.3 255.255.255.0encapsulation frame-relayip ospf priority 0no arp frame-relayframe-relay map ip 10.0.0.1 301 broadcastno frame-relay

32、 inverse-arpendrouter ospf 1log-adjacency-changesnetwork 3.3.3.0 0.0.0.255 area 0network 10.0.0.0 0.0.0.255 area 0R1#show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface2.2.2.2 0 FULL/DROTHER 00:01:39 10.0.0.2 Serial0/0.13.3.3.3 0 FULL/DROTHER 00:01:31 10.0.0.3 Serial0/0.1NBMA 环境下

33、点到点:不需要 DR,也不需要指定邻居。R1:!interface Loopback0ip address 1.1.1.1 255.255.255.0endinterface Serial0/0ip address 10.0.0.1 255.255.255.0encapsulation frame-relayip ospf network point-to-pointno arp frame-relayframe-relay map ip 10.0.0.3 103 broadcastframe-relay map ip 10.0.0.2 102 broadcastno frame-relay

34、inverse-arpendrouter ospf 1log-adjacency-changesnetwork 1.1.1.0 0.0.0.255 area 0network 10.0.0.0 0.0.0.255 area 0R1# show ip ospf interface s0/0Serial0/0 is up, line protocol is up Internet Address 10.0.0.1/24, Area 0 Process ID 1, Router ID 1.1.1.1, Network Type POINT_TO_POINT, Cost: 64Transmit Del

35、ay is 1 sec, State POINT_TO_POINTTimer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5oob-resync timeout 40Hello due in 00:00:04Supports Link-local Signaling (LLS)Cisco NSF helper support enabledIETF NSF helper support enabledIndex 1/1, flood queue length 0Next 0x0(0)/0x0(0)Last flood

36、 scan length is 1, maximum is 1Last flood scan time is 0 msec, maximum is 0 msecNeighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 2.2.2.2Suppress hello for 0 neighbor(s)NBMA 环境下点到多点:可以当成多个点到点,不需要 DR,可以自动发现邻居。非全互联,星型网络需要在各个设备接口下配置:R2(config)#interface s0/0R2(config-if)#ip ospf

37、network point-to-multipointR1#show ip ospf interface s0/0Serial0/0 is up, line protocol is up Internet Address 10.0.0.1/24, Area 0 Process ID 1, Router ID 1.1.1.1, Network Type POINT_TO_MULTIPOINT, Cost: 64Transmit Delay is 1 sec, State POINT_TO_MULTIPOINTTimer intervals configured, Hello 30, Dead 1

38、20, Wait 120, Retransmit 5oob-resync timeout 120Hello due in 00:00:06Supports Link-local Signaling (LLS)Cisco NSF helper support enabledIETF NSF helper support enabledIndex 1/1, flood queue length 0Next 0x0(0)/0x0(0)Last flood scan length is 1, maximum is 1Last flood scan time is 0 msec, maximum is

39、4 msecNeighbor Count is 2, Adjacent neighbor count is 2 Adjacent with neighbor 2.2.2.2Adjacent with neighbor 3.3.3.3Suppress hello for 0 neighbor(s)R1#show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface2.2.2.2 0 FULL/ - 00:01:57 10.0.0.2 Serial0/03.3.3.3 0 FULL/ - 00:01:49 10.0.0

40、.3 Serial0/0R2#sh ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface1.1.1.1 0 FULL/ - 00:01:49 10.0.0.1 Serial0/0R3#sh ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface1.1.1.1 0 FULL/ - 00:01:58 10.0.0.1 Serial0/0NBMA 环境下点到多点非广播:非全互联,星型网络,不需要 DR,但是需要手动指定邻居:需要在各个设备接口下

41、配置:R1(config)#interface s0/0R1(config-if)#ip ospf network point-to-multipoint non-broadcastrouter ospf 1log-adjacency-changesnetwork 1.1.1.0 0.0.0.255 area 0network 10.0.0.0 0.0.0.255 area 0neighbor 10.0.0.3neighbor 10.0.0.2R1#show ip ospf interface s0/0Serial0/0 is up, line protocol is up Internet

42、Address 10.0.0.1/24, Area 0 Process ID 1, Router ID 1.1.1.1, Network Type POINT_TO_MULTIPOINT, Cost: 64Transmit Delay is 1 sec, State POINT_TO_MULTIPOINTTimer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5oob-resync timeout 120Hello due in 00:00:09Supports Link-local Signaling (LLS

43、)Cisco NSF helper support enabledIETF NSF helper support enabledIndex 1/1, flood queue length 0Next 0x0(0)/0x0(0)Last flood scan length is 1, maximum is 1Last flood scan time is 0 msec, maximum is 4 msecNeighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 2.2.2.2Suppress hello for 0 neighbor(s)R1#show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface3.3.3.3 0 FULL/ - 00:01:55 10.0.0.3 Serial0/02.2.2.2 0 FULL/ - 00:01:55 10.0.0.2 Serial0/0

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报