In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to configure the bridge on the Ubuntu system", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to configure a bridge on a Ubuntu system.
A bridge is a hardware device used to interconnect two or more data link layers (the second layer of the OSI seven-layer model) so that network devices on different network segments can access each other. When you want to interconnect multiple virtual machines or Ethernet interfaces in a host, you need to have a concept similar to bridging in the Linux host. A soft bridge is used here.
There are many ways to configure a Linux bridge. For example, in a server environment without external display / keyboard, you can use brct to manually configure a bridge. In the desktop environment, the bridge setting is also supported in the network manager. Let's test how to configure a bridge with a network manager.
Request
To avoid any problems, it is recommended that your network manager version is 0.9.9 or higher, which is used in Ubuntu 15.04 or later.
The code is as follows:
[$apt-cache show network-manager | grep Version
Version: 0.9.10.0-4ubuntu15.1
Version: 0.9.10.0-4ubuntu15
Create a bridge
The easiest way to create a bridge using the network manager is through nm-connection-editor. This GUI (graphical user interface) tool allows you to configure a bridge foolishly.
First, start nm-connection-editor.
The code is as follows:
$nm-connection-editor
The editor's window will show you a list of currently configured network connections. Click the add button in the upper right corner to create a bridge.
Next, select "Bridge" as the connection type.
Now, start configuring the bridge, including its name and the connection to which it is bridged. If no other bridges have been created, the default bridge interface is named bridge0.
Recall that the purpose of creating a bridge is to share your Ethernet card interface through the bridge, so you need to add an Ethernet card interface to the bridge. This can be achieved by adding a new "bridged connection" to the graphical interface. Click the Add button.
Select Ethernet as the connection type.
In the "MAC address of the device" area, select the interface you want to belong to the bridge. In this case, assume that the interface is eth0.
Click the General tab and select the two check boxes, "automatically connect to this network when it is available" and "all users can connect to this network".
Switch to the IPv4 Settings tab and configure the bridge with a DHCP or static IP address. Note that you should use the same IPv4 settings for the dependent Ethernet card interface eth0. In this example, we assume that eth0 has been configured with DHCP. Therefore, select automatic (DHCP) here. If eth0 is assigned a static IP address, you should also assign the same IP address to the bridge.
Finally, save the settings for the bridge.
Now you will see a new bridge connection created in the Network connections window. Because it is subordinate to the bridge, the previously configured wired connection eth0 is no longer needed, so delete the original wired connection.
At this point, the bridge connection is automatically activated. From the moment the IP address assigned to eth0 is taken over by the bridge, you will temporarily lose your connection. When the IP address is assigned to the bridge, you will connect back to your Ethernet card interface through the bridge. You can confirm it through the "Network" setting.
At the same time, check the available interfaces. As a reminder, the bridge interface must have replaced any IP address owned by your Ethernet card interface.
That's it. Now, the bridge is ready to use.
At this point, I believe you have a deeper understanding of "how to configure the bridge on the Ubuntu system". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.