cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
856
Views
0
Helpful
4
Replies

Static Routing

victor chirchir
Level 1
Level 1

Design all private IP addresses to use the 10.11.0.0/16
subnet. All private IP addresses must be in the range 10.11.0.1-10.11.255.254. Change all public IP addresses to use the 20.11.0.0/16 subnet. All public addresses must be in the range 20.11.0.1-20.11.255.254.

 

Router(config)#ip route 10.11.3.0 255.255.0.0 20.11.2.2

%Inconsistent address and mask

4 Replies 4

Hello,

 

The address you provided is  a host address in that /16 network. The way a static route is set up is like this:

 

ip route 10.11.3.0 255.255.0.0 20.11.2.2 <- the bold is the network you're trying to reach and the 20.11.2.2 is the next hop (hopefully in your configuration)

 

The 10.11.3.0 you put is a valid host address in the 10.11.0.0./16 network. To change it you would need the statement to read:

 

ip route 10.11.0.0 255.255.0.0 20.11.2.2

 

Hope that helps

 

-David

Tried this but still cannot communicate.

 

Were you able to add the command as I set out without errors? Only that specific issue would have been solved with my statement. The issue you posed just stated it gave you that error when putting in an IP route statement, not about communication. If you need further troubleshooting can you provide a diagram and IP addressing and state what you are trying to accomplish?

 

-David

Richard Burts
Hall of Fame
Hall of Fame

The inconsistency is that the mask you use in the static route 255.255.0.0 says that the first and second octet in the address must match and that the third and fourth octet can be anything. But in the address you configure in the route you specify a particular value in the third octet. To resolve this you need to either change the mask to 255.255.255.0 or you need to change the address to 10.11.0.0.

HTH

Rick