PDA

View Full Version : Adding Second IP


serverguy
2004-08-12, 20:46 PM
This is my first time setting up an additional ip in linux. I followed all of the steps in the following thread: http://forums.serverbeach.com/showthread.php?s=&threadid=3715 but then got stuck on the following post:

"It isn't hard at all to setup yourself. If you look in /etc/sysconfig/network-scripts, this is what you need to do:

Copy "ifcfg-eth0" to "ifcfg-eth0:0"

then edit "ifcfg-eth0:0" and change the DEVICE name to match; "eth0:0". Set the IPADDR and NETMASK to what serverbeach gave you and you're all set. Save the file and then do:
ifup eth0:0

The process is the same for any subsequent IPs, just use eth0:1, eth0:2 and so on. That's all it takes."

The part that doesn't work is the "ifup eth0:0 ". When I type it in I just get a 'command not found'. I am using PuTTY to access the server. Please let me know if I'm doing something wrong or if this is not an error on my part. Thank you.

rushman
2004-08-12, 22:33 PM
As root, or with sudo use /sbin/ifup . /sbin is probably just not in your path. If you have a control panel then you can probably add the second IP there instead

serverguy
2004-08-13, 17:38 PM
Thanks a lot! That did it. :)