华为ospf多区域配置.docx
- 文档编号:1435700
- 上传时间:2022-10-22
- 格式:DOCX
- 页数:7
- 大小:15.13KB
华为ospf多区域配置.docx
《华为ospf多区域配置.docx》由会员分享,可在线阅读,更多相关《华为ospf多区域配置.docx(7页珍藏版)》请在冰豆网上搜索。
华为ospf多区域配置
文件编码(008-TTIG-UTITD-GKBTT-PUUTI-WYTUI-8256)
华为ospf多区域配置
OSPF多区域配置
1.规划网络拓扑图如下:
文字说明:
a.R1与R2作为末梢区域area1
b.R2与R3作为主区域area0
c.R3与R4作为末梢区域area2
d.R1上连接交换机LSW3,LSW3上拥有vlan8,g0/0/1与g/0/2属于vlan8
e.R1还直连一个主机,网段为网段。
2.配置:
R1:
Entersystemview,returnuserviewwithCtrl+Z.
[Huawei]uninen
Info:
Informationcenterisdisabled.
[Huawei]sysnameR1
[R1]inte0/0/0
[R1-Ethernet0/0/0]ip
[R1-Ethernet0/0/0]q
[R1]inte0/0/1
[R1-Ethernet0/0/1]ip
[R1-Ethernet0/0/1]q
[R1]intg0/0/0
[R1-GigabitEthernet0/0/0]ip
[R1-GigabitEthernet0/0/0]q
[R1]intloop
[R1]intLoopBack0
[R1-LoopBack0]ip
[R1-LoopBack0]q
[R1]intloopback1
[R1-LoopBack1]ip
[R1-LoopBack1]q
[R1]ospf10
[R1-ospf-10]area1
]network
]network
]network
为了能让网段能够到达
//为了能让0网段能够到达
]q
[R1-ospf-10]q
[R1]ip
[R1]ip
[R1]
R2:
[R2]inte0/0/0
[R2-Ethernet0/0/0]ip
[R2-Ethernet0/0/0]inte0/0/1
[R2-Ethernet0/0/1]ip
[R2-Ethernet0/0/1]q
[R2]intloopback0
[R2-LoopBack0]ip
[R2-LoopBack0]q
[R2]intloopback1
[R2-LoopBack1]ip
[R2-LoopBack1]q
[R2]ospf10
[R2-ospf-10]area1
]network
]q
[R2-ospf-10]area0
]network
]network
]network
]q
[R2-ospf-10]q
[R2]
R3:
[Huawei]sysnameR3
[R3]inte0/0/0
[R3-Ethernet0/0/0]ip
[R3-Ethernet0/0/0]inte0/0/1
[R3-Ethernet0/0/1]ip
[R3-Ethernet0/0/1]q
[R3]intloopback0
[R3-LoopBack0]ip
[R3-LoopBack0]q
[R3]intloopback1
[R3-LoopBack1]ip
[R3-LoopBack1]q
[R3]ospf10
[R3-ospf-10]area2
]network
]q
[R3-ospf-10]area0
]network
]network
]network
]q
[R3-ospf-10]q
[R3]
R4:
[Huawei]sysnameR4
[R4]inte0/0/0
[R4-Ethernet0/0/0]ip
[R4-Ethernet0/0/0]q
[R4]intloopback0
[R4-LoopBack0]ip
[R4-LoopBack0]q
[R4]intloopback1
[R4-LoopBack1]ip
[R4-LoopBack1]q
[R4]ospf10
[R4-ospf-10]area2
]network
]network
]network
]q
[R4-ospf-10]q
[R4]
从PC端ping各个路由器的routeid
Ctrl_Ctobreak
seq=1ttl=255time=31ms
seq=2ttl=255time=15ms
seq=3ttl=255time=16ms
seq=4ttl=255time=31ms
seq=5ttl=255time=16ms
pingstatistics---
5packet(s)transmitted
5packet(s)received
%packetloss
round-tripmin/avg/max=15/21/31ms
Ctrl_Ctobreak
seq=1ttl=253time=94ms
seq=2ttl=253time=109ms
seq=3ttl=253time=94ms
seq=4ttl=253time=94ms
seq=5ttl=253time=94ms
pingstatistics---
5packet(s)transmitted
5packet(s)received
%packetloss
round-tripmin/avg/max=94/97/109ms
Ctrl_Ctobreak
seq=1ttl=252time=156ms
seq=2ttl=252time=125ms
seq=3ttl=252time=109ms
seq=4ttl=252time=110ms
seq=5ttl=252time=141ms
pingstatistics---
5packet(s)transmitted
5packet(s)received
%packetloss
round-tripmin/avg/max=109/128/156ms
PC>
查看R2的路由表:
3.配置R1与R2链路认证,使用明文认证
R1:
[R1]inte0/0/0
[R1-Ethernet0/0/0]ospfaut
[R1-Ethernet0/0/0]ospfauthentication-modesim
[R1-Ethernet0/0/0]ospfauthentication-modesimpleplainYP
[R1-Ethernet0/0/0]q
查看邻居路由:
两个路由器链路密码不同断开认证邻居关系
[R1]disospfpeerbrief
PeerStatisticInformation
----------------------------------------------------------------------------
AreaIdInterfaceNeighboridState
----------------------------------------------------------------------------
R2:
[R2]inte0/0/0
[R2-Ethernet0/0/0]ospfau
[R2-Ethernet0/0/0]ospfauthentication-modesimpleplainYP
[R2-Ethernet0/0/0]q
查看邻居路由:
两个路由器链路密码相同重新连接认证邻居关系
[R2]disospfpeerbrief
PeerStatisticInformation
----------------------------------------------------------------------------
AreaIdInterfaceNeighboridState
----------------------------------------------------------------------------
4.配置R3与R4的区域认证,使用密文认证。
R3:
[R3]ospf10
[R3-ospf-10]area2
]au
]authentication-modemd51cipherYP
]q
查看邻居路由:
两个路由器链路密码不同断开认证邻居关系
[R3-ospf-10]disospfpeerbrief
PeerStatisticInformation
----------------------------------------------------------------------------
AreaIdInterfaceNeighboridState
----------------------------------------------------------------------------
R4:
[R4]ospf10
[R4-ospf-10]area2
]au
]authentication-modemd51cipherYP
]q
查看邻居路由:
两个路由器链路密码相同重新连接认证邻居关系
[R4-ospf-10]disospfpeerbrief
PeerStatisticInformation
----------------------------------------------------------------------------
AreaIdInterfaceNeighboridState
----------------------------------------------------------------------------
其实只要是两个不同的区域都能作区域认证和链路认证。
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 华为 ospf 区域 配置