cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
551
Views
0
Helpful
2
Replies

route error

blue4cisco
Level 1
Level 1

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 2

Elly Bornstein
Cisco Employee
Cisco Employee

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
Hall of Fame
Hall of Fame

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

Review Cisco Networking for a $25 gift card