OSPF网络类型及NBMA五种类型配置.docx
- 文档编号:10278955
- 上传时间:2023-05-24
- 格式:DOCX
- 页数:21
- 大小:68.79KB
OSPF网络类型及NBMA五种类型配置.docx
《OSPF网络类型及NBMA五种类型配置.docx》由会员分享,可在线阅读,更多相关《OSPF网络类型及NBMA五种类型配置.docx(21页珍藏版)》请在冰点文库上搜索。
OSPF网络类型及NBMA五种类型配置
配置一个基本的帧中继环境:
中间的帧中继已经配置好了
R1(config)#interfaces0/0
R1(config-if)#noshutdown
R1(config-if)#encapsulationframe-relay
R1(config-if)#ipaddress10.0.0.1255.255.255.0
R1(config-if)#noframe-relayinverse-arp
R1(config-if)#noarpframe-relay
R1(config-if)#frame-relaymapip10.0.0.2102broadcast
R1(config-if)#frame-relaymapip10.0.0.3103broadcast
R1(config-if)#exit
R2#shrunints0/0
Buildingconfiguration...
Currentconfiguration:
223bytes
!
interfaceSerial0/0
ipaddress10.0.0.2255.255.255.0
encapsulationframe-relay
noarpframe-relay
frame-relaymapip10.0.0.3203broadcast
frame-relaymapip10.0.0.1201broadcast
noframe-relayinverse-arp
end
R3#shrunints0/0
Buildingconfiguration...
Currentconfiguration:
223bytes
!
interfaceSerial0/0
ipaddress10.0.0.3255.255.255.0
encapsulationframe-relay
noarpframe-relay
frame-relaymapip10.0.0.2302broadcast
frame-relaymapip10.0.0.1301broadcast
noframe-relayinverse-arp
en
帧中继子接口:
R1(config)#interfaces0/0
R1(config-if)#noshutdown
R1(config-if)#encapsulationframe-relay
R1(config-if)#exit
R1(config)#interfaces0/0.1point-to-point
R1(config-subif)#
R1(config-subif)#ipaddress10.0.0.1255.255.255.0
R1(config-subif)#frame-relayinterface-dlci102
R1(config-fr-dlci)#exit
R1(config)#interfaces0/0.2point-to-point
R1(config-subif)#ipadd20.0.0.1255.255.255.0
R1(config-subif)#frame-relayinterface-dlci103
R1(config-fr-dlci)#exit
R1#shipintbrief
InterfaceIP-AddressOK?
MethodStatusProtocol
FastEthernet0/0unassignedYESunsetadministrativelydowndown
Serial0/0unassignedYESTFTPupup
Serial0/0.110.0.0.1YESmanualupup
Serial0/0.220.0.0.1YESmanualupup
FastEthernet0/1unassignedYESunsetadministrativelydowndown
Serial0/1unassignedYESunsetadministrativelydowndown
R3#shrunints0/0
Buildingconfiguration...
Currentconfiguration:
180bytes
!
interfaceSerial0/0
ipaddress20.0.0.3255.255.255.0
encapsulationframe-relay
noarpframe-relay
frame-relaymapip20.0.0.1301broadcast
noframe-relayinverse-arp
end
帧中继的多点子接口:
R1(config)#interfaces0/0
R1(config-if)#encapsulationframe-relay
R1(config-if)#noshutdown
R1(config-if)#exit
R1(config)#interfaces0/0.1multipoint
R1(config-subif)#
R1(config-subif)#ipaddress10.0.0.1255.255.255.0
R1(config-subif)#frame-relaymapip10.0.0.2102broadcast
R1(config-subif)#frame-relaymapip10.0.0.3103broadcast
R1(config-subif)#
R1(config-subif)#exit
R3#shrunint
Buildingconfiguration...
Currentconfiguration:
223bytes
!
interfaceSerial0/0
ipaddress10.0.0.3255.255.255.0
encapsulationframe-relay
noarpframe-relay
frame-relaymapip10.0.0.2302broadcast
frame-relaymapip10.0.0.1301broadcast
no
OSPF的NBMA:
非广播网络方式
可以当成一个广播网来看,不具备自动发现邻居的能力,需要手动指定邻居
该类网络需要DR。
可以手动指定DR,修改其他设备接口的优先级为0
适用于全互联网络
R1:
interfaceLoopback0
ipaddress1.1.1.1255.255.255.0
!
interfaceSerial0/0
ipaddress10.0.0.1255.255.255.0
encapsulationframe-relay
noarpframe-relay
frame-relaymapip10.0.0.3103broadcast
frame-relaymapip10.0.0.2102broadcast
noframe-relayinverse-arp
!
R1(config)#routerospf1
R1(config-router)#network10.0.0.00.0.0.255a
R1(config-router)#network10.0.0.00.0.0.255area0
R1(config-router)#network1.1.1.00.0.0.255area0
R1(config-router)#neighbor10.0.0.2priority0
R1(config-router)#neighbor10.0.0.3priority0
R1(config-router)#exit
R1#showipospfinterfaces0/0
Serial0/0isup,lineprotocolisup
InternetAddress10.0.0.1/24,Area0
ProcessID1,RouterID1.1.1.1,NetworkTypeNON_BROADCAST,Cost:
64
TransmitDelayis1sec,StateWAITING,Priority1
Nodesignatedrouteronthisnetwork
Nobackupdesignatedrouteronthisnetwork
Timerintervalsconfigured,Hello30,Dead120,Wait120,Retransmit5
oob-resynctimeout120
Helloduein00:
00:
17
WaittimebeforeDesignatedrouterselection00:
01:
17
SupportsLink-localSignaling(LLS)
CiscoNSFhelpersupportenabled
IETFNSFhelpersupportenabled
Index1/1,floodqueuelength0
Next0x0(0)/0x0(0)
Lastfloodscanlengthis0,maximumis0
Lastfloodscantimeis0msec,maximumis0msec
NeighborCountis0,Adjacentneighborcountis0
Suppresshellofor0neighbor(s)
R2:
interfaceLoopback0
ipaddress2.2.2.2255.255.255.0
interfaceSerial0/0
ipaddress10.0.0.2255.255.255.0
encapsulationframe-relay
ipospfpriority0
noarpframe-relay
frame-relaymapip10.0.0.3203broadcast
frame-relaymapip10.0.0.1201broadcast
noframe-relayinverse-arp
routerospf1
log-adjacency-changes
network2.2.2.00.0.0.255area0
network10.0.0.00.0.0.255area0
R3:
interfaceLoopback0
ipaddress3.3.3.3255.255.255.0
interfaceSerial0/0
ipaddress10.0.0.3255.255.255.0
encapsulationframe-relay
ipospfpriority0
noarpframe-relay
frame-relaymapip10.0.0.2302broadcast
frame-relaymapip10.0.0.1301broadcast
noframe-relayinverse-arp
routerospf1
log-adjacency-changes
network3.3.3.00.0.0.255area0
network10.0.0.00.0.0.255area0
R1#showipospfneighbor
NeighborIDPriStateDeadTimeAddressInterface
2.2.2.20FULL/DROTHER00:
01:
5110.0.0.2Serial0/0
3.3.3.30FULL/DROTHER00:
01:
3310.0.0.3Serial0/0
R1#shiprouteospf
2.0.0.0/32issubnetted,1subnets
O2.2.2.2[110/65]via10.0.0.2,00:
02:
15,Serial0/0
3.0.0.0/32issubnetted,1subnets
O3.3.3.3[110/65]via10.0.0.3,00:
01:
33,Serial0/0
NBMA环境下点到点子接口:
不需要DR的选举,可以自动发现邻居,不需要手工指定邻居。
需要注意,对端设备如果使用物理接口,需要增加配置ipospfnetworkpoint-to-point
R1:
interfaceLoopback0
ipaddress1.1.1.1255.255.255.0
interfaceSerial0/0
noipaddress
encapsulationframe-relay
!
interfaceSerial0/0.1point-to-point
ipaddress10.0.0.1255.255.255.0
frame-relayinterface-dlci102
!
interfaceSerial0/0.2point-to-point
ipaddress20.0.0.1255.255.255.0
frame-relayinterface-dlci103
routerospf1
log-adjacency-changes
network1.1.1.00.0.0.255area0
network10.0.0.00.0.0.255area0
network20.0.0.00.0.0.255area0
R1#showipospfinterfaces0/0.1
Serial0/0.1isup,lineprotocolisup
InternetAddress10.0.0.1/24,Area0
ProcessID1,RouterID1.1.1.1,NetworkTypePOINT_TO_POINT,Cost:
64
TransmitDelayis1sec,StatePOINT_TO_POINT
Timerintervalsconfigured,Hello10,Dead40,Wait40,Retransmit5
oob-resynctimeout40
Helloduein00:
00:
06
SupportsLink-localSignaling(LLS)
CiscoNSFhelpersupportenabled
IETFNSFhelpersupportenabled
Index1/1,floodqueuelength0
Next0x0(0)/0x0(0)
Lastfloodscanlengthis0,maximumis0
Lastfloodscantimeis0msec,maximumis0msec
NeighborCountis0,Adjacentneighborcountis0
Suppresshellofor0neighbor(s)
R2:
interfaceLoopback0
ipaddress2.2.2.2255.255.255.0
interfaceSerial0/0
ipaddress10.0.0.2255.255.255.0
encapsulationframe-relay
ipospfpriority0
noarpframe-relay
frame-relaymapip10.0.0.3203broadcast
frame-relaymapip10.0.0.1201broadcast
noframe-relayinverse-arp
ipospfnetworkpoint-to-point
routerospf1
log-adjacency-changes
network2.2.2.00.0.0.255area0
network10.0.0.00.0.0.255area0
R3:
interfaceLoopback0
ipaddress3.3.3.3255.255.255.0
interfaceSerial0/0
ipaddress20.0.0.3255.255.255.0
encapsulationframe-relay
ipospfnetworkpoint-to-point
ipospfpriority0
noarpframe-relay
frame-relaymapip20.0.0.1301broadcast
noframe-relayinverse-arp
!
routerospf1
log-adjacency-changes
network3.3.3.00.0.0.255area0
network20.0.0.00.0.0.255area0
R1#showipospfneighbor
NeighborIDPriStateDeadTimeAddressInterface
3.3.3.30FULL/-00:
00:
3620.0.0.3Serial0/0.2
2.2.2.20FULL/-00:
00:
3910.0.0.2Serial0/0.1
R1#shiprouteospf
2.0.0.0/32issubnetted,1subnets
O2.2.2.2[110/65]via10.0.0.2,00:
02:
35,Serial0/0.1
3.0.0.0/32issubnetted,1subnets
O3.3.3.3[110/65]via20.0.0.3,00:
01:
58,Serial0/0.2
NBMA环境下多点子接口:
星型网络,非全互联
需要DR,需要手工指定邻居。
R1:
interfaceLoopback0
ipaddress1.1.1.1255.255.255.0
end
interfaceSerial0/0
noipaddress
encapsulationframe-relay
interfaceSerial0/0.1multipoint
ipaddress10.0.0.1255.255.255.0
frame-relaymapip10.0.0.3103broadcast
frame-relaymapip10.0.0.2102broadcast
routerospf1
log-adjacency-changes
network1.1.1.00.0.0.255area0
network10.0.0.00.0.0.255area0
neighbor10.0.0.2
neighbor10.0.0.3
R1#showipospfinterfaces0/0.1
Serial0/0.1isup,lineprotocolisup
InternetAddress10.0.0.1/24,Area0
ProcessID1,RouterID1.1.1.1,NetworkTypeNON_BROADCAST,Cost:
64
TransmitDelayis1sec,StateDR,Priority1
DesignatedRouter(ID)1.1.1.1,Interfaceaddress10.0.0.1
Nobackupdesignatedrouteronthisnetwork
Timerintervalsconfigured,Hello30,Dead120,Wait120,Retransmit5
oob-resynctimeout120
Helloduein00:
00:
21
SupportsLink-localSignaling(LLS)
CiscoNSFhelpersupportenabled
IETFNSFhelpersupportenabled
Index1/1,floodqueuelength0
Next0x0(0)/0x0(0)
Lastfloodscanlengthis0,maximumis0
Lastfloodscantimeis0msec,maximumis0msec
NeighborCountis0,Adjacentneighborcountis0
Suppresshellofor0neighbor(s)
R2:
interfaceSerial0/0
ipaddress10.0.0.2255.255.255.0
encapsulationframe-relay
ipospfnetworknon-broadcast
ipospfpriority0
noarpframe-relay
frame-relaymapip10.0.0.3203broadcast
frame-relaymapip10.0.0.1201broadcast
noframe-relayinverse-arp
interfaceLoopback0
ipaddress2.2.2.2255.255.255.0
end
routerospf1
log-adjacency-changes
network2.2.2.00.0.0.255area0
network10.0.0.00.0.0.255area0
R2#
R3:
interfaceLoopback0
ipaddress3.3.3.3255.255.255.0
end
interfaceSerial0/0
ipaddress10.0.0
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- OSPF 网络 类型 NBMA 种类 配置