Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Amending a netmask

Status
Not open for further replies.

columb

IS-IT--Management
Feb 5, 2004
1,231
EU
I have a server running Redhat ES4. I need to change the netmask on eth0 from 24 bit to 23 bit.

I intend to use the GUI, or would you recomment
Code:
ifconfig netmask 255.255.254.0 eth0
from a command line

My main question is do I need to do anything else (bounce the server, restart the card?) to make the changes live.

Thanks

Ceci n'est pas une signature
Columb Healy
 
Since it's RedHat, I'd su to root and run...
service network restart

It only takes a few seconds.
Mark
 
To make the changes permanent the /etc/sysconfig/network-scripts/ifcfg-ifname file needs to be updated with the new netmask, however if you use the GUI it should do this for you.

Annihilannic.
 
Thanks guys, I'll do both.

Ceci n'est pas une signature
Columb Healy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top