Solved

configuring statip IP routing table using loopbak address

Posted on 2008-10-06
3
793 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
ID: 22653564
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
ID: 22655972
it worked.  Thank you.  But I wish I understood why I have to configure it like that.  
0
 

Author Comment

by:elly960
ID: 22656318
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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DHCP and Internet Access Issue Cisco 4331 Router 9 43
VirtualBOX on GNS3 11 135
Some issue on SecurityCRT 5 33
Cisco EIGRP Network 6 25
In the hope of saving someone else's sanity... About a year ago we bought a Cisco 1921 router with two ADSL/VDSL EHWIC cards to load balance local network traffic over the two broadband lines we have, but we couldn't get the routing to work consi…
Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
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…

829 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