Ask the Community
Groups
CentOS 7 - Network unreachable for Class A or B subnets - Connect IT Community | Kaseya
<main> <article class="userContent"> <h2 data-id="issue"><strong>ISSUE</strong></h2> <p>With initial IP setup not able to route IP traffic for subnets not the default /24 (255.255.255.0)</p> <h2 data-id="resolution"><strong>RESOLUTION</strong></h2> <p></p> <p>From command line run through the following:<br><br>edit ifcfg for adapter (example: ifcfg-ens192 )</p> <p>vi /etc/sysconfig/network-scripts/ifcfg-ens192</p> <p>edit PREFIX="24" to correct slash notation </p> <table border="1"><tbody><tr><td colspan="1" rowspan="1"> <p>Subnet Mask</p> </td> <td colspan="1" rowspan="1"> <p>CIDR Prefix</p> </td> </tr><tr><td colspan="1" rowspan="1"> <p>255.255.255.0</p> </td> <td colspan="1" rowspan="1"> <p>/24</p> </td> </tr><tr><td colspan="1" rowspan="1"> <p>255.255.0.0</p> </td> <td colspan="1" rowspan="1"> <p>/16</p> </td> </tr><tr><td colspan="1" rowspan="1"> <p>255.0.0.0</p> </td> <td colspan="1" rowspan="1"> <p>/8</p> </td> </tr></tbody></table><p>then save and restart network services </p> <h2 data-id="cause"><strong>CAUSE</strong></h2> <p>found PREFIX='24' defaulting the NIC setup to subnet 255.255.255.0 regardless of assignment in dpuconfig or UI eth assignments. <br><br><br><img alt="User-added image" src="https://us.v-cdn.net/6032361/uploads/migrated/90DBWPE16I2W/eid-ka01w000000g1ig-feoid-00n40000003czqc-refid-0em1w000000hc6i." class="embedImage-img importedEmbed-img"></img></p> </article> </main>