Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   bridge    ( 8 )

показывать / управлять адресами моста и устройствами (show / manipulate bridge addresses and devices)

bridge vlan - VLAN filter list

vlan objects contain known VLAN IDs for a link.

The corresponding commands display vlan filter entries, add new entries, and delete old ones.

bridge vlan add - add a new vlan filter entry This command creates a new vlan filter entry.

dev NAME the interface with which this vlan is associated.

vid VID the VLAN ID that identifies the vlan.

tunnel_info TUNNEL_ID the TUNNEL ID that maps to this vlan. The tunnel id is set in dst_metadata for every packet that belongs to this vlan (applicable to bridge ports with vlan_tunnel flag set).

pvid the vlan specified is to be considered a PVID at ingress. Any untagged frames will be assigned to this VLAN.

untagged the vlan specified is to be treated as untagged on egress.

self the vlan is configured on the specified physical device. Required if the device is the bridge device.

master the vlan is configured on the software bridge (default).

bridge vlan delete - delete a vlan filter entry This command removes an existing vlan filter entry.

The arguments are the same as with bridge vlan add. The pvid and untagged flags are ignored.

bridge vlan set - change vlan filter entry's options This command changes vlan filter entry's options.

dev NAME the interface with which this vlan is associated.

vid VID the VLAN ID that identifies the vlan.

state STP_STATE the operation state of the vlan. One may enter STP state name (case insensitive), or one of the numbers below. Negative inputs are ignored, and unrecognized names return an error. Note that the state is set only for the vlan of the specified device, e.g. if it is a bridge port then the state will be set only for the vlan of the port.

0 - vlan is in STP DISABLED state. Make this vlan completely inactive for STP. This is also called BPDU filter and could be used to disable STP on an untrusted vlan.

1 - vlan is in STP LISTENING state. Only valid if STP is enabled on the bridge. In this state the vlan listens for STP BPDUs and drops all other traffic frames.

2 - vlan is in STP LEARNING state. Only valid if STP is enabled on the bridge. In this state the vlan will accept traffic only for the purpose of updating MAC address tables.

3 - vlan is in STP FORWARDING state. This is the default vlan state.

4 - vlan is in STP BLOCKING state. Only valid if STP is enabled on the bridge. This state is used during the STP election process. In this state, the vlan will only process STP BPDUs.

bridge vlan show - list vlan configuration. This command displays the current VLAN filter table.

With the -details option, the command becomes verbose. It displays the per-vlan options.

With the -statistics option, the command displays per-vlan traffic statistics.

bridge vlan tunnelshow - list vlan tunnel mapping. This command displays the current vlan tunnel info mapping.