186d7f5d3SJohn Marino.\" 286d7f5d3SJohn Marino.\" Copyright (c) 2001 Yar Tikhiy 386d7f5d3SJohn Marino.\" All rights reserved. 486d7f5d3SJohn Marino.\" 586d7f5d3SJohn Marino.\" Redistribution and use in source and binary forms, with or without 686d7f5d3SJohn Marino.\" modification, are permitted provided that the following conditions 786d7f5d3SJohn Marino.\" are met: 886d7f5d3SJohn Marino.\" 1. Redistributions of source code must retain the above copyright 986d7f5d3SJohn Marino.\" notice, this list of conditions and the following disclaimer. 1086d7f5d3SJohn Marino.\" 2. Redistributions in binary form must reproduce the above copyright 1186d7f5d3SJohn Marino.\" notice, this list of conditions and the following disclaimer in the 1286d7f5d3SJohn Marino.\" documentation and/or other materials provided with the distribution. 1386d7f5d3SJohn Marino.\" 1486d7f5d3SJohn Marino.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1586d7f5d3SJohn Marino.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1686d7f5d3SJohn Marino.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1786d7f5d3SJohn Marino.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1886d7f5d3SJohn Marino.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1986d7f5d3SJohn Marino.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2086d7f5d3SJohn Marino.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2186d7f5d3SJohn Marino.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2286d7f5d3SJohn Marino.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2386d7f5d3SJohn Marino.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2486d7f5d3SJohn Marino.\" SUCH DAMAGE. 2586d7f5d3SJohn Marino.\" 2686d7f5d3SJohn Marino.\" $FreeBSD: src/share/man/man4/vlan.4,v 1.1.2.6 2002/08/30 11:53:56 yar Exp $ 2786d7f5d3SJohn Marino.\" $DragonFly: src/share/man/man4/vlan.4,v 1.13 2008/07/27 12:02:51 swildner Exp $ 2886d7f5d3SJohn Marino.\" 2986d7f5d3SJohn Marino.Dd July 25, 2001 3086d7f5d3SJohn Marino.Dt VLAN 4 3186d7f5d3SJohn Marino.Os 3286d7f5d3SJohn Marino.Sh NAME 3386d7f5d3SJohn Marino.Nm vlan 3486d7f5d3SJohn Marino.Nd IEEE 802.1Q VLAN network interface 3586d7f5d3SJohn Marino.Sh SYNOPSIS 3686d7f5d3SJohn Marino.Cd pseudo-device vlan Op Ar count 3786d7f5d3SJohn Marino.\" 3886d7f5d3SJohn Marino.Sh DESCRIPTION 3986d7f5d3SJohn MarinoThe 4086d7f5d3SJohn Marino.Nm 4186d7f5d3SJohn Marinodriver demultiplexes frames tagged according to 4286d7f5d3SJohn Marinothe IEEE 802.1Q standard into logical 4386d7f5d3SJohn Marino.Nm 4486d7f5d3SJohn Marinonetwork interfaces, which allows routing/bridging between 4586d7f5d3SJohn Marinomultiple VLANs through a single switch trunk port. 4686d7f5d3SJohn Marino.Pp 4786d7f5d3SJohn MarinoEach 4886d7f5d3SJohn Marino.Nm 4986d7f5d3SJohn Marinointerface is created at runtime using interface cloning. 5086d7f5d3SJohn MarinoThis is 5186d7f5d3SJohn Marinomost easily done with the 5286d7f5d3SJohn Marino.Xr ifconfig 8 5386d7f5d3SJohn Marino.Cm create 5486d7f5d3SJohn Marinocommand or using the 5586d7f5d3SJohn Marino.Va cloned_interfaces 5686d7f5d3SJohn Marinovariable in 5786d7f5d3SJohn Marino.Xr rc.conf 5 . 5886d7f5d3SJohn Marino.Pp 5986d7f5d3SJohn MarinoTo function, a 6086d7f5d3SJohn Marino.Nm 6186d7f5d3SJohn Marinointerface must be assigned a parent interface and 6286d7f5d3SJohn Marinonumeric VLAN tag using 6386d7f5d3SJohn Marino.Xr ifconfig 8 . 6486d7f5d3SJohn MarinoA single parent can be assigned to multiple 6586d7f5d3SJohn Marino.Nm 6686d7f5d3SJohn Marinointerfaces provided they have different tags. 6786d7f5d3SJohn MarinoThe parent interface is likely to be an ethernet card connected 6886d7f5d3SJohn Marinoto a properly configured switch port. 6986d7f5d3SJohn MarinoThe VLAN tag should match one of those set up in the switched 7086d7f5d3SJohn Marinonetwork. 7186d7f5d3SJohn Marino.Pp 7286d7f5d3SJohn MarinoThe 7386d7f5d3SJohn Marino.Nm 7486d7f5d3SJohn Marinodriver supports efficient operation over parent interfaces that can provide 7586d7f5d3SJohn Marinohelp in processing VLANs. 7686d7f5d3SJohn MarinoSuch interfaces are automatically recognized by their capabilities. 7786d7f5d3SJohn MarinoDepending on the level of sophistication found in a physical 7886d7f5d3SJohn Marinointerface, it may do full VLAN processing or just be able to 7986d7f5d3SJohn Marinoreceive and transmit frames exceeding the maximum Ethernet frame size 8086d7f5d3SJohn Marinoby the length of a 802.1Q header. 8186d7f5d3SJohn MarinoThe capabilities may be user-controlled by the respective parameters to 8286d7f5d3SJohn Marino.Xr ifconfig 8 , 8386d7f5d3SJohn Marino.Cm vlanhwtag 8486d7f5d3SJohn Marinoand 8586d7f5d3SJohn Marino.Cm vlanmtu . 8686d7f5d3SJohn MarinoHowever, a physical interface is not obliged to react to them: 8786d7f5d3SJohn MarinoIt may have either capability enabled permanently without 8886d7f5d3SJohn Marinoa way to turn it off. 8986d7f5d3SJohn MarinoThe whole issue is very specific to a particular device and its driver. 9086d7f5d3SJohn Marino.\" 9186d7f5d3SJohn Marino.Ss "Selecting the Right Network Interface Card to Run VLANs Through" 9286d7f5d3SJohn MarinoBy now, the only NICs that have both hardware support and proper 9386d7f5d3SJohn Marinodriver hooks for the 802.1Q VLAN technology in 9486d7f5d3SJohn Marino.Dx 9586d7f5d3SJohn Marinoare 9686d7f5d3SJohn Marino.Xr bce 4 , 9786d7f5d3SJohn Marino.Xr bge 4 , 9886d7f5d3SJohn Marino.Xr em 4 , 9986d7f5d3SJohn Marino.Xr jme 4 , 10086d7f5d3SJohn Marino.\".Xr msk 4 , 10186d7f5d3SJohn Marino.Xr nfe 4 , 10286d7f5d3SJohn Marino.Xr nge 4 , 10386d7f5d3SJohn Marino.Xr re 4 , 10486d7f5d3SJohn Marino.Xr stge 4 , 10586d7f5d3SJohn Marino.Xr ti 4 , 10686d7f5d3SJohn Marino.Xr txp 4 , 10786d7f5d3SJohn Marinoand 10886d7f5d3SJohn Marino.Xr vge 4 . 10986d7f5d3SJohn Marino.Pp 11086d7f5d3SJohn MarinoThe rest of the ethernet NICs supported by 11186d7f5d3SJohn Marino.Dx 11286d7f5d3SJohn Marinocan run 11386d7f5d3SJohn MarinoVLANs using software emulation in the 11486d7f5d3SJohn Marino.Nm 11586d7f5d3SJohn Marinodriver. 11686d7f5d3SJohn MarinoHowever, most of them lack the capability 11786d7f5d3SJohn Marinoof transmitting and/or receiving oversized frames. 11886d7f5d3SJohn MarinoUsing such a NIC as a parent interface 11986d7f5d3SJohn Marinoimplies a reduced MTU on the corresponding 12086d7f5d3SJohn Marino.Nm 12186d7f5d3SJohn Marinointerfaces. 12286d7f5d3SJohn MarinoIn the modern Internet, this is likely to cause 12386d7f5d3SJohn Marino.Xr tcp 4 12486d7f5d3SJohn Marinoconnectivity problems due to massive, inadequate 12586d7f5d3SJohn Marino.Xr icmp 4 12686d7f5d3SJohn Marinofiltering that breaks the Path MTU Discovery mechanism. 12786d7f5d3SJohn Marino.Pp 12886d7f5d3SJohn MarinoThe NICs that support oversized frames are as follows: 12986d7f5d3SJohn Marino.Bl -tag -width ".Xr fxp 4 " -offset indent 13086d7f5d3SJohn Marino.It Xr dc 4 13186d7f5d3SJohn Marinosupports long frames for 13286d7f5d3SJohn Marino.Nm 13386d7f5d3SJohn Marinonatively. 13486d7f5d3SJohn Marino.It Xr de 4 13586d7f5d3SJohn Marinorequires defining 13686d7f5d3SJohn Marino.Dv BIG_PACKET 13786d7f5d3SJohn Marinoin the 13886d7f5d3SJohn Marino.Pa /sys/dev/netif/de/if_de.c 13986d7f5d3SJohn Marinosource file and rebuilding the kernel. 14086d7f5d3SJohn MarinoThe hack works only for the 21041, 21140, and 21140A chips. 14186d7f5d3SJohn Marino.It Xr et 4 14286d7f5d3SJohn Marinosupports long frames for 14386d7f5d3SJohn Marino.Nm 14486d7f5d3SJohn Marinonatively. 14586d7f5d3SJohn Marino.It Xr fxp 4 14686d7f5d3SJohn Marinosupports long frames for 14786d7f5d3SJohn Marino.Nm 14886d7f5d3SJohn Marinonatively. 14986d7f5d3SJohn Marino.It Xr sis 4 15086d7f5d3SJohn Marinosupports long frames for 15186d7f5d3SJohn Marino.Nm 15286d7f5d3SJohn Marinonatively. 15386d7f5d3SJohn Marino.It Xr ste 4 15486d7f5d3SJohn Marinosupports long frames for 15586d7f5d3SJohn Marino.Nm 15686d7f5d3SJohn Marinonatively. 15786d7f5d3SJohn Marino.It Xr tl 4 15886d7f5d3SJohn Marinohas support for long frames. 15986d7f5d3SJohn Marino.It Xr tx 4 16086d7f5d3SJohn Marinosupports long frames for 16186d7f5d3SJohn Marino.Nm 16286d7f5d3SJohn Marinonatively. 16386d7f5d3SJohn Marino.It Xr xl 4 16486d7f5d3SJohn Marinosupports long frames only if the card is built on a newer chip 16586d7f5d3SJohn Marino(Cyclone and above). 16686d7f5d3SJohn Marino.El 16786d7f5d3SJohn Marino.Pp 16886d7f5d3SJohn MarinoNote: 16986d7f5d3SJohn MarinoUnless marked as having native support for 17086d7f5d3SJohn Marino.Nm , 17186d7f5d3SJohn Marinothe above drivers don't inform the 17286d7f5d3SJohn Marino.Nm 17386d7f5d3SJohn Marinodriver about their long frame handling capability. 17486d7f5d3SJohn MarinoJust increase the MTU of a 17586d7f5d3SJohn Marino.Nm 17686d7f5d3SJohn Marinointerface if it appears to be lower than 1500 bytes after 17786d7f5d3SJohn Marinoattaching to a parent known to support long frames. 17886d7f5d3SJohn Marino.Sh SEE ALSO 17986d7f5d3SJohn Marino.Xr ifconfig 8 18086d7f5d3SJohn Marino.Sh BUGS 18186d7f5d3SJohn MarinoNo 802.1Q features except VLAN tagging are implemented. 182