Web Hosting Talk







View Full Version : Multiple Ip address's?


magicforthesoul
08-07-2004, 04:02 PM
Hi, does anyone know how to get multiple Ip address's for one linux computer? If you can help me, that would be awesome. Thanks.

- Donovan

Jakiao
08-07-2004, 05:37 PM
Hey, first off you would need to contact your ISP and ask for them to give you multiple static IP addresses.

To permanently add the IP to your comp, change to /etc/sysconfig/network-scripts and make files for each IP address. On your eth0, you should have ifcfg-eth0. Make a second file

pico /etc/sysconfig/network-scripts/ifcfg-eth0:1


BOOTPROTO=none
GATEWAY=gateway_ip
DEVICE=eth0
MTU=""
NETMASK=255.255.255.0
BROADCAST=""
IPADDR=ip_address
NETWORK=network_address
ONBOOT=yes

The gateway should be the IP of your router. The network IP should be like the following:

If you IP is: 111.111.111.153, the network is 111.111.111.0.

I hope this helps.

Veghost
08-07-2004, 07:19 PM
I think it's the wrong forum.

sehe
08-08-2004, 06:37 AM
try http://www.tldp.org/HOWTO/Net-HOWTO/x1227.html