.. _bridge-interface: ###### Bridge ###### A Bridge is a way to connect two Ethernet segments together in a protocol independent way. Packets are forwarded based on Ethernet address, rather than IP address (like a router). Since forwarding is done at Layer 2, all protocols can go transparently through a bridge. The Linux bridge code implements a subset of the ANSI/IEEE 802.1d standard. Configuration ############# Address ------- .. cfgcmd:: set interfaces bridge address
Configure interface `` with one or more interface addresses. * **address** can be specified multiple times as IPv4 and/or IPv6 address, e.g. 192.0.2.1/24 and/or 2001:db8::1/64 * **dhcp** interface address is received by DHCP from a DHCP server on this segment. * **dhcpv6** interface address is received by DHCPv6 from a DHCPv6 server on this segment. Example: .. code-block:: none set interfaces bridge br0 address 192.0.2.1/24 set interfaces bridge br0 address 192.0.2.2/24 set interfaces bridge br0 address 2001:db8::ffff/64 set interfaces bridge br0 address 2001:db8:100::ffff/64 .. cfgcmd:: set interfaces bridge ipv6 address autoconf :abbr:`SLAAC (Stateless Address Autoconfiguration)` :rfc:`4862`. IPv6 hosts can configure themselves automatically when connected to an IPv6 network using the Neighbor Discovery Protocol via :abbr:`ICMPv6 (Internet Control Message Protocol version 6)` router discovery messages. When first connected to a network, a host sends a link-local router solicitation multicast request for its configuration parameters; routers respond to such a request with a router advertisement packet that contains Internet Layer configuration parameters. .. note:: This method automatically disables IPv6 traffic forwarding on the interface in question. .. cfgcmd:: set interfaces bridge ipv6 address eui64 :abbr:`EUI-64 (64-Bit Extended Unique Identifier)` as specified in :rfc:`4291` allows a host to assign iteslf a unique 64-Bit IPv6 address. .. code-block:: none set interfaces bridge eth0 ipv6 address eui64 2001:db8:beef::/64 .. cfgcmd:: set interfaces bridge aging