2

When statically routing a route in the format [destination network address] [mask] [next hop address or interface name], I get the Inconsistent Address and mask error. Any assistance would be appreciated.

Network address:10.10.233.0
Mask: 255.255.254.0 (fitted to suit 300 host )
Hop address: 10.10.235.162

Ron Maupin
  • 102,040
  • 26
  • 123
  • 202
IT ken
  • 21
  • 1
  • 1
  • 3

1 Answers1

3

That would be correct. If you mask the address you think is the network's address with the network mask, you get a different, real network address.

Address   10.10.233.0 = 00001010000010101110100100000000
Mask    255.255.254.0 = 11111111111111111111111000000000
                 AND    ================================
Network                 00001010000010101110100000000000 = 10.10.232.0

The network is from 10.10.232.0 to 10.10.233.255.255.

You must do IP math in binary, then it makes sense, and otherwise you make mistakes. See this excellent answer for how to do that.

With that mask (255.255.254.0), that address (10.10.233.0) is not a network address, it is a host address on a different network (10.10.232.0).

Ron Maupin
  • 102,040
  • 26
  • 123
  • 202