05-01-2016 02:14 PM - edited 03-03-2019 08:12 AM
HI,
I am attempting to create static routes from R2 to the R1 simulated LAN (Loopback 1), the R1 Fa0/0-to-ASA subnet and the R3 LAN.
IP ADDRESS TABLE:
R1 - FA0/0 209.165.200.233 255.255.255.248
R1 - Lo1 172.20.1.1 255.255.255.0
R2 - S0/0/0 10.10.10.2 255.255.255.252
When I run a command R1(config) # " R2(config)# ip route 10.10.10.2 255.255.255.0 172.20.1.1
I'm getting an error: %Inconsistent address and mask
R1(config)#ip route 209.165.200.233 255.255.255.248 172.30.3
I'm getting an error: %Inconsistent address and mask
Thanks for you help
05-01-2016 08:55 PM
If you want to add a host route, then it should use a 32-bit mask (4th octet = 255). e.g.:
ip route 10.10.10.2 255.255.255.255 172.20.1.1
05-02-2016 11:02 AM
Thanks for you reply, not sure what I'm missing but can't ping R1 Lo 172.20.1.1 interface from R2.
05-01-2016 08:59 PM
You don't put the IP address of R2 serial interface in route only the network address, so command should be
ip route 10.10.10.0 255.255.255.0 172.20.1.1
Also you have a /24 in your route but a /30 on serial interface.
-Mike
05-02-2016 10:56 AM
Sorry, I have made a mistake providing incorrect sub net. When ip route 10.10.10.0 255.255.255.0 172.20.1.1 added, I'm not able to ping R1 Lo1 interface 172.20.1.1 from Router 2.
Thank You
05-02-2016 11:19 AM
Were missing some info here. These routers are not on same subnet so you will need routes to and from each router.
How are these 2 routers connected 1 through fast ethernet 1 through serial intrerfaces? Both have serial connection? Type command: sh ip route on R1 and R2 and copy output on here
05-02-2016 11:46 AM
05-02-2016 12:52 PM
First thing you want to do is verify that both s0/0/0 are on 10.10.10.X/30 subnet and they can ping each other. After that remove previous ip route command and add new route on R2:
no ip route 10.10.10.2 255.255.255.0 172.20.1.1
ip route 172.20.1.0 255.255.255.0 10.10.10.1
05-02-2016 10:59 AM
Sorry, I have provided incorrect sub net mask for R2 ip route command. when ip route 10.10.10.0 255.255.255.0 172.20.1.1 added, I'm not able to ping it from R2. Is there anything else needs to be configured?
Thank You
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide