View the Most Wanted LQ Wiki articles.
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-01-2003, 11:57 PM   #1
Registered: Jul 2003
Location: Maine, USA
Distribution: Suse 9.1 Pro
Posts: 122

Rep: Reputation: 15
quick easy question

How do i change the ip on my red hat 9 linux box? Thanks
Old 11-02-2003, 01:49 AM   #2
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 58
As with most things in linux, there are several ways to change the ip address.
The command: redhat-config-network brings up a GUI tool. Under the Devices tab, you can Edit eth0 or whichever eth[?] you have.

You could type the command:
/sbin/ifconfig -a eth0 netmask
Note: change the numbers to suit yourself.

You could edit the /etc/sysconfig/network-scripts/ifcfg-eth0
Note: that's in Redhat 9. Maybe different for other distros.
Old 11-02-2003, 02:30 AM   #3
Senior Member
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Is this on your local network? If it's NOT the gateway and you're NOT using DHCP you can type ifconfig eth0 down. Then ifconfig eth0 up <IP address>. This will change it for you but a reboot will restore original settings.

Last edited by adz; 11-02-2003 at 09:36 PM.
Old 11-02-2003, 09:48 AM   #4
Registered: Jul 2003
Location: Maine, USA
Distribution: Suse 9.1 Pro
Posts: 122

Original Poster
Rep: Reputation: 15
thanks. That is just what i wanted.



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
Very Easy Quick Question From an Newbie. Anthony1uk Linux - Newbie 2 06-08-2005 01:34 PM
Quick 'n' easy question! orange400 Linux - General 6 09-09-2004 11:36 PM
Quick Question....Easy Answer iammike Linux - Software 2 08-22-2004 02:09 PM
Really quick and easy question libranikki Linux - Newbie 2 08-05-2004 08:54 PM
quick easy kernel question Basslord1124 Linux - Newbie 2 07-06-2004 04:38 PM

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

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