Koozali.org: home of the SME Server

IP Aliasing

Bob Jenner

IP Aliasing
« on: July 30, 2001, 11:46:15 AM »
I have tried, but I guess I am missing something.

Here is what I need to do:

I have a number of legal IP addresses that I want to alias to the external interface of e-smith. I have copied the ifcfg-eth1 to ifcfg-eth1a - d and edited the device & ip addresses of the files. I have restarted the server, and I can not "see"
 the addresses (from the outside). What else am I missing?

Also, when I write my ipmasqadm portfw rules, where do I save them so they will be used each time the server is booted ?

Thanks in advance,

Bob

Bart/K

Re: IP Aliasing
« Reply #1 on: July 30, 2001, 07:17:02 PM »
Hi Bob,

If you can see (ping :) ) the interface from the inside, but not from the
outside, it could be a routing-problem, or maybe you assigned the aliases to the internal interface (standard = eth0) instead of to the external interface.
You can check the mode using the command
   /sbin/e-smith/config show EthernetAssign
It reports normal (eth1=external) or swapped (eth0=external)

For the *external* interface, in normal (not swapped) mode, use ifconfig eth1:1 for the first alias-interface, ifconfig eth1:2 for the second alias, etc.

When using scripts, copy the /etc/sysconfig/network-scripts/ifcfg-eth1 to /etc/sysconfig/network-scripts/ifcfg-eth1:1

(should ifcfg-eth1a work too? dunno )

Change the contents of ifcfg-eth1:1 to suit your needs.
After that, a 'service network restart' should do the job, really.

BTW, If you want to assign more aliases (e.g. a range of IP-numbers) at once
to one interface, take a look at the contents of the script
/etc/sysconfig/network-scripts/ifup-aliases. It's all explained in there.