已閱讀5頁,還剩10頁未讀, 繼續(xù)免費閱讀
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
精品文檔配置OSPF基本功能組網(wǎng)需求如圖1所示,所有的S9300都運行OSPF,并將整個自治系統(tǒng)劃分為3個區(qū)域,其中S9300-A和S9300-B作為ABR來轉(zhuǎn)發(fā)區(qū)域之間的路由。配置完成后,每臺S9300都應(yīng)學(xué)到自治系統(tǒng)內(nèi)的到所有網(wǎng)段的路由。圖1 OSPF基本配置組網(wǎng)圖 S9300接口對應(yīng)的VLANIFIP地址S9300-AGigabitEthernet1/0/1VLANIF 10192.168.0.1/24S9300-AGigabitEthernet1/0/2VLANIF 20192.168.1.1/24S9300-BGigabitEthernet1/0/1VLANIF 10192.168.0.2/24S9300-BGigabitEthernet1/0/2VLANIF 30192.168.2.1/24S9300-CGigabitEthernet1/0/1VLANIF 20192.168.1.2/24S9300-CGigabitEthernet1/0/2VLANIF 40172.16.1.1/24S9300-DGigabitEthernet1/0/1VLANIF 30192.168.2.2/24S9300-DGigabitEthernet1/0/2VLANIF 50172.17.1.1/24S9300-EGigabitEthernet1/0/1VLANIF 40172.16.1.2/24S9300-FGigabitEthernet1/0/1VLANIF 50172.17.1.2/24配置思路采用如下的思路配置OSPF基本功能:1. 配置各接口所屬VLAN ID。 2. 配置各VLANIF接口的IP地址。 3. 在各S9300設(shè)備上使能OSPF,指定不同區(qū)域內(nèi)的網(wǎng)段。 4. 查看路由表及數(shù)據(jù)庫信息。 數(shù)據(jù)準備 各接口所屬的VLAN ID,具體數(shù)據(jù)如圖1所示。 各VLANIF接口的IP地址,具體數(shù)據(jù)如圖1所示。 各S9300設(shè)備的Router ID,OSPF進程號以及各接口所屬的區(qū)域。 S9300-A的Router ID 1.1.1.1,運行的OSPF進程號1,在區(qū)域0的網(wǎng)段192.168.0.0/24,在區(qū)域1的網(wǎng)段192.168.1.0/24。 S9300-B的Router ID 2.2.2.2,運行的OSPF進程號1,在區(qū)域0的網(wǎng)段192.168.0.0/24,在區(qū)域2的網(wǎng)段192.168.2.0/24。 S9300-C的Router ID 3.3.3.3,運行的OSPF進程號1,在區(qū)域1的網(wǎng)段192.168.1.0/24,172.16.1.0/24。 S9300-D的Router ID 4.4.4.4,運行的OSPF進程號1,在區(qū)域2的網(wǎng)段192.168.2.0/24,172.17.1.0/24。 S9300-E的Router ID 5.5.5.5,運行的OSPF進程號1,在區(qū)域1的網(wǎng)段172.16.1.0/24。 S9300-F的Router ID 6.6.6.6,運行的OSPF進程號1,在區(qū)域2的網(wǎng)段172.17.1.0/24。 操作步驟1. 配置各接口所屬VLAN 2. system-view3. Quidway sysname S9300-A4. S9300-A vlan batch 10 205. S9300-A interface gigabitEthernet 1/0/16. S9300-A-GigabitEthernet1/0/1 port hybrid pvid vlan 107. S9300-A-GigabitEthernet1/0/1 port hybrid untagged vlan 108. S9300-A-GigabitEthernet1/0/1 quit9. S9300-A interface gigabitEthernet 1/0/210. S9300-A-GigabitEthernet1/0/2 port hybrid pvid vlan 2011. S9300-A-GigabitEthernet1/0/2 port hybrid untagged vlan 2012. S9300-A-GigabitEthernet1/0/2 quitS9300-B、S9300-C、S9300-D、S9300-E、S9300-F上的配置同S9300-A(略)13. 配置各VLANIF接口的IP地址 14. S9300-A interface vlanif 1015. S9300-A-Vlanif10 ip address 192.168.0.1 2416. S9300-A-Vlanif10 quit17. S9300-A interface vlanif 2018. S9300-A-Vlanif20 ip address 192.168.1.1 24S9300-A-Vlanif20 quitS9300-B、S9300-C、S9300-D、S9300-E、S9300-F上的配置同S9300-A(略)19. 配置OSPF基本功能 # 配置S9300-A。S9300-A router id 1.1.1.1S9300-A ospfS9300-A-ospf-1 area 0S9300-A-ospf-1-area-0.0.0.0 network 192.168.0.0 0.0.0.255S9300-A-ospf-1-area-0.0.0.0 quitS9300-A-ospf-1 area 1S9300-A-ospf-1-area-0.0.0.1 network 192.168.1.0 0.0.0.255S9300-A-ospf-1-area-0.0.0.1 quitS9300-A-ospf-1 quit# 配置S9300-B。S9300-B router id 2.2.2.2S9300-B ospfS9300-B-ospf-1 area 0S9300-B-ospf-1-area-0.0.0.0 network 192.168.0.0 0.0.0.255S9300-B-ospf-1-area-0.0.0.0 quitS9300-B-ospf-1 area 2S9300-B-ospf-1-area-0.0.0.2 network 192.168.2.0 0.0.0.255S9300-B-ospf-1-area-0.0.0.2 quitS9300-B-ospf-1 quit# 配置S9300-C。S9300-C router id 3.3.3.3S9300-C ospfS9300-C-ospf-1 area 1S9300-C-ospf-1-area-0.0.0.1 network 192.168.1.0 0.0.0.255S9300-C-ospf-1-area-0.0.0.1 network 172.16.1.0 0.0.0.255S9300-C-ospf-1-area-0.0.0.1 quitS9300-C-ospf-1 quit# 配置S9300-D。S9300-D router id 4.4.4.4S9300-D ospfS9300-D-ospf-1 area 2S9300-D-ospf-1-area-0.0.0.2 network 192.168.2.0 0.0.0.255S9300-D-ospf-1-area-0.0.0.2 network 172.17.1.0 0.0.0.255S9300-D-ospf-1-area-0.0.0.2 quitS9300-D-ospf-1 quit# 配置S9300-E。S9300-E router id 5.5.5.5S9300-E ospfS9300-E-ospf-1 area 1S9300-E-ospf-1-area-0.0.0.1 network 172.16.1.0 0.0.0.255S9300-E-ospf-1-area-0.0.0.1 quitS9300-E-ospf-1 quit# 配置S9300-F。S9300-F router id 6.6.6.6S9300-F ospfS9300-F-ospf-1 area 2S9300-F-ospf-1-area-0.0.0.2 network 172.17.1.0 0.0.0.255S9300-F-ospf-1-area-0.0.0.2 quitS9300-F-ospf-1 quit20. 驗證配置結(jié)果。 # 查看S9300-A的OSPF鄰居。S9300-A display ospf peer OSPF Process 1 with Router ID 1.1.1.1 Neighbors Area 0.0.0.0 interface 192.168.0.1(Vlanif10)s neighbors Router ID: 2.2.2.2 Address: 192.168.0.2 GR State: Normal State: Full Mode:Nbr is Master Priority: 1 DR: 192.168.0.1 BDR: 192.168.0.2 MTU: 0 Dead timer due in 36 sec Neighbor is up for 00:15:04 Authentication Sequence: 0 Neighbors Area 0.0.0.1 interface 192.168.1.1(Vlanif20)s neighbors Router ID: 3.3.3.3 Address: 192.168.1.2 GR State: Normal State: Full Mode:Nbr is Master Priority: 1 DR: 192.168.1.1 BDR: 192.168.1.2 MTU: 0 Dead timer due in 39 sec Neighbor is up for 00:07:32 Authentication Sequence: 0 # 顯示S9300-A的OSPF路由信息。S9300-A display ospf routing OSPF Process 1 with Router ID 1.1.1.1 Routing Tables Routing for Network Destination Cost Type NextHop AdvRouter Area 172.16.1.0/24 2 Transit 192.168.1.2 3.3.3.3 0.0.0.1 172.17.1.0/24 3 Inter-area 192.168.0.2 2.2.2.2 0.0.0.0 192.168.0.0/24 1 Transit 192.168.0.1 1.1.1.1 0.0.0.0 192.168.1.0/24 1 Transit 192.168.1.1 1.1.1.1 0.0.0.1 192.168.2.0/24 2 Inter-area 192.168.0.2 2.2.2.2 0.0.0.0 Total Nets: 5 Intra Area: 3 Inter Area: 2 ASE: 0 NSSA: 0# 查看S9300-A的LSDB。S9300-A display ospf lsdb OSPF Process 1 with Router ID 1.1.1.1 Link State Database Area: 0.0.0.0 Type LinkState ID AdvRouter Age Len Sequence Metric Router 2.2.2.2 2.2.2.2 317 48 80000003 1 Router 1.1.1.1 1.1.1.1 316 48 80000002 1 Network 192.168.0.1 1.1.1.1 316 32 80000001 0 Sum-Net 172.16.1.0 1.1.1.1 250 28 80000001 2 Sum-Net 172.17.1.0 2.2.2.2 203 28 80000001 2 Sum-Net 192.168.2.0 2.2.2.2 237 28 80000002 1 Sum-Net 192.168.1.0 1.1.1.1 295 28 80000002 1 Area: 0.0.0.1Type LinkState ID AdvRouter Age Len Sequence Metric Router 192.168.1.2 192.168.1.2 188 48 80000002 1 Router 5.5.5.5 5.5.5.5 214 36 80000004 1 Router 3.3.3.3 3.3.3.3 217 60 80000008 1 Router 1.1.1.1 1.1.1.1 289 48 80000002 1 Network 172.16.1.1 3.3.3.3 670 32 80000001 0 Sum-Net 172.17.1.0 1.1.1.1 202 28 80000001 3 Sum-Net 192.168.2.0 1.1.1.1 242 28 80000001 2 Sum-Net 192.168.0.0 1.1.1.1 300 28 80000001 1 # 查看S9300-D的路由表,并使用Ping進行測試連通性。S9300-D display ospf routing OSPF Process 1 with Router ID 4.4.4.4 Routing Tables Routing for Network Destination Cost Type NextHop AdvRouter Area 172.16.1.0/24 4 Inter-area 192.168.2.1 2.2.2.2 0.0.0.2 172.17.1.0/24 1 Transit 172.17.1.1 4.4.4.4 0.0.0.2 192.168.0.0/24 2 Inter-area 192.168.2.1 2.2.2.2 0.0.0.2 192.168.1.0/24 3 Inter-area 192.168.2.1 2.2.2.2 0.0.0.2 192.168.2.0/24 1 Transit 192.168.2.2 4.4.4.4 0.0.0.2 Total Nets: 5 Intra Area: 2 Inter Area: 3 ASE: 0 NSSA: 0 S9300-D ping 172.16.1.1 PING 172.16.1.1: 56 data bytes, press CTRL_C to break Reply from 172.16.1.1: bytes=56 Sequence=1 ttl=253 time=62 ms Reply from 172.16.1.1: bytes=56 Sequence=2 ttl=253 time=16 ms Reply from 172.16.1.1: bytes=56 Sequence=3 ttl=253 time=62 ms Reply from 172.16.1.1: bytes=56 Sequence=4 ttl=253 time=94 ms Reply from 172.16.1.1: bytes=56 Sequence=5 ttl=253 time=63 ms - 172.16.1.1 ping statistics - 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 16/59/94 ms配置文件 S9300-A的配置文件 # sysname S9300-A # router id 1.1.1.1 # vlan batch 10 20 # interface Vlanif10 ip address 192.168.0.1 255.255.255.0 # interface Vlanif20 ip address 192.168.1.1 255.255.255.0 # interface GigabitEthernet1/0/1 port hybrid pvid vlan 10 port hybrid untagged vlan 10 # interface GigabitEthernet1/0/2 port hybrid pvid vlan 20 port hybrid untagged vlan 20 # ospf 1 area 0.0.0.0 network 192.168.0.0 0.0.0.255 area 0.0.0.1 network 192.168.1.0 0.0.0.255 #return S9300-B的配置文件 # sysname S9300-B # router id 2.2.2.2 # vlan batch 10 30 # interface Vlanif10 ip address 192.168.0.2 255.255.255.0 # interface Vlanif30 ip address 192.168.2.1 255.255.255.0 # interface GigabitEthernet1/0/1 port hybrid pvid vlan 10 port hybrid untagged vlan 10 # interface GigabitEthernet1/0/2 port hybrid pvid vlan 30 port hybrid untagged vlan 30 # ospf 1 area 0.0.0.0 network 192.168.0.0 0.0.0.255 area 0.0.0.2 network 192.168.2.0 0.0.0.255 #return S9300-C的配置文件 # sysname S9300-C # router id 3.3.3.3 # vlan batch 20 40 # interface Vlanif20 ip address 192.168.1.2 255.255.255.0 # interface Vlanif40 ip address 172.16.1.1 255.255.255.0 # interface GigabitEthernet1/0/1 port hybrid pvid vlan 20 port hybrid untagged vlan 20 # interface GigabitEthernet1/0/2 port hybrid pvid vlan 40 port hybrid untagged vlan 40 # ospf 1 area 0.0.0.1 network 192.168.1.0 0.0.0.255 network 172.16.1.0 0.0.0.255 #return S9300-D的配置文件 # sysname S9300-D # router id 4.4.4.4 # vlan batch 30 50 # interface Vlanif30 ip address 192.168.2.2 255.255.255.0 # interface Vlanif50 ip address 172.17.1.1 255.255.255.0 #
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度智能泥工施工與設(shè)備維護一體化合同3篇
- 二零二五年度重型工業(yè)門窗安裝施工合同4篇
- 二零二五版鋁合金模板工程安裝與節(jié)能減排合同4篇
- 承包菜市場水溝合同(2篇)
- 二零二五年度便利店線上線下融合項目承包合同4篇
- 2025年度農(nóng)用機械租賃市場分析與預(yù)測合同4篇
- 二零二五年度海洋工程裝備技術(shù)改造服務(wù)合同4篇
- 2025年度農(nóng)業(yè)科技成果轉(zhuǎn)化推廣合同范本3篇
- 二零二五年度大米產(chǎn)業(yè)鏈信息化建設(shè)合同2篇
- 2025年度飯店租賃合同裝修設(shè)計與維護責任界定2篇
- 吉林省吉林市普通中學(xué)2024-2025學(xué)年高三上學(xué)期二模試題 生物 含答案
- 《電影之創(chuàng)戰(zhàn)紀》課件
- 社區(qū)醫(yī)療抗菌藥物分級管理方案
- 開題報告-鑄牢中華民族共同體意識的學(xué)校教育研究
- 《醫(yī)院標識牌規(guī)劃設(shè)計方案》
- 公司2025年會暨員工團隊頒獎盛典攜手同行共創(chuàng)未來模板
- 夜市運營投標方案(技術(shù)方案)
- 電接點 水位計工作原理及故障處理
- 國家職業(yè)大典
- 2024版房產(chǎn)代持協(xié)議書樣本
- 公眾號運營實戰(zhàn)手冊
評論
0/150
提交評論