> I need to change the ip address and subnet mask on a linux box running
> Red Hat v2.0.34. There is no GUI so I need the command line commands.
Huh, that is a pretty old kernel even for 2.0.x.
Consider upgrading to the latest 2.0.x kernel.
The way to change is through the ifconfig command. man ifconfig.
First bring down the interface you wish to change the associated IP
address, then reassign an IP address to it. In the following examples,
I use the most probable eth0 interface (the first ethernet card),
but you might have to change it.
ifconfig # figure out your if, like eth0
ifconfig eth0 down # detach the IP address from the interface
ifconfig eth0 126.96.36.199 # attach a new interface
If the change is permanent, then find the config file for the
interface in /etc/sysconfig/network-scripts/ifcfg-eth0 (for eth0)
and edit it. After, bring down the interface and bring it up again.
/sbin/ifdown eth0; /sbin/ifup eth0
Quote:> Any help would be appreciated. Also, is it true this can be
> accomplished without rebooting the system?
As you can see, yes. Under Linux you generally need to reboot the
machine if you add new hardware (inserting a floppy doesn't count),
install a new kernel, or power failure.