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

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



   bridge    ( 8 )

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

bridge fdb - forwarding database management

fdb objects contain known Ethernet addresses on a link.

The corresponding commands display fdb entries, add new entries, append entries, and delete old ones.

bridge fdb add - add a new fdb entry This command creates a new fdb entry.

LLADDR the Ethernet MAC address.

dev DEV the interface to which this address is associated.

local - is a local permanent fdb entry, which means that the bridge will not forward frames with this destination MAC address and VLAN ID, but terminate them locally. This flag is default unless "static" or "dynamic" are explicitly specified.

permanent - this is a synonym for "local"

static - is a static (no arp) fdb entry

dynamic - is a dynamic reachable age-able fdb entry

self - the operation is fulfilled directly by the driver for the specified network device. If the network device belongs to a master like a bridge, then the bridge is bypassed and not notified of this operation (and if the device does notify the bridge, it is driver-specific behavior and not mandated by this flag, check the driver for more details). The "bridge fdb add" command can also be used on the bridge device itself, and in this case, the added fdb entries will be locally terminated (not forwarded). In the latter case, the "self" flag is mandatory. The flag is set by default if "master" is not specified.

master - if the specified network device is a port that belongs to a master device such as a bridge, the operation is fulfilled by the master device's driver, which may in turn notify the port driver too of the address. If the specified device is a master itself, such as a bridge, this flag is invalid.

router - the destination address is associated with a router. Valid if the referenced device is a VXLAN type device and has route short circuit enabled.

use - the address is in use. User space can use this option to indicate to the kernel that the fdb entry is in use.

extern_learn - this entry was learned externally. This option can be used to indicate to the kernel that an entry was hardware or user-space controller learnt dynamic entry. Kernel will not age such an entry.

sticky - this entry will not change its port due to learning.

The next command line parameters apply only when the specified device DEV is of type VXLAN.

dst IPADDR the IP address of the destination VXLAN tunnel endpoint where the Ethernet MAC ADDRESS resides.

src_vni VNI the src VNI Network Identifier (or VXLAN Segment ID) this entry belongs to. Used only when the vxlan device is in external or collect metadata mode. If omitted the value specified at vxlan device creation will be used.

vni VNI the VXLAN VNI Network Identifier (or VXLAN Segment ID) to use to connect to the remote VXLAN tunnel endpoint. If omitted the value specified at vxlan device creation will be used.

port PORT the UDP destination PORT number to use to connect to the remote VXLAN tunnel endpoint. If omitted the default value is used.

via DEVICE device name of the outgoing interface for the VXLAN device driver to reach the remote VXLAN tunnel endpoint.

nhid NHID ecmp nexthop group for the VXLAN device driver to reach remote VXLAN tunnel endpoints.

bridge fdb append - append a forwarding database entry This command adds a new fdb entry with an already known LLADDR. Valid only for multicast link layer addresses. The command adds support for broadcast and multicast Ethernet MAC addresses. The Ethernet MAC address is added multiple times into the forwarding database and the vxlan device driver sends a copy of the data packet to each entry found.

The arguments are the same as with bridge fdb add.

bridge fdb delete - delete a forwarding database entry This command removes an existing fdb entry.

The arguments are the same as with bridge fdb add.

bridge fdb replace - replace a forwarding database entry If no matching entry is found, a new one will be created instead.

The arguments are the same as with bridge fdb add.

bridge fdb show - list forwarding entries. This command displays the current forwarding table.

With the -statistics option, the command becomes verbose. It prints out the last updated and last used time for each entry.

bridge fdb get - get bridge forwarding entry. lookup a bridge forwarding table entry.

LLADDR the Ethernet MAC address.

dev DEV the interface to which this address is associated.

brport DEV the bridge port to which this address is associated. same as dev above.

br DEV the bridge to which this address is associated.

self - the address is associated with the port drivers fdb. Usually hardware.

master - the address is associated with master devices fdb. Usually software (default).