cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2508
Views
10
Helpful
2
Replies

Inconsistent address and mask

fidelmartin3405
Level 1
Level 1

Hi, i have a trouble today i get errors like : %Inconsistent address and mask

 

i try to ip route 10.0.2.0 255.255.252.0 nexthop

i dont put next hop but that info was irrelevant

 

But dont work.

 

Any help?

1 Accepted Solution

Accepted Solutions

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello,

static route requires to use the subnet address when network mask is 255.255.252.0

the subnet address is:

10.0.0.0/22

the correct static route is :

ip route 10.0.0.0 255.255.252.0 <nexthop>

 

if you want to create a static route for 10.0.2.0/23 you need to use

ip route 10.0.2.0 255.255.254.0 <nexthop>

 

Hope to help

Giuseppe

 

View solution in original post

2 Replies 2

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello,

static route requires to use the subnet address when network mask is 255.255.252.0

the subnet address is:

10.0.0.0/22

the correct static route is :

ip route 10.0.0.0 255.255.252.0 <nexthop>

 

if you want to create a static route for 10.0.2.0/23 you need to use

ip route 10.0.2.0 255.255.254.0 <nexthop>

 

Hope to help

Giuseppe

 

Edwin Portillo
Spotlight
Spotlight

Hi my friend,

 

You are using the wrong mask for this case that is not inconsistent you must place:

Mask.PNG

 

Binary

 

binary.PNG

 

Network

 

red.PNG

 

Come on, you can are small things that help us grow.

 

Link: https://www.calculadora-redes.com/ipcalc.php