cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

22452
Views
15
Helpful
4
Replies
Highlighted
Beginner

%Inconsistent address and mask

Our ISP has set up a modem at our location with the following IP and subnet:

ip 96.74.187.50

mask 255.255.255.252

I'm trying to put in an ip route to the next hop which is our firewall

switch> ip route 96.74.187.50 255.255.255.252 10.10.22.5

when I do this I get %inconsistent address and mask

We were given the ip and mask by our ISP. I'm a newbie and not sure how to fix this issue.

 

HELP!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Rising star

Re: %Inconsistent address and mask

Hi,

When you create static routes, you will need to enter the network ID (not the IP address assigned to your firewall) and the subnet mask. In your case, your network Id is 96.74.187.48. As a result, your static route should be:

ip route 96.74.187.48 255.255.255.252 10.10.22.5

 

HTH,

Meheretab

 

 

HTH,
Meheretab

View solution in original post

4 REPLIES 4
Highlighted
Rising star

Re: %Inconsistent address and mask

Hi,

When you create static routes, you will need to enter the network ID (not the IP address assigned to your firewall) and the subnet mask. In your case, your network Id is 96.74.187.48. As a result, your static route should be:

ip route 96.74.187.48 255.255.255.252 10.10.22.5

 

HTH,

Meheretab

 

 

HTH,
Meheretab

View solution in original post

Highlighted
Beginner

Re: %Inconsistent address and mask

Thank you Meheretab

Being a newbie I had to break it down into binary and came up with the network address in your post.

I knew I should have used it!

I spoke with a colleague and he told me that was wrong, so glad I posted here.

 

Thanks again.

Highlighted
Beginner

Re: %Inconsistent address and mask

por que?

Highlighted
Hall of Fame Guru

Re: %Inconsistent address and mask

The original attempt to configure a static route was ip route 96.74.187.50 255.255.255.252 10.10.22.5 

If we look at the mask of 255.255.255.252 this indicates a subnet of /30. And that means that the first 28 bits of the address represent the subnet and are significant while the last 4 bits of the address are host address bits and are not significant. But looking at the address in the route 96.74.187.50 we find that some of the host bits are not zero. So the address specified is inconsistent with the mask used.

 

HTH

Rick
CreatePlease to create content
Content for Community-Ad