Changeset View
Changeset View
Standalone View
Standalone View
sbin/ifconfig/ifconfig.8
Show First 20 Lines • Show All 586 Lines • ▼ Show 20 Lines | |||||
reception of extended frames, tag processing in hardware, | reception of extended frames, tag processing in hardware, | ||||
frame filtering in hardware, checksum offloading, or TSO on VLAN, | frame filtering in hardware, checksum offloading, or TSO on VLAN, | ||||
respectively. | respectively. | ||||
Note that this must be issued on a physical interface associated with | Note that this must be issued on a physical interface associated with | ||||
.Xr vlan 4 , | .Xr vlan 4 , | ||||
not on a | not on a | ||||
.Xr vlan 4 | .Xr vlan 4 | ||||
interface itself. | interface itself. | ||||
.It Fl vlanmtu , vlanhwtag, vlanhwfilter, vlanhwtso | .It Fl vlanmtu , vlanhwtag , vlanhwfilter , vlanhwtso | ||||
If the driver offers user-configurable VLAN support, disable | If the driver offers user-configurable VLAN support, disable | ||||
reception of extended frames, tag processing in hardware, | reception of extended frames, tag processing in hardware, | ||||
frame filtering in hardware, or TSO on VLAN, | frame filtering in hardware, or TSO on VLAN, | ||||
respectively. | respectively. | ||||
.It Cm vnet Ar jail | .It Cm vnet Ar jail | ||||
Move the interface to the | Move the interface to the | ||||
.Xr jail 8 , | .Xr jail 8 , | ||||
specified by name or JID. | specified by name or JID. | ||||
▲ Show 20 Lines • Show All 2,066 Lines • ▼ Show 20 Lines | |||||
acknowledged that the associated state has been inserted. | acknowledged that the associated state has been inserted. | ||||
.It Fl defer | .It Fl defer | ||||
Do not defer the first packet in a state. | Do not defer the first packet in a state. | ||||
This is the default. | This is the default. | ||||
.El | .El | ||||
.Pp | .Pp | ||||
The following parameters are specific to | The following parameters are specific to | ||||
.Xr vlan 4 | .Xr vlan 4 | ||||
and | |||||
.Xr svlan 4 | |||||
interfaces: | interfaces: | ||||
.Bl -tag -width indent | .Bl -tag -width indent | ||||
.It Cm vlan Ar vlan_tag | .It Cm vlan Ar vlan_tag | ||||
Set the VLAN tag value to | Set the VLAN tag value to | ||||
.Ar vlan_tag . | .Ar vlan_tag . | ||||
This value is a 12-bit VLAN Identifier (VID) which is used to create an 802.1Q | This value is a 12-bit VLAN Identifier (VID) which is used to create an | ||||
VLAN header for packets sent from the | 802.1Q or 802.1ad VLAN header for packets sent from the | ||||
.Xr vlan 4 | .Xr vlan 4 | ||||
or | |||||
.Xr svlan 4 | |||||
interface. | interface. | ||||
Note that | Note that | ||||
.Cm vlan | .Cm vlan | ||||
and | and | ||||
.Cm vlandev | .Cm vlandev | ||||
must both be set at the same time. | must both be set at the same time. | ||||
.It Cm vlanpcp Ar priority_code_point | .It Cm vlanpcp Ar priority_code_point | ||||
Priority code point | Priority code point | ||||
Show All 18 Lines | |||||
.Pq Dv Internetwork control , | .Pq Dv Internetwork control , | ||||
.Cm 7 | .Cm 7 | ||||
.Pq Dv Network control (highest) . | .Pq Dv Network control (highest) . | ||||
.It Cm vlandev Ar iface | .It Cm vlandev Ar iface | ||||
Associate the physical interface | Associate the physical interface | ||||
.Ar iface | .Ar iface | ||||
with a | with a | ||||
.Xr vlan 4 | .Xr vlan 4 | ||||
or | |||||
.Xr svlan 4 | |||||
interface. | interface. | ||||
Packets transmitted through the | .Pp | ||||
Packets transmitted through a | |||||
.Xr vlan 4 | .Xr vlan 4 | ||||
interface will be | interface will be | ||||
diverted to the specified physical interface | diverted to the specified physical interface | ||||
.Ar iface | .Ar iface | ||||
with 802.1Q VLAN encapsulation. | with 802.1Q VLAN encapsulation. | ||||
Packets transmitted through a | |||||
.Xr svlan 4 | |||||
interface will be | |||||
diverted to the specified physical interface | |||||
.Ar iface | |||||
with 802.1ad VLAN encapsulation. | |||||
.Pp | |||||
Packets with 802.1Q encapsulation received | Packets with 802.1Q encapsulation received | ||||
by the parent interface with the correct VLAN Identifier will be diverted to | by the parent interface with the correct VLAN Identifier will be diverted to | ||||
the associated | the associated | ||||
.Xr vlan 4 | .Xr vlan 4 | ||||
pseudo-interface. | pseudo-interface. | ||||
The | Packets with 802.1ad encapsulation received | ||||
by the parent interface with the correct VLAN Identifier will be diverted to | |||||
gbe: lowercase | |||||
Done Inline ActionsOops. I missed that one, thanks. freebsd_oprs.eu: Oops. I missed that one, thanks. | |||||
the associated | |||||
.Xr svlan 4 | |||||
pseudo-interface. | |||||
.Pp | |||||
.Xr vlan 4 | .Xr vlan 4 | ||||
interface is assigned a | and | ||||
.Xr svlan 4 | |||||
interfaces are assigned a | |||||
copy of the parent interface's flags and the parent's Ethernet address. | copy of the parent interface's flags and the parent's Ethernet address. | ||||
The | The | ||||
.Cm vlandev | .Cm vlandev | ||||
and | and | ||||
.Cm vlan | .Cm vlan | ||||
must both be set at the same time. | must both be set at the same time. | ||||
If the | If a | ||||
.Xr vlan 4 | .Xr vlan 4 | ||||
or | |||||
.Xr svlan 4 | |||||
interface already has | interface already has | ||||
a physical interface associated with it, this command will fail. | a physical interface associated with it, this command will fail. | ||||
To | To | ||||
change the association to another physical interface, the existing | change the association to another physical interface, the existing | ||||
association must be cleared first. | association must be cleared first. | ||||
.Pp | .Pp | ||||
Note: if the hardware tagging capability | Note: if the hardware tagging capability | ||||
is set on the parent interface, the | is set on the parent interface, the | ||||
.Xr vlan 4 | .Xr vlan 4 | ||||
pseudo | pseudo | ||||
interface's behavior changes: | interface's behavior changes: | ||||
the | the | ||||
.Xr vlan 4 | .Xr vlan 4 | ||||
interface recognizes that the | interface recognizes that the | ||||
parent interface supports insertion and extraction of VLAN tags on its | parent interface supports insertion and extraction of VLAN tags on its | ||||
own (usually in firmware) and that it should pass packets to and from | own (usually in firmware) and that it should pass packets to and from | ||||
the parent unaltered. | the parent unaltered. | ||||
.It Fl vlandev Op Ar iface | .It Fl vlandev Op Ar iface | ||||
If the driver is a | If the driver is a | ||||
.Xr vlan 4 | .Xr vlan 4 | ||||
or | |||||
.Xr svlan 4 | |||||
pseudo device, disassociate the parent interface from it. | pseudo device, disassociate the parent interface from it. | ||||
This breaks the link between the | This breaks the link between the | ||||
.Xr vlan 4 | .Xr vlan 4 | ||||
or | |||||
.Xr svlan 4 | |||||
interface and its parent, | interface and its parent, | ||||
clears its VLAN Identifier, flags and its link address and shuts the interface | clears its VLAN Identifier, flags and its link address and shuts the interface | ||||
down. | down. | ||||
The | The | ||||
.Ar iface | .Ar iface | ||||
argument is useless and hence deprecated. | argument is useless and hence deprecated. | ||||
.El | .El | ||||
.Pp | .Pp | ||||
▲ Show 20 Lines • Show All 324 Lines • Show Last 20 Lines |
lowercase