1 .\" $NetBSD: vlan.4,v 1.29 2008/04/30 13:10:55 martin Exp $
3 .\" Copyright (c) 2000 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
7 .\" by Jason R. Thorpe of Zembu Labs, Inc.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
35 .Nd IEEE 802.1Q Virtual LAN network device
37 .Cd "pseudo-device vlan"
41 interface provides support for
43 802.1Q Virtual Local Area Networks
46 trunking of more than one network on a single network interface.
47 This is particularly useful on routers or on hosts which must be
48 connected to many different networks through a single physical interface.
52 interface, the administrator must first create the interface and then
56 identifier, the first 12 bits from a 16-bit integer which
61 and physical interface associated with the
63 This can be done by using the
69 subcommands from a shell command line or script.
70 From within a C program, use the
78 To be compatible with other
82 interface supports a 1500 byte
84 which means that the parent interface will have to handle packets
85 that are 4 bytes larger than the original
88 Drivers supporting this increased
94 drivers using the DP8390 core
145 can be used with devices not supporting the
153 interface will be 4 bytes too small and will not interoperate
156 802.1Q devices, unless the
158 of the other hosts on the
160 are also lowered to match.
162 The following will create interface
168 .Bd -literal -offset indent
169 ifconfig vlan0 create
170 ifconfig vlan0 vlan 6 vlanif tlp0
175 addresses (and/or other protocols) can be assigned to the
178 All other hosts on the
184 and use VID six will see all traffic transmitted through
189 can be created at system startup time
190 by placing the following in
191 .Pa /etc/ifconfig.vlan0 :
192 .Bd -literal -offset indent
201 device first appeared in
203 and was derived from a
205 implementation that appeared in
212 interfaces do not currently inherit changes made to the physical