Solved

configuring statip IP routing table using loopbak address

Posted on 2008-10-06
3
783 Views
Last Modified: 2008-10-06
I'm preparing for CCNA certification and I just began playing around with routers in GNS3 simulator.  I'm creating a simple network using 2 routers connected by GigaEthernet cable.  I've configured each routers to have an IP address and a loopback address.  I'm tring to create a static IP routing table.  Following is the commands that I have used to configure the router(R1):

hostname R1
interface g1/0
ip address 192.168.1.1 255.255.255.0
no shutdown
interface loopback0
ip address 10.10.10.1 255.255.255.0
no shutdown

I configure router (R2) in the same way using loopback - 172.20.100.1 and IP - 192.168.1.2
I do the show command and everything is in place and I do the same for router R2.
The following is the command that I'm entering to create the static routing table for R1:
ip route 172.20.100.1 255.255.255.0 192.168.1.2

When I enter, I get an error "Inconsistent address and mask".  I tried reversing the loopback address and the IP address and I get the same error.  What am I missin?
Thank you in advance.

0
Comment
Question by:elly960
  • 2
3 Comments
 
LVL 43

Accepted Solution

by:
JFrederick29 earned 50 total points
Comment Utility
Either enter this:

ip route 172.20.100.1 255.255.255.255 192.168.1.2

Or this:

ip route 172.20.100.0 255.255.255.0 192.168.1.2
0
 

Author Comment

by:elly960
Comment Utility
it worked.  Thank you.  But I wish I understood why I have to configure it like that.  
0
 

Author Comment

by:elly960
Comment Utility
JFrederick,
Can you please take a look at my other question "Configuring three routers with loopback address"?
Thank you so much for your help.

0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article is a guide to configure bridging on Cisco Routers.  This is something I never knew was possible until after making a few phone calls to Cisco.  Using bridging saved our company money by not requiring us to purchase a new switch.  Bridgi…
We've been using the Cisco/Linksys RV042 for years as: - an internet Gateway - a site-to-site VPN device - a leased line site-to-site subnet-to-subnet interface (And, here I'm assuming that any RV0xx behaves the same way as an RV042.  So that's …
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now