Koozali.org: home of the SME Server

more than one ip adress

Poul Erik Lovskov

more than one ip adress
« on: July 05, 2002, 01:08:05 AM »
Hi

Is it possible to assign more than one ip adress to one nic?

Crazy router configuration from an ISP in Denmark.

Anyone that has tried it?

Poul Erik

Darren

Re: more than one ip adress
« Reply #1 on: July 05, 2002, 12:24:13 PM »
http://forums.contribs.org/index.php?topic=4050.msg14017#msg14017

only trouble is read the last part  starts with
 "last you have to change the /etc/rc.d/init.d/masq file"

I don't know much about masq but i only needed it to work for a short time.
you will have to alter the templates for the masq file

Maybe someone else can help you with altering it

Bill Talcott

Re: more than one ip adress
« Reply #2 on: July 08, 2002, 06:10:48 PM »
Yes, it's quite easy. I have all three of our static IPs bound to our SME (since we don't have anything else to use them). /etc/sysconfig/network-scripts/ifcfg-eth1 or ifcfg-eth0 will contain the configuration for your NIC. Just copy it to ifcfg-eth1:0, then change the line in the file that has the IP address. Use ifcfg-eth1:1, ifcfg-eth1:2, ifcfg-eth1:3, etc. to add more addresses. Works great for me on 5.0b4, with no other changes.