On Thu, Oct 14, 2010 at 10:26 AM, Govi <[email protected]> wrote:
> Hi all,
>       I have one ethernet card(eth0) , with three ip address(2 aliases).
> When ever i am establishing a connection it was sending through eth0 only
> .incomming packets are receiving for all the ips.
>
> My questions all the outgoing packets are sent through eth0 only or i will
> sent through any one ip( eth0 , eth0:1 or eth0:2 ).
>

Your name? Govi or Govinda?

Anyway underlying your seemingly facile question are certain
deep technical topics.

If you configure 3 different IP addresses with different netmasks then
 they belong to different subnets/networks. But if you assign
the same netmask then of course the network is same.

But in all cases the packets always come out and come in thro'
the same physical eth0 interface.

You can however change the source IP of packets with the appropriate
switches if a particular command supports that. I am sure ping does.

I normally do not have any issue with which interface is chosen for
packet transfer.

And I do a lot of my dev work using IP aliasing. I use qemu and with that
I can get a lot of virtual interfaces for doing the sort of interface specific
 manipulation and monitoring that you want to do.

-Girish


-- 
Gayatri Hitech

http://gayatri-hitech.com
[email protected]
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to