OSPF comparison between Cisco and Huawei Routers

Source: Internet
Author: User

Open Shortest Path First (OSPFOpen Shortest Path First) is an open standard-based typical link status routing protocol. OSPF routers exchange and save the link information of the entire network, so as to master the topology of the entire network and calculate routes independently. In the network project, OSPF should also be a dynamic routing protocol that everyone is familiar with. This article compares and learns OSPF from different configurations of Cisco and Huawei routers.

I. OSPF single-zone Interconnection
 

650) this. width = 650; "border =" 0 "alt =" "width =" 638 "height =" 95 "src =" http://www.bkjia.com/uploads/allimg/131227/0222044938-0.jpg "/>


Cisco:
(1) configure the IP addresses of each interface)
(2) Configure OSPF (take intermediate router B as an example)
RouterB (config) # router ospf 10
RouterB (config-router) # network 10.1.1.0 0.0.255 area 0
RouterB (config-router) # network 10.2.2.0 0.0.255 area 0
 

Huawei:
(1) configure the IP addresses of each interface (2) Configure OSPF (take intermediate router B as an example) [RouterB] ospf [RouterB-ospf-1] area 0 [RouterB-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255 [RouterB-ospf-1-area-0.0.0.1] network 10.2.2.0 0.0.0.255 II. multi-zone OSPF Interconnection
650) this. width = 650; "style =" width: 636px; height: 244px "border =" 0 "alt =" "width =" 635 "height =" 298 "src =" http://www.bkjia.com/uploads/allimg/131227/0222045124-1.jpg "/> Cisco:
(1) configure the IP addresses of each interface)
(2) Configure OSPF
R0 (config) # router ospf 1
R0 (config-router) # net 172.16.3.0 0.0.255 area 2 r1 (config) # router ospf 1
R1 (config-router) # net 172.16.3.0 0.0.255 area 2
R1 (config-router) # net 172.16.2.0 0.0.255 area 0 r2 (config) # router ospf 1
R2 (config-router) # net 172.16.2.0 0.0.255 area 0
R2 (config-router) # net 172.16.1.0 0.0.255 area 1
R3 (config) # router ospf 1
R3 (config-router) # net 172.16.1.0 0.0.255 area 1 Huawei:
(1) configure the IP addresses of each interface)
(2) Configure OSPF
[R0] ospf [R0] area 2 [R0-ospf-1-area-0.0.0.2] network 172.16.3.0 0.0.255 [R1-ospf-1-area-0.0.0.2] quit [R1] ospf [R1-ospf-1] area 2 [R1-ospf-1-area-0.0.0.2] network 172.16.3.0 0.0.0.255 [R1-ospf-1-area-0.0.0.2] quit [R1-ospf-1] area 0 [R1-ospf-1-area-0.0.0.0] network 172.16.2.0 0.0.0.255 [R1-ospf-1-area-0.0.0.0] quit [R2] ospf [R2-ospf-1] area 0 [R2-ospf-1-area-0.0.0.0] network 172.16.2.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0] quit [R2-ospf-1] area 1 [R2-ospf-1-area-0.0.0.1] network 172.16.1.0 0.0.255 [R2-ospf-1-area-0.0.0.1] quit [R3] ospf [R3-ospf-1] area 1 [R3-ospf-1-area-0.0.0.1] network 172.16.1.0 0.0.0.255 [R3-ospf-1-area-0.0.0.1] quit III, OSPF Virtual Connection
 

650) this. width = 650; "style =" width: 645px; height: 204px "border =" 0 "alt =" xjsunjie "width =" 644 "height =" 245 "src =" http://www.bkjia.com/uploads/allimg/131227/0222045312-2.jpg "/>

Cisco:
R0 (config) # router ospf 100
R0 (config-router) # network 192.168.1.0 0.0.255 area 1
R0 (config-router) # network 192.168.0.0 0.0.255 area 2
R0 (config-router) # area 1 virtual-link 192.168.2.1

Huawei:
[R0] ospf
[R0-ospf-1] area 1
[R0-ospf-1-area-0.0.0.1] network 192.168.1.0 0.0.255
[R0-ospf-1-area-0.0.0.1] quit
[R0-ospf-1] area 2
[R0-ospf-1-area-0.0.0.2] network 192.168.0.0 0.0.255
[R0-ospf-1-area-0.0.0.2] quit

[R0] ospf
[R0] area 1
[R0-ospf-1-area-0.0.0.1] vlink-peer 192.168.2.1
[R0-ospf-1-area-0.0.0.1] quit
Note:
1. The virtual connection cannot cross the Stub area.
2. To make the virtual connection take effect, you must configure this command on both ends of the virtual connection: vlink-peer xx and the hello, dead and other parameters configured on both ends must be consistent.

Iv. Common OSPF maintenance commands
Cisco:
View neighbor list
Router # show ip ospf neighbor
View link status database
Router # show ip ospf database
View route table
Router # show ip route
View OSPF configurations
Router # show ip ospf
View OSPF Virtual Connection Configuration
Router # show ip ospf virtual-links

Log-adjacency-changes The meaning is that when the adjacent state changes, Log Information.

Huawei:
View OSPF neighbor Information
[Quidway] display ospf peer
View OSPF Interface Information
[Quidway] display ospf interface all
View OSPF route table information
[Quidway] display ospf routing
View OSPF statistics
[Quidway] display ospf cumulative
Display OSPF Virtual connection information
[Quidway] display ospf vlink

This article is from the "dripping water and stone" blog and will not be reposted!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.