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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IP and Gateway change 1

Status
Not open for further replies.

rankar

IS-IT--Management
Jul 30, 2001
60
US
I have a new server with Red Hat 7.2, I have tried to set the IP and gateway addresses. When I used the ifconfig command it appeared to make the the changes, but after a reboot all the changes were gone. This is what I did:

ifconfig eth0 555.555.5.55 netmask 255.000.000.0 <enter>

route add default gw 222.22.222.2 <enter>

Any help would be welcomed
Thanks,
RG
 
I generally just edit the config files.

The default gateway is set in /etc/sysconfig/network

The IP address, subnet, etc are set in /etc/sysconfig/network-scripts/ifcfg-eth[0|1|2|...]

Restart the network after making the changes. ______________________________________________________________________
TANSTAAFL!
 
Thanks for your help, it worked like a charm!!

RG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top