Example for Configuring IPv4 Static Routes

Created: Jan 14, 2017 23:18:22Latest reply: Jan 15, 2017 00:10:02 876 1 0 0

Applicability

This example applies to all versions and AR routers.

Networking Requirements

Static routes need to be configured to ensure that any two hosts can communicate with each other. Figure 7-1 shows the IP addresses and masks of hosts and routers' interfaces.

Figure 7-1  Networking diagram of configuring static routes
3d5a3e5d7afa40c5af5ecbeb30d6d59c

Procedure

  1. Configure RouterA.

    #
    interface GigabitEthernet1/0/0 
     ip address 10.1.1.1 255.255.255.0 
    #  
    interface GigabitEthernet2/0/0 
     ip address 10.1.4.1 255.255.255.252 
    #
    ip route-static 10.1.2.0 255.255.255.0 10.1.4.2                               
    ip route-static 10.1.3.0 255.255.255.0 10.1.4.2  //Configure static routes on Router A.  
    #  
    return 

  2. Configure RouterB.

    #
    interface GigabitEthernet1/0/0 
     ip address 10.1.2.1 255.255.255.0 
    #  
    interface GigabitEthernet2/0/0 
     ip address 10.1.4.2 255.255.255.252 
    #
    interface GigabitEthernet3/0/0 
     ip address 10.1.4.5 255.255.255.252 
    #
    ip route-static 10.1.1.0 255.255.255.0 10.1.4.1                               
    ip route-static 10.1.3.0 255.255.255.0 10.1.4.6  //Configure static routes on Router B.                               
    #  
    return 

  3. Configure RouterC.

    #
    interface GigabitEthernet1/0/0 
     ip address 10.1.3.1 255.255.255.0 
    #  
    interface GigabitEthernet2/0/0 
     ip address 10.1.4.6 255.255.255.252 
    #
    ip route-static 10.1.1.0 255.255.255.0 10.1.4.5                               
    ip route-static 10.1.2.0 255.255.255.0 10.1.4.5  //Configure static routes on Router C.
    #  
    return 

  4. Configure hosts.

    Set the default gateway of hosts in VLAN 10 to 10.1.1.1, default gateway of hosts in VLAN 20 to 10.1.3.1, and default gateway of VLAN 30 to 10.1.2.1.

  5. Configure switches.

    Configure switches to allow hosts to communicate with their respective gateways.

  6. Verify the configuration.

    • Run the display ip routing-table command to view the IP routing table.
    • Run the ping command to verify the router connectivity.

Configuration Notes

  • Configure IPv4 addresses for routers' interfaces correctly.

  • Configure IP addresses on the same network segment for the interfaces connecting two routers together.

  • Configure default gateways for hosts.


  • x
  • convention:

user_2790689     Created Jan 15, 2017 00:10:02 Helpful(0) Helpful(0)

thank you
  • x
  • convention:

Reply

Reply
You need to log in to reply to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top