Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-26-2008, 05:06 PM   #1
Registered: May 2006
Posts: 100

Rep: Reputation: 15
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 ?
Old 11-26-2008, 05:20 PM   #2
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
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".

Last edited by r3sistance; 11-26-2008 at 05:21 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is Subnet Mask? cousinlucky Linux - Networking 21 10-17-2007 11:08 AM
Subnet Mask with 1 IP. Ionized Linux - Networking 25 06-10-2007 12:20 AM
Subnet Mask jomyjose Linux - Networking 2 08-01-2006 09:19 AM
subnet mask kizersouzay Linux - Networking 1 08-31-2005 03:07 PM
Subnet mask mikeshn Linux - Networking 1 08-26-2002 01:19 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration