Incorrect netmask

Has managed the feat of entering the wrong value in the network configuration, the wrong netmask value and now I can not access the server either via the server panel or via SSH. I will access the server only through the server machine

Is there any way to solve this

Status: 
Active

Comments

Howdy -- where was that entered, out of curiosity, was that done within Webmin/Virtualmin, or from the command line?

However, if you can't access your server, you would need to correct the network settings by accessing the console of your server. If you log in at the console, you can then edit the network configuration.

There are details on the network setup on CentOS here:

https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s1-networkscript...

However, feel free to let us know if you have any questions.

LarsReimers's picture
Submitted by LarsReimers on Thu, 07/07/2016 - 10:40

It was that done within Webmin/Virtualmin. Is there any way to change this through the command line?

Yes, it can be done from the command line, by editing the file(s) mentioned in the URL above.

If your interface name is, for example, eth0 -- you would need to edit "/etc/sysconfig/network-scripts/ifcfg-eth0", and there you can update the network settings.

After that, restart the networking, or reboot, and you can then test to see if it's working properly.