Ricerca

Questo contenuto non è disponibile nella lingua selezionata.

Chapter 9. Configure Network Bridging

download PDF
A network bridge is a link-layer device which forwards traffic between networks based on MAC addresses. It makes forwarding decisions based on a table of MAC addresses which it builds by listening to network traffic and thereby learning what hosts are connected to each network. A software bridge can be used within a Linux host in order to emulate a hardware bridge, for example in virtualization applications for sharing a NIC with one or more virtual NICs.
Note that a bridge cannot be established over Wi-Fi networks operating in Ad-Hoc or Infrastructure modes. This is due to the IEEE 802.11 standard that specifies the use of 3-address frames in Wi-Fi for the efficient use of airtime.

9.1. Configure Bridging Using the Text User Interface, nmtui

The text user interface tool nmtui can be used to configure bridging in a terminal window. Issue the following command to start the tool:
~]$ nmtui
The text user interface appears. Any invalid command prints a usage message.
To navigate, use the arrow keys or press Tab to step forwards and press Shift+Tab to step back through the options. Press Enter to select an option. The Space bar toggles the status of a check box.
  1. From the starting menu, select Edit a connection. Select Add, the New Connection screen opens.
    The NetworkManager Text User Interface Add a Bridge Connection menu

    Figure 9.1. The NetworkManager Text User Interface Add a Bridge Connection menu

  2. Select Bridge, the Edit connection screen opens.
  3. To add port interfaces to the bridge select Add, the New Connection screen opens. Once the type of Connection has been chosen select the Create button to cause the bridge's Edit Connection display to appear.
    The NetworkManager Text User Interface Adding a new Bridge Slave Connection menu

    Figure 9.2. The NetworkManager Text User Interface Adding a new Bridge Slave Connection menu

  4. Enter the required port's device name or MAC address in the Device section. If required, enter a clone MAC address to be used as the bridge's MAC address by selecting Show to the right of the Ethernet label. Select the OK button.

    Note

    If the device is specified without a MAC address the Device section will be automatically populated once the Edit Connection window is reloaded, but only if it successfully finds the device.
    The NetworkManager Text User Interface Configuring a Bridge Slave Connection menu

    Figure 9.3. The NetworkManager Text User Interface Configuring a Bridge Slave Connection menu

  5. The name of the bridge port appears in the Slaves section. Repeat the above steps to add further port connections.
  6. Review and confirm the settings before selecting the OK button.
    The NetworkManager Text User Interface Configuring a Bridge menu

    Figure 9.4. The NetworkManager Text User Interface Configuring a Bridge menu

See Section 9.4.1.1, “Configuring the Bridge Tab” for definitions of the bridge terms.
See Section 3.2, “Configuring IP Networking with nmtui” for information on installing nmtui.
Red Hat logoGithubRedditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita ilBlog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

© 2024 Red Hat, Inc.