Static routing (detailed understanding + detailed examples)

Series Article Directory

Huawei Datacom Learning (6)


foreword

1. Static routing

Second, static routing configuration

Three, the default route

4. Default routing application scenarios

Summarize


foreword

With the continuous development of Huawei, the technology of data communication is becoming more and more important. Many people have started learning data communication. This article introduces static routing, which is the fourteenth stop we pass through the Datacom Kingdom (we are in the article Huawei's ENSP software is used).


1. Static routing

advantage:

Static routing saves our equipment resources. It won't take too much resources for you to write the configuration there.

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 a simple and stable topology.

shortcoming:

It cannot automatically adapt to changes in the network topology and requires manual intervention.

explain:

The packet whose destination address belongs to 20.1.1.0/24 is forwarded on the RTA, and there is no route matching when there are only direct routes. At this time, you can manually configure the static route so that the packets sent by RTA to the network segment 20.1.1.0/24 are forwarded to the next hop 10.0.0.2.

Second, static routing configuration

1. The method of associating the next hop IP

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

2. The method of associating the outbound interface

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

3. Associate the outbound interface with the next hop IP mode

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

When creating a static route, you can specify both the outgoing interface and the next hop. For different types of outbound interfaces, you can specify only the outbound interface or only the next hop.

For a point-to-point interface (such as a serial port), the outgoing interface must be specified.

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

Three, the default route

When the router has only one exit, you can configure a default route, and any traffic will go out through this interface.

The default route is a special route, which is used only when the 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 through the default route.

The form of the default route in the routing table is 0.0.0.0/0, and the default route is also called the default route.

4. Default routing application scenarios

The default route is generally used for the egress of the enterprise network. Configuring a default route allows the egress device to forward IP packets destined for any address on the Internet.

Border devices can be configured with default routes.


Summarize

Congratulations, you have learned static routing through this chapter. Huawei Datacom still has many treasures waiting for you to explore, come on! Just to become a better version of myself.

Guess you like

Origin blog.csdn.net/weixin_73466540/article/details/132590534