LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-26-2008, 05:06 PM   #1
rust8y
Member
 
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
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

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


Reply


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


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

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