Our VLAN implementation (as it correctly expected) is not allowed
to modify the whole VLAN tags, but it is permitted to change 12-bit VLAN identificators only. Reflect this fact on the appropriate man pages. Antti Kantee and Mihai Chelaru from #netbsd-code were helpful in better understanding of VLAN stuff. Thank you!
This commit is contained in:
parent
3ab04256ac
commit
d7d886db87
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: ifconfig.8,v 1.90 2007/01/09 09:19:02 dyoung Exp $
|
||||
.\" $NetBSD: ifconfig.8,v 1.91 2007/06/05 11:15:15 mishka Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -542,13 +542,13 @@ If the driver is a
|
|||
pseudo-device, set the virtual host ID to
|
||||
.Ar n .
|
||||
Acceptable values are 1 to 255.
|
||||
.It Cm vlan Ar tag
|
||||
.It Cm vlan Ar vid
|
||||
If the interface is a
|
||||
.Xr vlan 4
|
||||
pseudo-interface, set the VLAN tag to
|
||||
.Ar tag .
|
||||
This is a 16-bit number which is used to create an 802.1Q VLAN header for
|
||||
packets sent from the
|
||||
pseudo-interface, set the VLAN identifier to
|
||||
.Ar vid .
|
||||
These are the first 12 bits (0-4095) from a 16-bit integer used
|
||||
to create an 802.1Q VLAN header for packets sent from the
|
||||
.Xr vlan 4
|
||||
interface.
|
||||
Note that
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: vlan.4,v 1.26 2006/11/13 16:33:57 ad Exp $
|
||||
.\" $NetBSD: vlan.4,v 1.27 2007/06/05 11:15:15 mishka Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -57,11 +57,11 @@ connected to many different networks through a single physical interface.
|
|||
To use a
|
||||
.Nm vlan
|
||||
interface, the administrator must first create the interface and then
|
||||
specify the
|
||||
.Tn VLAN
|
||||
tag
|
||||
specify the VID
|
||||
.Po
|
||||
a 16-bit integer which distinguishes each
|
||||
.Tn VLAN
|
||||
identifier, the first 12 bits from a 16-bit integer which
|
||||
distinguishes each
|
||||
.Tn VLAN
|
||||
from any others
|
||||
.Pc
|
||||
|
@ -164,9 +164,7 @@ are also lowered to match.
|
|||
.Sh EXAMPLES
|
||||
The following will create interface
|
||||
.Sy vlan0
|
||||
with
|
||||
.Tn VLAN
|
||||
tag six, on the
|
||||
with VID six, on the
|
||||
.Tn Ethernet
|
||||
interface
|
||||
.Sy tlp0 :
|
||||
|
@ -186,9 +184,7 @@ connected to
|
|||
.Sy tlp0
|
||||
which configure a
|
||||
.Tn VLAN
|
||||
and use
|
||||
.Tn VLAN
|
||||
tag six will see all traffic transmitted through
|
||||
and use VID six will see all traffic transmitted through
|
||||
.Sy vlan0 .
|
||||
.Pp
|
||||
The same
|
||||
|
|
Loading…
Reference in New Issue