Basic vro settings (3)

Source: Internet
Author: User

Series of articles]Router configuration basics 1)
Vro configuration basics 2)
Vro configuration basics 3)

6. Configure static routes

By configuring Static Routing, You can manually specify the path to access a certain network. The network structure is relatively simple, generally, Static Routing is used when the path to a network is unique.

Task commands

Create a static route ip route prefix mask {address | interface} [distance] [tag] [permanent]

Prefix: destination network to be reached

Mask: Subnet mask

Address: the IP address of the next hop, that is, the port address of the adjacent router.

Interface: Local Network interface

Distance: Management distance (optional)

Tag: optional tag values)

Permanent: specify that the route will not be removed even if the port is switched off.

The next hop address for access 192.1.0.64/26 is set to 192.200.10.6 on Router1, that is, when a destination address belongs to the network range of 192.1.0.64/26, route it to an adjacent router with the address 192.200.10.6. On Router3, the next hop address for access to the 192.1.0.128/26 and 192.200.10.4/30 networks is set to 192.1.0.65. Because the Serial 0 address on Router1 is 192.200.10.5 and 192.200.10.4/30 belong to a directly connected network, there is a path to access 192.200.10.4/30, so you do not need to add a static route on router1.

Router1: ip route 192.1.0.64 255.255.255.192 192.200.10.6   Router3: ip route 192.1.0.128 255.255.255.192 192.1.0.65 ip route 192.200.10.4 255.255.255.252 192.1.0.65

At the same time, because Router3 is no longer connected to other routers except router Router2, you can also assign a default route to it to replace the above two static routes,

Ip route 0.0.0.0 0.0.0.0 192.1.0.65

That is, as long as the path to the specific destination address is not found in the routing table, the data is routed to the adjacent router with the address 192.1.0.65.

1. RIP Protocol

RIP (Routing information Protocol) is an Internal Gateway Protocol (IGP) that is widely used earlier and is suitable for small-sized similar networks, is a typical distance-vector protocol. For more information, see RFC1058 and RFC1723.

RIP broadcasts UDP packets to exchange route information and sends route information updates every 30 seconds. RIP provides hop count as a scale to measure the route distance. The hop count is the number of routers that a packet must go through to reach the target. If there are two vrouters with different speeds or bandwidths to the same destination, but the hop count is the same, RIP considers the two routes to be of the same distance. The maximum number of hops supported by RIP is 15, that is, the maximum number of routers to be routed between the source and destination networks is 15, and the number of hops is 16, which indicates that the network cannot be reached.

1. Related commands

Task commands

Specifies the use of the RIP Protocol router rip

RIP version {1 | 2} 1

Network connected to the vro

Note: 1. Cisco RIP version 2 supports verification, key management, route aggregation, classless Inter-Domain Routing (CIDR), and variable length Subnet Mask (VLSMs)

2. Example

Router1: router rip version 2 network 192.200.10.0 network 192.20.10.0 !

Related Debugging commands:

show ip protocol show ip route

Series of articles]Router configuration basics 1)
Vro configuration basics 2)
Vro configuration basics 3)

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.