思科与华为设备OSPF配置命令对比
思科與華為設(shè)備OSPF配置命令對(duì)比
[Huawei]ospf 1 //啟動(dòng)OSPF進(jìn)程,進(jìn)入OSPF視圖
Cisco(config)#router ospf 110
[Huawei]ospf 1 router-id 10.1.1.1 //啟動(dòng)OSPF進(jìn)程,進(jìn)入OSPF視圖,手動(dòng)輸入router-id
Cisco(config-router)#router-id 1.1.1.1
[Huawei-ospf-1]area 0 //創(chuàng)建并進(jìn)入OSPF區(qū)域視圖(骨干區(qū)域)
[Huawei-ospf-1-area-0.0.0.0]network 10.0.1.0 0.0.0.255 //配置區(qū)域所包含的網(wǎng)段
[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 //創(chuàng)建并配置虛連接,在虛連接的另一端也需要配置此命令
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接口的網(wǎng)絡(luò)類型,缺省以太網(wǎng)接口的網(wǎng)絡(luò)類型為廣播
[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 //修改接口的網(wǎng)絡(luò)類型
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 //查看學(xué)習(xí)到的OSPF路由
[Huawei-ospf-1-area-0.0.0.1]stub //配置當(dāng)前區(qū)域?yàn)镾TUB區(qū)域
Cisco(config-router)#area 1 stub //配置stub區(qū)域
[Huawei-ospf-1-area-0.0.0.1]stub no-summary //配置當(dāng)前區(qū)域?yàn)镾TUB區(qū)域, 禁止ABR向Stub區(qū)域內(nèi)發(fā)送Type-3 LSA(Summary LSA)
Cisco(config-router)#area 1 stub no-summary //配置完全stub區(qū)域
[Huawei-ospf-1-area-0.0.0.1]stub -default-cost 1 //配置發(fā)送到Stub區(qū)域缺省路由的開銷,缺省值為1
Cisco(config-router)#area 1 default-cost 2 //修改下發(fā)的默認(rèn)三類LSA的cost為2,默認(rèn)為1
[Huawei-ospf-1-area-0.0.0.2]nssa //配置當(dāng)前區(qū)域?yàn)镹SSA區(qū)域
Cisco(config-router)#area 1 nssa //配置nssa區(qū)域
[Huawei-ospf-1-area-0.0.0.2]nssa default-route-advertise //在ASBR上配置產(chǎn)生缺省的Type7 LSA到NSSA區(qū)域
Cisco(config-router)#area 1 nssa default-information-originate //在NSSA區(qū)域的ABR上手工下發(fā)默認(rèn)路由
[Huawei-ospf-1-area-0.0.0.2]nssa no-summary //禁止ABR向NSSA區(qū)域內(nèi)發(fā)送Summary LSA(Type3 LSA)
Cisco(config-router)#area 1 nssa no-summary //配置完全nssa區(qū)域
[Huawei-GigabitEthernet0/0/1]ospf cost 1 //設(shè)置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路由區(qū)域
Cisco(config-router)#default-information originate //在OSPF中注入默認(rèn)路由
[Huawei-ospf-1]default-route-advertise always //無(wú)論本機(jī)是否存在激活的非本OSPF進(jìn)程的缺省路由,都會(huì)產(chǎn)生并發(fā)布一個(gè)描述缺省路由的LSA
Cisco(config-router)#default-information originate always //不論有沒有靜態(tài)默認(rèn)路由,都向OSPF中注入默認(rèn)路由
[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上對(duì)外部路由進(jìn)行匯總
[Huawei-GigabitEthernet0/0/1]ospf timer hello 10 //配置接口發(fā)送Hello報(bào)文的時(shí)間間隔。缺省,P2P、Broadcast類型接口發(fā)送Hello報(bào)文的時(shí)間間隔的值為10秒;P2MP、NBMA類型接口發(fā)送Hello報(bào)文的時(shí)間間隔的值為30秒;且同一接口上鄰居失效時(shí)間是Hello間隔時(shí)間的4倍
Cisco(config-if)#ip ospf hello-interval 10 //修改hello間隔時(shí)間,死亡時(shí)間隨之改變(4倍)
[Huawei-ospf-1]preference 10 //配置OSPF協(xié)議的優(yōu)先級(jí), 缺省為10
Cisco(config-if)#ip ospf priority 1
[Huawei-ospf-1]silent-interface all //禁止OSPF接口發(fā)送和接收協(xié)議報(bào)文, 只對(duì)本進(jìn)程已經(jīng)使能的接口起作用,對(duì)其它進(jìn)程的接口不起作用
Cisco(config-router)#passive-interface default //把所有接口變?yōu)楸粍?dòng)接口
[Huawei-ospf-1-area-0.0.0.0]authentication-mode simple cipher abc@123 //配置OSPF區(qū)域的驗(yàn)證模式(簡(jiǎn)單驗(yàn)證)
Cisco(config-if)#ip ospf authentication-key abc123 //配置OSPF認(rèn)證密碼
Cisco(config-router)#area 0 authentication //啟用OSPF區(qū)域認(rèn)證
[Huawei-ospf-1-area-0.0.0.0]authentication-mode hmac-md5 //配置OSPF區(qū)域的驗(yàn)證密文模式
Cisco(config-if)#ip ospf message-digest-key 1 md5 abc123 //配置OSPF密文認(rèn)證密碼
Cisco(config-router)#area 0 authentication message-digest //啟用OSPF區(qū)域的密文認(rèn)證
[Huawei-GigabitEthernet0/0/1]ospf authentication-mode simple cipher abc@123 //配置OSPF接口的驗(yàn)證模式(簡(jiǎn)單驗(yàn)證)
Cisco(config-if)#ip ospf authentication-key abc123 //配置OSPF認(rèn)證密碼
Cisco(config-if)#ip ospf authentication //啟用OSPF接口認(rèn)證
[Huawei-GigabitEthernet0/0/1]ospf authentication-mode hmac-md5 //配置OSPF接口的驗(yàn)證密文模式
Cisco(config-if)#ip ospf message-digest-key 1 md5 abc123 //配置OSPF密文認(rèn)證密碼
Cisco(config-if)#ip ospf authentication message-digest //啟用OSPF接口密文認(rèn)證
reset ospf process //重啟OSPF進(jìn)程
Cisco#clear ip ospf process //清理OSPF進(jìn)程
總結(jié)
以上是生活随笔為你收集整理的思科与华为设备OSPF配置命令对比的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 迅雷优惠码
- 下一篇: PBRT 阅读 第一章