mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-17 15:03:29 +08:00
9eff0e5cc4
Recent kernel patches added support for VLAN filtering on the bridge. This functionality allows one to turn a basic bridge into a VLAN bridge, where VLANs dicatate packet forwarding and header transformation. To configure the VLANs on the bridge and its ports a new command is added to the 'bridge' utility. # bridge vlan add dev eth0 vid 10 pvid untagged brdev # bridge vlan add # bridge vlan delete dev eth0 vid 10 # bridge vlan show This command supports the following flags: master - peform the operation on the software bridge device. This is the default behavior. self - perform the operation on the hardware associated with the port. This flag is required when the device is the bridge device and the configuration is desired on the bridge device itself (not one of the ports). pvid - Set the PVID (port vlan id) for a given port. Any untagged frames arriving on the port will be assigned to this vlan. untagged - Sets the egress policy of for a given vlan. Default port egress policy is tagged. Set this flag if you wish traffic associated with this VLAN to exit the port untagged. Signed-off-by: Vlad Yasevich <vyasevic@redhat.com> |
||
---|---|---|
.. | ||
libiptc | ||
linux | ||
netinet | ||
dlfcn.h | ||
ip6tables.h | ||
iptables_common.h | ||
iptables.h | ||
libgenl.h | ||
libnetlink.h | ||
ll_map.h | ||
rt_names.h | ||
rtm_map.h | ||
SNAPSHOT.h | ||
utils.h | ||
xt-internal.h |