Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

route error

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

2 REPLIES
Cisco Employee

Re: route error

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.

Hall of Fame Super Silver

Re: route error

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

206
Views
0
Helpful
2
Replies