Re: Configure Virtual IP interfaces
Pietro Paolini <P.Paolini@ext.adbglobal.com> wrote:
> My goal is to simulate more than one IP interface using just a physical
> interface, for do that I tried using this alias - ifconfing ethX:1 <IP>
"ethX" is your real interface, yes?
> But when I try to send a packet over that interface I see the IP source
> the same as the original, and real, Ethernet interface.
It depends where you're trying to send it to.
Consider this addressing:
eth0 192.168.1.1
eth0:1 172.16.2.2
Then ping 172.16.2.4 will use 172.16.2.2 as source address, and ping
192.168.1.6 will use 192.168.1.1 as the source address.
Chris
Reply to: