Essential for network engineers: static routing and dynamic routing

1. Static routing

1. Static routing application scenarios

  • Static routing is manually configured by the network administrator. It is easy to configure and has low system requirements. It is suitable for small networks with simple and stable topology.
  • The disadvantage is that it cannot automatically adapt to changes in network topology and requires manual intervention.

2. Static routing configuration

  1. How to associate next hop IP

[Huawei] ip route-static ip-address { mask | mask-length } nexthop-address

  1. How to associate outbound interfaces

[Huawei] ip route-static ip-address { mask | mask-length } interface-type interface-number

  1. Associating the outbound interface and next hop IP method

[Huawei] ip route-static ip-address { mask | mask-length } interface-type interface-number [ nexthop-address

When creating a static route, you can specify the outbound interface and next hop at the same time. For different outbound interface types, you can also specify only the outbound interface or only the next hop.

For point-to-point interfaces (such as serial ports), only the outgoing interface needs to be specified.

For broadcast interfaces (such as Ethernet interfaces) and VT (Virtual-template) interfaces, the next hop must be specified.

3. Default route

  • The default route is a special route that is used when a packet does not find a matching specific routing entry in the routing table. If the destination address of the packet cannot match any destination address in the routing table, the packet will be forwarded along the default route.
  • The default route is in the form of 0.0.0.0/0 in the routing table, and the default route is also called the default route.

2. Dynamic routing

1. Overview of dynamic routing

2. Dynamic routing classification

Guess you like

Origin blog.csdn.net/yuyeconglong/article/details/132863652