route error

Unanswered Question
Jan 21st, 2009

getting error on adding route pls. guide

network to route 172.0.0.0/17

TTT(config)#ip route 172.0.0.0 255.255.108.0 192.168.5.98

%Inconsistent address and mask

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Elly Bornstein Wed, 01/21/2009 - 21:55

Only wildcard masks can change to be a non-consecutive bit pattern.

Subnet masks need a mask with consecutive bits:

valid binary subnet mask:

11111111.11111111.1111111.00000000

invalid subnet mask:

01010101.11010111.1111111.01111000

You have 255.255.108.0

Which is:

11111111.11111111.01101100.0000000

Correct mask for a /17 network is:

255.255.128.0

Probably just a minor typo.

Giuseppe Larosa Wed, 01/21/2009 - 23:38

Hello,

for /17 the right mask is 255.255.128.0

use

ip route 172.0.0.0 255.255.128.0 192.168.5.98

you have just mistyped

Hope to help

Giuseppe

Actions

This Discussion