Re: Multiple IP addresses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Will Twomey zei:
> I apologize if this is the wrong list, but...
>
> I would like to have several (3?) ip addresses on one interface (eth0,
> eth0:1, etc.), and forward each of those IP addresses to another
> interface (192.168.0.1, 192.168.1.1, 192.168.2.1, etc.)

What exactly do you mean? Do you want to send packets addressed to one of
those addresses to another ip? Or do you want to fake those addresses and
send them on to the machine that really has that address? Or do you want
to route packets not addressed to any of those addresses but based on the
address the previous router used as a next hop?

In the first case, just use DNAT. In the second case, create a static arp
entry and use normal routing rules. The third is not (easily) possible as
the packet that arrives just has the final IP destination and the MAC
address of eth0. Which is not enough information to figure out what IP was
used to route the packet.

Maybe you can explain better what you want to achieve?

M4





[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux