[VLAN] Two VLANs with same IP

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

 



The problem was solved using SO_BINDTODEVICE to both VLANs, thanks.
  
Ben Greear <greearb@xxxxxxxxxxxxxxx> escreveu:
  Ard van Breemen wrote:
> On Tue, May 02, 2006 at 11:06:49AM -0300, Rui Cristo wrote:
> 
>>I have a problem to solve that is to create two VLANs, like
>>vlan10 and vlan20, and make them have the SAME IP address and I
>>want to create sockets for each. How can I bind the sockets to
>>each VLAN instead of binding them to its IP? If I bind with
>>it's IP I can't control wich VLAN to choose.
> 
> 
> IP binding is done on a system level. So it really doesn't matter
> if your IP is on lo or vlan*...

You can actually tweak this by using policy-based routing and binding
to local IP and/or devices with sock-opts, and messing with the
/proc/sys/net/arp filter logic..but it takes a bit of work.

Ben

-- 
Ben Greear 
Candela Technologies Inc http://www.candelatech.com

_______________________________________________
Vlan mailing list
Vlan@xxxxxxxxxxxxxxx
http://www.lanforge.com/mailman/listinfo/vlan


		
---------------------------------
 Yahoo! Search
 Imposto de Renda 2006: o prazo est? acabando. Fa?a j? a sua declara??o no site da Receita Federal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.candelatech.com/pipermail/vlan/attachments/20060503/8fe08c80/attachment.htm

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux