How to configure static routes and configure instances

Source: Internet
Author: User

Static Routing can be divided into the following three parts:

1. The network administrator configures static routes.

2. Add the configured static route to the routing table.

3. the router uses this static route to forward data packets.

Configuration instance:

In the figure, all devices forward data packets to the internet through the vro whose host name is it168. Vro168 it168 uses a serial line to connect to the DNS server provided by the ISP. This is a very common example. In the network environment I have seen, most of them use a static route to connect to the WAN. The configuration steps are as follows:

In global mode, type the command ip route [destination address] [subnet mask] [network egress/Next Hop address]

Configure the serial interface S0 as the exit for Static Routing: 168 (config) # ip route 202.100.96.123 255.255.255.0 s0

Configure the next hop address 202.100.96.68 as the static route egress: it168 (config) # ip route 202.100.96.123 255.255.255.0 202.100.96.68

By default, the egress of the static route is higher than the next hop address of s0, but we recommend that the Network Manager use the next hop address as the static route, if S0 is disabled, the static route will not be loaded to the routing table.

Another function of Static Routing is to back up routing options for dynamic routing. If we have configured dynamic routing, We can manually change the priority of Static Routing, when a problem occurs in a dynamic route, the router can select this static route to forward data packets.

  1. Static route settings and related commands
  2. Detailed explanation of Huawei router static route configuration commands

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.