quick easy question
How do i change the ip on my red hat 9 linux box? Thanks
|
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. |
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.
|
thanks. That is just what i wanted.
LINUX RULES |
All times are GMT -5. The time now is 07:02 PM. |