Current location - Education and Training Encyclopedia - Education and training - How does Huawei switch configure routing?
How does Huawei switch configure routing?
The configuration method is as follows:

1, log in to the switch and enter the management view.

2. First, confirm whether there is a static route in the current configuration.

3, and then you can configure the static route, IP route-static 0.0.0.0192.168.88. 1, which means that all access hops are 88.1.

4. Then configure a specified static route, IP route-static10.10.100.0 255.255.010/065438+.

5. After the configuration is completed, use the display current to view the current configuration.

6, and then return to the view to save, enter save.

7. Confirm the save.

The traditional Huawei switch developed from the bridge and belongs to the second layer of OSI, that is, the data link layer equipment. It addresses according to the MAC address, selects the route through the station table, and the establishment and maintenance of the station table is automatically carried out by CISCO Cisco switches. Routers belong to the third layer of OSI, that is, network layer devices. It is addressed according to IP address and generated by routing table routing protocol.

The biggest advantage of a three-layer 10 Gigabit switch is its high speed. Because the switch only needs to identify the MAC address in the frame, the algorithm of selecting the forwarding port directly according to the MAC address is simple and easy to implement in ASIC, so the forwarding speed is extremely high. However, the working mechanism of the switch also brings some problems.

1. loop: According to Huawei's switch address learning and station table establishment algorithm, loops are not allowed between switches. Once the loop exists, the spanning tree algorithm must be started to block the port that generates the loop. However, the routing protocol of routers does not have this problem, and there can be multiple paths between routers to balance the load and improve the reliability.

2. Load concentration: There can only be one path between Huawei switches, so that information can be concentrated on one communication link, which cannot be dynamically distributed to balance the load. Router routing protocol algorithm can avoid this situation. OSPF routing protocol algorithm can not only generate multiple routes, but also choose different best routes for different network applications.

3. Broadcast control: Huawei switches can only reduce the collision domain, but not the broadcast domain. The whole switching network is a large broadcast domain, and broadcast messages are scattered throughout the switching network. The router can isolate the broadcast domain, and the broadcast message cannot continue to broadcast through the router.

4. Segmentation: Huawei switches can only recognize MAC addresses. The MAC address is a physical address with a flat address structure, so it is impossible to divide subnets according to the MAC address. The router recognizes the IP address assigned by the network administrator. It is a logical address with a hierarchical structure. It is divided into network number and host number, which is very convenient to divide subnets. The main function of a router is to connect different networks.

5. Confidentiality: Although Huawei switches can filter frames according to their own source MAC addresses and destination MAC addresses, routers filter packets according to their own source IP addresses, destination IP addresses and TCP port addresses, which is more intuitive and convenient.