CentOS 7 - Network unreachable for Class A or B subnets


With initial IP setup not able to route IP traffic for subnets not the default /24 (


From command line run through the following:

edit ifcfg for adapter (example: ifcfg-ens192 )

vi /etc/sysconfig/network-scripts/ifcfg-ens192

edit PREFIX="24" to correct slash notation 

Subnet Mask

CIDR Prefix




then save and restart network services 


found PREFIX='24' defaulting the NIC setup to subnet regardless of assignment in dpuconfig or UI eth assignments. 

User-added image

Have more questions?

Contact us

Was this article helpful?
0 out of 0 found this helpful

Provide feedback for the Documentation team!

Browse this section