Brief Introduction to the configuration process of OSPF-based Huawei switch routing protocol. The configuration of Environment Parameters in Huawei switch routing will be covered in the following text, including the relevant configuration process, will be displayed to you. Invest in the world of Huawei switch routing.
Router features and networking of Huawei Switches
"Environment parameters for Route configuration of Huawei switches 』
◆ SwitchA, SwitchB, SwitchC, and SwitchD are L3 switches from Huawei-3com, such as S3500 series switches.
◆ The interconnection CIDR blocks and port connections between vswitches are shown in
"Routing and networking requirements for Huawei switches 』
◆ All devices run the OSPF (Open Shortest Path First) routing protocol and are in the backbone area.
◆ Mutual access between PC1 and PC2
Route Data configuration steps for Huawei Switches
"Vswitch Dynamic Route configuration process 』
OSPFOpen Shortest Path First is a link-based internal gateway protocol developed by IETF. Currently, the version 2RFC2328 is used. Its features are as follows:
◆ Adaptation scope-supports networks of all sizes and supports up to hundreds of routers.
◆ Fast convergence-an update packet is sent immediately after the topology structure of the network changes, so that this change can be synchronized in the autonomous system.
◆ No self-ring --- because OSPF uses the shortest path tree algorithm to calculate routes based on the collected link status, the algorithm itself ensures that no self-loop routing is generated.
◆ Region division-the network of the autonomous system can be divided into regions for management. the routing information transmitted between regions is further abstracted to reduce the occupied network bandwidth.
◆ Isoroute-supports multiple equivalent routes to the same destination address.
◆ Route classification: four different routes are used, namely intra-region routes, inter-region routes, first-class external routes, and second-class external routes.
◆ Verification supported-API-based message verification is supported to ensure the security of route computing.
◆ Multicast sending-supports multicast addresses.
The OSPF route calculation process is described as follows:
Each router supporting the OSPF protocol maintains a Link State Database (LSDB) describing the topology of the entire autonomous system ). Each vro generates a Link State broadcast LSA (Link State Advertisement) based on the network topology, and sends the LSA to other vrouters in the network by sending protocol packets to each other. In this way, each vro receives the LSA from other vrouters, and all the LSA together form a link status database.
Because LSA describes the network topology around the vro, LSDB describes the topology of the entire network. The router can easily convert LSDB into a weighted directed graph, which truly reflects the entire network topology. Obviously, Each router gets a completely identical figure.
Each router uses the SPF algorithm to calculate a self-rooted Shortest Path Tree. This tree provides routes to nodes in the autonomous system. The external route information is the leaf node, an external route can be marked by the router that broadcasts it to record additional information about the autonomous system. Obviously, the route tables of each vro are different.
In addition, to enable each vro to broadcast local status information (such as available interface information and accessible neighbor information) to the entire autonomous system, establish multiple joining relationships between vrouters, this makes the route changes of any vro cause multiple transfers, which is unnecessary and wastes valuable bandwidth resources.
To solve this problem, the OSPF Protocol defines the "Designated Router" DR (Designated Router). All routers only send information to the DR, And the DR broadcasts the network link status. In this way, the number of vrouters in the multi-access network is reduced. OSPF supports interface-based message verification to ensure the security of route computing. IP multicast is used to send and receive packets.
Configurations of Huawei switch SwitchA]
◆ Create and enter) vlan10, and add port E0/2 To vlan10, [SwitchA] vlan 10, [SwitchA-vlan10] port Ethernet 0/2.
◆ Create into) vlan interface 10, and configure the ip Address [SwitchA] interface Vlan-interface 10, [SwitchA-Vlan-interface10] ip add 10.1.1.2 255.255.255.0.
◆ Create and enter) vlan100, and add port E0/1 to vlan100 [SwitchA] vlan 100, [SwitchA-vlan100] port Ethernet 0/1.
◆ Create and enter) vlan interface 100, and configure the ip Address [SwitchA] interface Vlan-interface 100, [SwitchA-Vlan-interface100] ip add 100.1.1.1 255.255.255.0.
◆ Start and configure OSPF Protocol [SwitchA] ospf [SwitchA-ospf] area 0, [SwitchA-ospf-area-0.0.0.0] network 10.1.1.0 0.0.0.255, [SwitchA-ospf-area-0.0.0.0] network 100.1.1.0 0.0.0.255.
◆ Introduce the direct connection route [SwitchA-ospf] import-route direct to ospf
Other Switch-related configurations of Huawei Switches]
The configuration procedure is similar to that of SwitchA.
Supplementary description of Huawei switch route entry]
By default, when no router id is specified, that is, the router id. If the LoopBack interface address exists, the system selects the LoopBack address with a large IP address as the router id; if the LoopBack interface address is not configured, select the VLAN interface address with the largest IP address as the router ID number. When manually configuring a vroidid, make sure that the IDs of any two devices in the autonomous system are different.
For SwitchA and SwitchD, you can directly specify the network segments 100.1.1.0/24 and 200.1.1.0/24 in OSPF to enable OSPF. If there are multiple network segments connected to the PC, you can also introduce a direct connection route in OSPF to enable the peer device to learn these CIDR blocks. For other configurations related to OSPF, see Operation Manual and command manual.