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

Inconsistent address and mask

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?

Everyone's tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Expert

Re: Inconsistent address and mask

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

 

2 REPLIES 2
Hall of Fame Expert

Re: Inconsistent address and mask

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

 

Beginner

Re: Inconsistent address and mask

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

CreatePlease to create content
Content for Community-Ad