cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6639
Views
5
Helpful
8
Replies

inconsistent address & mask

chumaziy1
Level 1
Level 1

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

8 Replies 8

Marvin Rhoads
Hall of Fame
Hall of Fame

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 

Thanks for you reply, not sure what I'm missing but can't ping R1 Lo 172.20.1.1 interface from R2.

mpellegrino12
Level 1
Level 1

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

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

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

Here is document with topology and addresses

Thanks

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

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

Review Cisco Networking for a $25 gift card