日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

思科与华为设备OSPF配置命令对比

發布時間:2023/12/14 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 思科与华为设备OSPF配置命令对比 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

思科與華為設備OSPF配置命令對比
[Huawei]ospf 1 //啟動OSPF進程,進入OSPF視圖
Cisco(config)#router ospf 110
[Huawei]ospf 1 router-id 10.1.1.1 //啟動OSPF進程,進入OSPF視圖,手動輸入router-id
Cisco(config-router)#router-id 1.1.1.1
[Huawei-ospf-1]area 0 //創建并進入OSPF區域視圖(骨干區域)
[Huawei-ospf-1-area-0.0.0.0]network 10.0.1.0 0.0.0.255 //配置區域所包含的網段
[Huawei-GigabitEthernet0/0/1]ospf enable 1 area 0 //在接口上使能OSPF
Cisco(config-router)#network 20.1.1.0 0.0.0.255 area 0
[Huawei-ospf-1-area-0.0.0.0]vlink-peer 10.1.1.2 //創建并配置虛連接,在虛連接的另一端也需要配置此命令
Cisco(config-router)#area 2 virtual-link 3.3.3.3 //配置虛鏈路
[Huawei]display ospf peer //查看OSPF鄰居的信息
Cisco#show ip ospf neighbor
[Huawei]display ospf interface //查看OSPF接口的信息
Cisco#show ip ospf interface
[Huawei]display ospf lsdb //查看OSPF的LSDB信息
Cisco#show ip ospf database //查看LSDB摘要信息
[Huawei-GigabitEthernet0/0/1]ospf network-type broadcast //配置OSPF接口的網絡類型,缺省以太網接口的網絡類型為廣播
[Huawei-GigabitEthernet0/0/1]ospf network-type nbma
[Huawei-GigabitEthernet0/0/1]ospf network-type p2mp
[Huawei-GigabitEthernet0/0/1]ospf network-type p2p
Cisco(config-if)#ip ospf network broadcast //修改接口的網絡類型
Cisco(config-if)#ip ospf network non-broadcast
Cisco(config-if)#ip ospf network point-to-multipoint
[Huawei]display ospf routing router-id 10.0.1.1 //查看OSPF的路由表信息
Cisco#show ip route ospf //查看學習到的OSPF路由
[Huawei-ospf-1-area-0.0.0.1]stub //配置當前區域為STUB區域
Cisco(config-router)#area 1 stub //配置stub區域
[Huawei-ospf-1-area-0.0.0.1]stub no-summary //配置當前區域為STUB區域, 禁止ABR向Stub區域內發送Type-3 LSA(Summary LSA)
Cisco(config-router)#area 1 stub no-summary //配置完全stub區域
[Huawei-ospf-1-area-0.0.0.1]stub -default-cost 1 //配置發送到Stub區域缺省路由的開銷,缺省值為1
Cisco(config-router)#area 1 default-cost 2 //修改下發的默認三類LSA的cost為2,默認為1
[Huawei-ospf-1-area-0.0.0.2]nssa //配置當前區域為NSSA區域
Cisco(config-router)#area 1 nssa //配置nssa區域
[Huawei-ospf-1-area-0.0.0.2]nssa default-route-advertise //在ASBR上配置產生缺省的Type7 LSA到NSSA區域
Cisco(config-router)#area 1 nssa default-information-originate //在NSSA區域的ABR上手工下發默認路由
[Huawei-ospf-1-area-0.0.0.2]nssa no-summary //禁止ABR向NSSA區域內發送Summary LSA(Type3 LSA)
Cisco(config-router)#area 1 nssa no-summary //配置完全nssa區域
[Huawei-GigabitEthernet0/0/1]ospf cost 1 //設置OSPF接口的開銷值
Cisco(config-if)#ip ospf cost 100 //修改接口cost值
[Huawei-ospf-1]bandwidth-reference 100 //配置帶寬參考值
Cisco(config-if)#bandwidth 1000000 //修改參考帶寬
[Huawei-ospf-1]default-route-advertise //將缺省路由通告到OSPF路由區域
Cisco(config-router)#default-information originate //在OSPF中注入默認路由
[Huawei-ospf-1]default-route-advertise always //無論本機是否存在激活的非本OSPF進程的缺省路由,都會產生并發布一個描述缺省路由的LSA
Cisco(config-router)#default-information originate always //不論有沒有靜態默認路由,都向OSPF中注入默認路由
[Huawei-ospf-1-area-0.0.0.0]abr-summary 10.1.1.0 255.255.0.0 //配置OSPF的ABR路由聚合
Cisco(config-router)#area 1 range 172.16.0.0 255.255.0.0
[Huawei-ospf-1]asbr-summary 10.1.1.0 255.255.0.0 //配置OSPF的ASBR路由聚合
Cisco(config-router)#summary-address 10.1.0.0 255.255.0.0 //在ASBR上對外部路由進行匯總
[Huawei-GigabitEthernet0/0/1]ospf timer hello 10 //配置接口發送Hello報文的時間間隔。缺省,P2P、Broadcast類型接口發送Hello報文的時間間隔的值為10秒;P2MP、NBMA類型接口發送Hello報文的時間間隔的值為30秒;且同一接口上鄰居失效時間是Hello間隔時間的4倍
Cisco(config-if)#ip ospf hello-interval 10 //修改hello間隔時間,死亡時間隨之改變(4倍)
[Huawei-ospf-1]preference 10 //配置OSPF協議的優先級, 缺省為10
Cisco(config-if)#ip ospf priority 1
[Huawei-ospf-1]silent-interface all //禁止OSPF接口發送和接收協議報文, 只對本進程已經使能的接口起作用,對其它進程的接口不起作用
Cisco(config-router)#passive-interface default //把所有接口變為被動接口
[Huawei-ospf-1-area-0.0.0.0]authentication-mode simple cipher abc@123 //配置OSPF區域的驗證模式(簡單驗證)
Cisco(config-if)#ip ospf authentication-key abc123 //配置OSPF認證密碼
Cisco(config-router)#area 0 authentication //啟用OSPF區域認證
[Huawei-ospf-1-area-0.0.0.0]authentication-mode hmac-md5 //配置OSPF區域的驗證密文模式
Cisco(config-if)#ip ospf message-digest-key 1 md5 abc123 //配置OSPF密文認證密碼
Cisco(config-router)#area 0 authentication message-digest //啟用OSPF區域的密文認證
[Huawei-GigabitEthernet0/0/1]ospf authentication-mode simple cipher abc@123 //配置OSPF接口的驗證模式(簡單驗證)
Cisco(config-if)#ip ospf authentication-key abc123 //配置OSPF認證密碼
Cisco(config-if)#ip ospf authentication //啟用OSPF接口認證
[Huawei-GigabitEthernet0/0/1]ospf authentication-mode hmac-md5 //配置OSPF接口的驗證密文模式
Cisco(config-if)#ip ospf message-digest-key 1 md5 abc123 //配置OSPF密文認證密碼
Cisco(config-if)#ip ospf authentication message-digest //啟用OSPF接口密文認證
reset ospf process //重啟OSPF進程
Cisco#clear ip ospf process //清理OSPF進程

總結

以上是生活随笔為你收集整理的思科与华为设备OSPF配置命令对比的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。