<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>create bridge connection on CentOS 8 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/create-bridge-connection-on-centos-8/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 23 Dec 2019 09:34:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Create a Linux Network Bridge on CentOS 8 / RHEL 8</title>
		<link>https://www.osradar.com/how-to-create-a-linux-network-bridge-on-centos-8-rhel-8/</link>
					<comments>https://www.osradar.com/how-to-create-a-linux-network-bridge-on-centos-8-rhel-8/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Mon, 23 Dec 2019 09:34:25 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Bridge network connection]]></category>
		<category><![CDATA[Configure Linux Bridge network]]></category>
		<category><![CDATA[create bridge connection on CentOS 8]]></category>
		<category><![CDATA[Linux Bridge Network]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16637</guid>

					<description><![CDATA[<p>In this tutorial, you&#8217;ll cover the creation of Linux Network Bridge on CentOS / RHEL 8. As you know Bridge is used to connect two or more roads, Similarly here in Linux Bridge is used to connect two or more segments together. The common use of Linux Network Bridge is to pass the Virtual Machines [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-create-a-linux-network-bridge-on-centos-8-rhel-8/">How To Create a Linux Network Bridge on CentOS 8 / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial, you&#8217;ll cover the creation of Linux Network Bridge on CentOS / RHEL 8. As you know Bridge is used to connect two or more roads, Similarly here in Linux Bridge is used to connect two or more segments together.  The common use of Linux Network Bridge is to pass the Virtual Machines traffic through a hyper visor network card. By doing so all machines connected to a network bridge will act as a physical network interface.</p>



<p>Creating a Linux Network Bridge on CentOS 8 / RHEL 8 using nmcli</p>



<p>Network bridge behaves as a virtual network switch. We&#8217;ll proceed further to see how it can be created and used follow the below steps to get started.</p>



<h3><strong>Step 1: Creating a Linux Bridge</strong></h3>



<p>Here we will use the nmcli network management command line tool to create a Linux bridge on a desired interface.</p>



<p>To see connections available run the following command.</p>



<pre class="wp-block-verse">$ sudo nmcli connection show<br>NAME        UUID                                  TYPE      DEVICE     <br> ens33       8806158c-9c2b-4ffb-8109-8b662baf8581  ethernet  ens33      <br> virbr0      06282371-27ba-4f03-b3c5-ebcc401e2531  bridge    virbr0     <br> virbr0-nic  0dcb669a-5ead-4a67-a877-2f78d432691e  tun       virbr0-nic <br> ens33       93392eb5-c75b-45ea-80a3-509e01144dc7  ethernet  --         <br> ens33       2a10fc64-1312-4232-8103-5cdc114cf5b8  ethernet  --         </pre>



<p>As my bridge will be created on the second device ens33 So, I&#8217;ll delete the existing connection to create a bridge connection with this device.</p>



<pre class="wp-block-verse">$ sudo nmcli connection delete ens33<br>[sabi@localhost root]$ sudo nmcli connection delete ens33<br>Connection 'ens33' (93392eb5-c75b-45ea-80a3-509e01144dc7) successfully deleted.<br>Connection 'ens33' (2a10fc64-1312-4232-8103-5cdc114cf5b8) successfully deleted.<br>Connection 'ens33' (8806158c-9c2b-4ffb-8109-8b662baf8581) successfully deleted.</pre>



<p>Now save bridge related information to variables.</p>



<pre class="wp-block-verse">BR_NAME="ifname"<br>BR_INT="ens29"<br>SUBNET_IP="192.168.94.10/24"<br>GW="192.168.94.1"<br>DNS1="8.8.8.8"<br>DNS2="8.8.4.4"</pre>



<ul><li><strong>BR_NAME:</strong> Name of the bridge, we are going to create.</li><li><strong>BR_INT:</strong> Physical device to be used as a bridge slave.</li><li><strong>SUBNET_IP:</strong> IP address &amp; subnet assigned to the created bridge.</li><li><strong>GW: </strong>Default Gateway address.</li><li><strong>DNS1 &amp; DNS2: </strong>DNS servers IP which are to be used.</li></ul>



<p>Now after assigning information, create new bridge connection.</p>



<pre class="wp-block-verse">sudo nmcli connection add type bridge autoconnect yes con-name ${BR_NAME} ifname ${BR_NAME}</pre>



<p>You will see the following output upon successful creation.</p>



<pre class="wp-block-verse">Connection 'ifname' (f76df2f2-f4ed-48a3-b39d-e58979710298) successfully added.</pre>



<p>After creating connection of bridge assign the IP address, Gateway and DNS servers.</p>



<pre class="wp-block-verse">sudo nmcli connection modify ${BR_NAME} ipv4.addresses ${SUBNET_IP} ipv4.method manual<br>sudo nmcli connection modify ${BR_NAME} ipv4.gateway ${GW}<br>sudo nmcli connection modify ${BR_NAME} ipv4.dns ${DNS1} +ipv4.dns ${DNS2}</pre>



<p>Now add the network device as a bridge slave.</p>



<pre class="wp-block-verse">sudo nmcli connection delete ${BR_INT}<br>sudo nmcli connection add type bridge-slave autoconnect yes con-name ${BR_INT} ifname ${BR_INT} master ${BR_NAME}</pre>



<p><strong>Output:</strong></p>



<pre class="wp-block-verse">Connection 'ifname' (f76df2f2-f4ed-48a3-b39d-e58979710298) successfully added.</pre>



<p>Run the following command to check connection changes.</p>



<pre class="wp-block-verse">sudo nmcli connection show</pre>



<p>You&#8217;ll see the bridge connection you&#8217;ve just created.</p>



<pre class="wp-block-verse">NAME        UUID                                  TYPE      DEVICE<br>ens33       dde2beed-2e9d-4ea8-82c6-460306f17847  ethernet  ens33      <br>virbr0      06282371-27ba-4f03-b3c5-ebcc401e2531  bridge    virbr0     <br>virbr0-nic  0dcb669a-5ead-4a67-a877-2f78d432691e  tun       virbr0-nic <br>ifname      f76df2f2-f4ed-48a3-b39d-e58979710298  bridge    nm-bridge  <br>ifname      984edc85-9e75-45b1-843b-e06d11631cae  bridge    nm-bridge1 </pre>



<h3><strong>Step 2: Bring up Network Bridge</strong></h3>



<p>Now it&#8217;s time to bring up the network bridge after creating successful connection.</p>



<pre class="wp-block-verse">sudo nmcli connection up ifname<br>Connection successfully activated (master waiting for slaves) (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/5)</pre>



<p>You can view bridge details by running </p>



<pre class="wp-block-verse">sudo nmcli connection show ifname</pre>



<p>To find out IP address run the following command .</p>



<pre class="wp-block-verse">$ ip ad</pre>



<p>That&#8217;s it! The bridge is now ready to use.</p>



<p>If have any queries regarding this tutorial, feel free to ask!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-create-a-linux-network-bridge-on-centos-8-rhel-8/">How To Create a Linux Network Bridge on CentOS 8 / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-create-a-linux-network-bridge-on-centos-8-rhel-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
