2 .\" Copyright (c) 2001 Yar Tikhiy
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" $FreeBSD: src/share/man/man4/vlan.4,v 1.1.2.6 2002/08/30 11:53:56 yar Exp $
27 .\" $DragonFly: src/share/man/man4/vlan.4,v 1.12 2008/03/16 17:44:24 swildner Exp $
34 .Nd IEEE 802.1Q VLAN network interface
36 .Cd pseudo-device vlan Op Ar count
41 driver demultiplexes frames tagged according to
42 the IEEE 802.1Q standard into logical
44 network interfaces, which allows routing/bridging between
45 multiple VLANs through a single switch trunk port.
49 interface is created at runtime using interface cloning.
51 most easily done with the
61 interface must be assigned a parent interface and
62 numeric VLAN tag using
64 A single parent can be assigned to multiple
66 interfaces provided they have different tags.
67 The parent interface is likely to be an ethernet card connected
68 to a properly configured switch port.
69 The VLAN tag should match one of those set up in the switched
74 driver supports efficient operation over parent interfaces that can provide
75 help in processing VLANs.
76 Such interfaces are automatically recognized by their capabilities.
77 Depending on the level of sophistication found in a physical
78 interface, it may do full VLAN processing or just be able to
79 receive and transmit frames exceeding the maximum Ethernet frame size
80 by the length of a 802.1Q header.
81 The capabilities may be user-controlled by the respective parameters to
86 However, a physical interface is not obliged to react to them:
87 It may have either capability enabled permanently without
89 The whole issue is very specific to a particular device and its driver.
91 .Ss "Selecting the Right Network Interface Card to Run VLANs Through"
92 By now, the only NICs that have both hardware support and proper
93 driver hooks for the 802.1Q VLAN technology in
109 The rest of the ethernet NICs supported by
112 VLANs using software emulation in the
115 However, most of them lack the capability
116 of transmitting and/or receiving oversized frames.
117 Using such a NIC as a parent interface
118 implies a reduced MTU on the corresponding
121 In the modern Internet, this is likely to cause
123 connectivity problems due to massive, inadequate
125 filtering that breaks the Path MTU Discovery mechanism.
127 The NICs that support oversized frames are as follows:
128 .Bl -tag -width ".Xr fxp 4 " -offset indent
130 supports long frames for
137 .Pa /sys/dev/netif/de/if_de.c
138 source file and rebuilding the kernel.
139 The hack works only for the 21041, 21140, and 21140A chips.
141 supports long frames for
145 supports long frames for
149 supports long frames for
153 supports long frames for
157 has support for long frames.
159 supports long frames for
163 supports long frames only if the card is built on a newer chip
168 Unless marked as having native support for
170 the above drivers don't inform the
172 driver about their long frame handling capability.
173 Just increase the MTU of a
175 interface if it appears to be lower than 1500 bytes after
176 attaching to a parent known to support long frames.
180 No 802.1Q features except VLAN tagging are implemented.