LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   quick easy question (https://www.linuxquestions.org/questions/linux-networking-3/quick-easy-question-111326/)

alexr186 11-01-2003 10:57 PM

quick easy question
 
How do i change the ip on my red hat 9 linux box? Thanks

homey 11-02-2003 12:49 AM

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.

adz 11-02-2003 01:30 AM

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.

alexr186 11-02-2003 08:48 AM

thanks. That is just what i wanted.

LINUX RULES


All times are GMT -5. The time now is 07:02 PM.