configuring statip IP routing table using loopbak address
Posted on 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):
ip address 192.168.1.1 255.255.255.0
ip address 10.10.10.1 255.255.255.0
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.