ERROR: Not a proper net (20.20.20.6) for mask (255.255.255.0).

  • 0
  • 1
  • Question
  • Updated 4 weeks ago
  • Answered
  • (Edited)
 Hello, I have a problem with static route on extreme summit x450a, when I try to add a static route I see error message ( ERROR: Not a proper net (20.20.20.6) for mask (255.255.255.0)). I type a command : configure iproute add 20.20.20.6/24 20.20.20.1. Please tell me where I wrong .
Thanks in advance
Photo of Svetoslav Stoykov

Svetoslav Stoykov

  • 80 Points 75 badge 2x thumb

Posted 4 weeks ago

  • 0
  • 1
Photo of Alexandr P

Alexandr P, Embassador

  • 12,670 Points 10k badge 2x thumb
Hello!

I think it's because net have to be 20.20.20.0/24
20.20.20.6 - it's host address from that net.

If you start calculate from
00010100.00010100.00010100.00000110
but not from 
00010100.00010100.00010100.00000000
you wouldn't have 254 hosts - what mean 24 mask.

Thank you!
Photo of Svetoslav Stoykov

Svetoslav Stoykov

  • 80 Points 75 badge 2x thumb
Hello Aleksander,
Thanks for the help.
Regards
Photo of Nick Yakimenko

Nick Yakimenko

  • 2,488 Points 2k badge 2x thumb
Why don't you follow rfc1918? Or you obey real ip-s 20.20.20.0/24?