Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 317
  • Last Modified:

Router won't take 16bit subnet on IP address assignment

This is a new config.  Can't get past the address assignement.

Why do the 8 bit and 24 bit subnet masks work but the 16 bit mask errors.

The IOS ver is a little old so I am going to update and see if that works but if you have other ideas please share them

IOS (tm) 2500 Software (C2500-I-L), Version 11.2(18)

router#
router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
router(config)#int e0
router(config-if)#ip address 97.0.1.3 255.255.0.0
Bad mask /16 for address 97.0.1.3
router(config-if)#ip address 97.0.1.3 255.0.0.0
router(config-if)#ip address 97.0.1.3 255.255.255.0
0
everythingbutthemoo
Asked:
everythingbutthemoo
  • 2
1 Solution
 
JFrederick29Commented:
Use the "ip classless" command, it is enabled by default in IOS versions 12.0 and higher but disabled by default in previous IOS's (like yours).

router(config)#ip classless
0
 
JFrederick29Commented:
Also, enable the following if not already:

router(config)#ip subnet-zero
0
 
Don JohnstonInstructorCommented:
You're trying to create an all zero's subnet. That's not allowed unless, like JFrederick mentions, you issue the "ip subnet-zero" command.

-Don
0
 
everythingbutthemooAuthor Commented:
Thanks, that worked.
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now