[LARTC] Aliases and Multipath

Damion de Soto damion@snapgear.com
Mon, 08 Dec 2003 10:37:21 +1000


Hi Guillermo,

> iptables just does not likes eth0:1 neither eth0:2, is this the right
> behaviour of iptables or what? i read something about NAT in advance
> routing engine but never used before and i'm little confuse on how it
> works. Will it crash with iptables NAT engine?
As far as I know, the ethX:X terminology is just for ifconfig usage.
Inside the kernel, eth0:1 is exactly the same as eth0.
So for iptables rules, you just use the eth0:1 IP address with eth0.
this is the same way the 'ip' tool works too.


Regards,
Damion.


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer  email:     damion@snapgear.com
SnapGear - A CyberGuard Company ---    ph:         +61 7 3435 2809
  | Custom Embedded Solutions          fax:         +61 7 3891 3630
  | and Security Appliances            web: http://www.snapgear.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ---  Free Embedded Linux Distro at   http://www.snapgear.org  ---