LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Redhat Centos 5.2 - How to change subnet mask (https://www.linuxquestions.org/questions/linux-networking-3/redhat-centos-5-2-how-to-change-subnet-mask-686477/)

rust8y 11-26-2008 05:06 PM

Redhat Centos 5.2 - How to change subnet mask
 
I am running Redhat Centos 5.2
How do I change the subnet mask and also restart the network services ?

r3sistance 11-26-2008 05:20 PM

Redhat Centos 5.2... CentOS is heavily based/cloned/copied from RHEL but it's not run by Red Hat, infact I'd say it's a little bit of a thorn in Redhat's side.. however the simple way, if you have the base packages installed is to use the "setup" package to configuring the network, else wise you will have to manually edit the related file in /etc/sysconfig/network-scripts/ the file for eth0 would be ifcfg-eth0 and eth1 would be ifcfg-eth1, etc.

To restart the network you can either use "services network restart" (if your root) or if you have sudo, "sudo /etc/init.d/network restart".


All times are GMT -5. The time now is 09:23 AM.