Re: Linux 802.1Q

Ben Greear <[email protected]>
Newsgroups gmane.linux.drivers.vlan
Organization Candela Technologies
Message-ID <[email protected]>
Parthasarathy Vivek-VPARTHA1 wrote:
> Hi,
>  
> I have two interfaces one Ethernet and one Vlan interface ( vid =0) on 
> the same IP address( 10.0.0.1)
>  
> If I get a packet with an IP address of 10.0.0.1 will it automatically 
> get routed to the Ethernet interface if there is no vlan in the packet? 
> Will the packet get automatically routed to the VLAN interface if the 
> packet has a VLAN tag and belongs to vid 0?

The packet will select the VLAN or eth0 device before any of the
IP protocol handlers get invoked.  It will go to the eth0 interface
if there is no VLAN header.  If it has a VLAN header, and that VLAN
exists (VID 0 or otherwise), then the packet will be received on
eth0 (as far as tcpdump, etc is concerned), but it will then also
be received on it's VLAN device.  Any higher level protocols on eth0
will not receive the packet.

Thanks,
Ben

>  
> Thanks
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Vlan mailing list
> [email protected]
> http://www.lanforge.com/mailman/listinfo/vlan


-- 
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.