
目錄
建立拓撲
步驟一:配置ip地址以及環回介面
步驟二:ospf基礎配置
步驟三:在R3上查看鄰居表 、ospf路由表、ospf資料庫
步驟四:進入參選介面修改優先級
步驟五:給R4配置預設路由
步驟六:ospf認證
步驟七:ospf匯總、空介面
建立拓撲

步驟一:配置ip地址以及環回介面
R1

R2

R3

R4
步驟二:ospf基礎配置
R1
R2
R3

R4
步驟三:在R3上查看鄰居表 、ospf路由表、ospf資料庫
[r3]display ospf peer brief
[r3]display ip routing-table protocol ospf
[r3]display ospf lsdb

步驟四:進入參選介面修改優先級
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ospf dr-priority 0
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ospf dr-priority 0

可以看出r3為dr ,沒有bdr
步驟五:給R4配置預設路由
[r4]ospf 1 router-id 4.4.4.4
[r4-ospf-1]default-route-advertise always

從R1ping 4.4.4.4 通了
步驟六:ospf認證
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 258000
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123123
步驟七:ospf匯總、空介面

轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/401599.html
標籤:其他
上一篇:OSPF基礎配置命令

