Full introduction to dynamic route configuration statements

Source: Internet
Author: User

Currently, dynamic routing and Static Routing are widely used. Here we mainly analyze the statements and steps of dynamic routing configuration for dynamic routing. Dynamic Routing means that the dynamic routing protocol (such as RIP) automatically creates a route table. When you remove a line, it automatically removes its route. Each interface in the dynamic routing configuration corresponds to a different network, and the IP addresses of the two endpoints connecting the two routers should belong to the same network. If another port of the vro already exists, the system prompts that the network already exists and displays the corresponding port. This port can be overwritten.

1. Configure the IP address of the computer through dynamic routing

[Root # PCA root] # ifconfig eth0 10.65.1.1 netmask 255.255.0.0
[Root # PCB root] # ifconfig eth0 10.66.1.1 netmask 255.255.255.0.0
[Root # PCC root] # ifconfig eth0 10.69.1.1 netmask 255.255.0.0
[Root # PCD root] # ifconfig eth0 10.70.1.1 netmask 255.255.0.0
[Root # PCA root] # route add default gw 10.65.1.2
[Root # PCB root] # route add default gw 10.66.1.2
[Root # PCC root] # route add default gw 10.69.1.2
[Root # PCD root] # route add default gw 10.70.1.2

2. IP address configured for Dynamic Routing

Routeconfig int f0/0
Routeconfig-if # ip address 10.65.1.2 route 0.0
Routeconfig-if # no shutdown
Routeconfig-if # int f0/1
Routeconfig-if # ip address 10.66.1.2 route 0.0
Routeconfig-if # no shutdown
Routeconfig-if # int s0/1
Routeconfig-if # ip address 10.68.1.2 255.255.0.0
Routeconfig-if # no shutdown
Roupid (config-if) # exit
Routeconfig # ip routing
Routeconfig # router rip
Routeconfig-router # network 10.0.0.0
Routeconfig-router # end
Roupid #
RouterCconfig) int s0/0
RouterC (config-if) # ip address 10.68.1.1 255.255.0.0
RouterC (config-if) # no shutdown
RouterC (config-if) # clock rate 64000
RouterC (config-if) # int s0/1
RouterC (config-if) # ip address 10.78.1.1 255.255.0.0
RouterC (config-if) # no shutdown
RouterC (config-if) # clock rate 64000
RouterC (config-if) # exit
RouterC (config) # ip routing
RouterC (config) # router rip
RouterC (config-router) # network 10.0.0.0
RouterC (config-router) # end
RouterB (config) int f0/0
RouterB (config-if) # ip address 10.69.1.2 route 255.0.0
RouterB (config-if) # no shutdown
RouterB (config-if) # int f0/1
RouterB (config-if) # ip address 10.70.1.2 255.255.0.0
RouterB (config-if) # no shutdown
RouterB (config-if) # int s0/0
RouterB (config-if) # ip address 10.78.1.2 route 255.0.0
RouterB (config-if) # no shutdown
RouterB (config-if) # exit
RouterB (config) # ip routing
RouterB (config) # router rip
RouterB (config-router) # network 10.0.0.0
RouterB (config-router) # end
Route# sh ip route
RouterC # sh ip route
RouterB # sh ip route

Can I see the dynamic route table? If not, check whether the router has enabled the forwarding iprouting interface and whether the interface is activated. Run the "network dynamic routing configuration" command to publish the network. Computer PCA tests the connectivity of each point:

3. Dynamic Route configuration test network connectivity

[Root @ PCA root] # ping 10.65.1.2
[Root @ PCA root] # ping 10.66.1.1
[Root @ PCA root] # ping 10.66.1.2
[Root @ PCA root] # ping 10.68.1.1
[Root @ PCA root] # ping 10.68.1.2
[Root @ PCA root] # ping 10.78.1.1
[Root @ PCA root] # ping 10.78.1.2
[Root @ PCA root] # ping 10.69.1.1
[Root @ PCA root] # ping 10.69.1.2
[Root @ PCA root] # ping 10.70.1.1
[Root @ PCA root] # ping 10.70.1.2

Disconnect a route router, or execute no ip routing, or an interface to execute shutdow, and then run the sh ip ro command to view the route table. You can also add a vro, set it, and check the table.
 

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.