LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-01-2003, 10:57 PM   #1
alexr186
Member
 
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, 12:49 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
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 192.168.0.10 netmask 255.255.255.0
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, 01:30 AM   #3
adz
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 08:36 PM.
 
Old 11-02-2003, 08:48 AM   #4
alexr186
Member
 
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.

LINUX RULES
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration