Link to home
Start Free TrialLog in
Avatar of elly960
elly960

asked on

configuring statip IP routing table using loopbak address

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.

ASKER CERTIFIED SOLUTION
Avatar of JFrederick29
JFrederick29
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of elly960
elly960

ASKER

it worked.  Thank you.  But I wish I understood why I have to configure it like that.  
Avatar of elly960

ASKER

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