Skip to content

Commit

Permalink
Site updated: 2024-11-12 12:05:56
Browse files Browse the repository at this point in the history
  • Loading branch information
paw5zx committed Nov 12, 2024
1 parent 4826afe commit a214137
Show file tree
Hide file tree
Showing 176 changed files with 1,621 additions and 1,621 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@

<!--- Seo Part-->

<link rel="canonical" href="http://paw5zx.github.io/centos8-install/"/>
<link rel="canonical" href="http://paw5zx.github.io/2023/10/09/centos8-install/"/>
<meta name="robots" content="index,follow">
<meta name="googlebot" content="index,follow">
<meta name="revisit-after" content="1 days">

<meta name="description" content="CentOS 8系统换源安装,并安装桌面环境gnome">
<meta property="og:type" content="article">
<meta property="og:title" content="CentOS8系统换源安装(带GUI)">
<meta property="og:url" content="http://paw5zx.github.io/Centos8-install/index.html">
<meta property="og:url" content="http://paw5zx.github.io/2023/10/09/Centos8-install/index.html">
<meta property="og:site_name" content="Paw5zx">
<meta property="og:description" content="CentOS 8系统换源安装,并安装桌面环境gnome">
<meta property="og:locale" content="zh_CN">
Expand Down Expand Up @@ -647,7 +647,7 @@ <h2 id="安装图形界面"><a href="#安装图形界面" class="headerlink" tit
</li>

<li>
<strong>链接:</strong> https://paw5zx.github.io/Centos8-install/
<strong>链接:</strong> https://paw5zx.github.io/2023/10/09/Centos8-install/
</li>
<li>
<strong>
Expand All @@ -673,13 +673,13 @@ <h2 id="安装图形界面"><a href="#安装图形界面" class="headerlink" tit
<div class="recommended-article-header text-xl md:text-3xl font-bold mt-10">
<i aria-hidden="true"></i><span>推荐阅读</span>
</div>
<div class="recommended-article-group"><a class="recommended-article-item" href="/aravis-install/" title="开源相机管理库Aravis学习——安装" rel="bookmark">
<div class="recommended-article-group"><a class="recommended-article-item" href="/2024/03/30/aravis-install/" title="开源相机管理库Aravis学习——安装" rel="bookmark">
<img src="/images/wallhaven-wqery6-light.webp" alt="开源相机管理库Aravis学习——安装" class="!max-w-none">
<span class="title">开源相机管理库Aravis学习——安装</span>
</a><a class="recommended-article-item" href="/thirdlib-jsoncpp/" title="jsoncpp的安装及使用" rel="bookmark">
</a><a class="recommended-article-item" href="/2024/06/13/thirdlib-jsoncpp/" title="jsoncpp的安装及使用" rel="bookmark">
<img src="/images/wallhaven-wqery6-light.webp" alt="jsoncpp的安装及使用" class="!max-w-none">
<span class="title">jsoncpp的安装及使用</span>
</a><a class="recommended-article-item" href="/tools-pahole/" title="内存布局分析工具pahole的安装和使用" rel="bookmark">
</a><a class="recommended-article-item" href="/2024/10/11/tools-pahole/" title="内存布局分析工具pahole的安装和使用" rel="bookmark">
<img src="/images/wallhaven-wqery6-light.webp" alt="内存布局分析工具pahole的安装和使用" class="!max-w-none">
<span class="title">内存布局分析工具pahole的安装和使用</span>
</a></div>
Expand All @@ -688,10 +688,10 @@ <h2 id="安装图形界面"><a href="#安装图形界面" class="headerlink" tit
<div class="recommended-article-header text-xl md:text-3xl font-bold mt-10">
<i aria-hidden="true"></i><span>推荐阅读</span>
</div>
<div class="recommended-article-group"><a class="recommended-article-item" href="/aravis-install/" title="开源相机管理库Aravis学习——安装" rel="bookmark">
<div class="recommended-article-group"><a class="recommended-article-item" href="/2024/03/30/aravis-install/" title="开源相机管理库Aravis学习——安装" rel="bookmark">
<img src="/images/wallhaven-wqery6-light.webp" alt="开源相机管理库Aravis学习——安装" class="!max-w-none">
<span class="title">开源相机管理库Aravis学习——安装</span>
</a><a class="recommended-article-item" href="/thirdlib-jsoncpp/" title="jsoncpp的安装及使用" rel="bookmark">
</a><a class="recommended-article-item" href="/2024/06/13/thirdlib-jsoncpp/" title="jsoncpp的安装及使用" rel="bookmark">
<img src="/images/wallhaven-wqery6-light.webp" alt="jsoncpp的安装及使用" class="!max-w-none">
<span class="title">jsoncpp的安装及使用</span>
</a></div>
Expand All @@ -704,7 +704,7 @@ <h2 id="安装图形界面"><a href="#安装图形界面" class="headerlink" tit
<div class="article-prev border-border-color shadow-redefine-flat shadow-shadow-color-2 rounded-medium px-4 py-2 hover:shadow-redefine-flat-hover hover:shadow-shadow-color-2">
<a class="prev"
rel="prev"
href="/network-bridging/"
href="/2024/03/04/network-bridging/"
>
<span class="left arrow-icon flex justify-center items-center">
<i class="fa-solid fa-chevron-left"></i>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@

<!--- Seo Part-->

<link rel="canonical" href="http://paw5zx.github.io/network-bridging/"/>
<link rel="canonical" href="http://paw5zx.github.io/2024/03/04/network-bridging/"/>
<meta name="robots" content="index,follow">
<meta name="googlebot" content="index,follow">
<meta name="revisit-after" content="1 days">

<meta name="description" content="linux网络桥接">
<meta property="og:type" content="article">
<meta property="og:title" content="CentOS8系统网口桥接">
<meta property="og:url" content="http://paw5zx.github.io/network-bridging/index.html">
<meta property="og:url" content="http://paw5zx.github.io/2024/03/04/network-bridging/index.html">
<meta property="og:site_name" content="Paw5zx">
<meta property="og:description" content="linux网络桥接">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="http://paw5zx.github.io/network-bridging/net_config.png">
<meta property="og:image" content="http://paw5zx.github.io/network-bridging/port_name.png">
<meta property="og:image" content="http://paw5zx.github.io/network-bridging/result.png">
<meta property="og:image" content="http://paw5zx.github.io/network-bridging/net_config2.png">
<meta property="og:image" content="http://paw5zx.github.io/network-bridging/result2.png">
<meta property="og:image" content="http://paw5zx.github.io/2024/03/04/network-bridging/net_config.png">
<meta property="og:image" content="http://paw5zx.github.io/2024/03/04/network-bridging/port_name.png">
<meta property="og:image" content="http://paw5zx.github.io/2024/03/04/network-bridging/result.png">
<meta property="og:image" content="http://paw5zx.github.io/2024/03/04/network-bridging/net_config2.png">
<meta property="og:image" content="http://paw5zx.github.io/2024/03/04/network-bridging/result2.png">
<meta property="article:published_time" content="2024-03-04T04:01:00.000Z">
<meta property="article:modified_time" content="2024-08-14T17:57:21.682Z">
<meta property="article:author" content="John Doe">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://paw5zx.github.io/network-bridging/net_config.png">
<meta name="twitter:image" content="http://paw5zx.github.io/2024/03/04/network-bridging/net_config.png">


<!--- Icon Part-->
Expand Down Expand Up @@ -613,34 +613,34 @@ <h1 id="桥接步骤"><a href="#桥接步骤" class="headerlink" title="桥接
<p>网络配置文件:<br><figure class="image-caption"><img
lazyload
src="/images/loading.svg"
data-src="/network-bridging/net_config.png"
data-src="/2024/03/04/network-bridging/net_config.png"
alt="网络配置文件"
><figcaption>网络配置文件</figcaption></figure></p>
<h2 id="查看网口名称"><a href="#查看网口名称" class="headerlink" title="查看网口名称"></a>查看网口名称</h2><div class="highlight-container" data-rel="Bash"><figure class="iseeu highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">nmcli con show</span><br></pre></td></tr></table></figure></div>
<p>我的两个网口名称分别为:eno1和enp3s0<br><figure class="image-caption"><img
lazyload
src="/images/loading.svg"
data-src="/network-bridging/port_name.png"
data-src="/2024/03/04/network-bridging/port_name.png"
alt="网口名称"
><figcaption>网口名称</figcaption></figure></p>
<h2 id="建立网桥"><a href="#建立网桥" class="headerlink" title="建立网桥"></a>建立网桥</h2><p>创建一个新的桥接连接,其名为br0,设置其ipv4地址为:xxx.xxx.xxx.xxx(如192.168.23.23),子网掩码为:255.255.255.0,并设置为自动连接。<br>br0将eno1和enp3s0作为从属接口,这允许两个网络接口(eno1和enp3s0)在同一个桥接网络内可以相互通信,同时这个桥接还可以与其他设备或网络通信</p>
<div class="highlight-container" data-rel="Bash"><figure class="iseeu highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">nmcli con add <span class="built_in">type</span> bridge autoconnect <span class="built_in">yes</span> con-name br0 ifname br0</span><br><span class="line">nmcli con add <span class="built_in">type</span> bridge-slave autoconnect <span class="built_in">yes</span> con-name br-eno1 ifname eno1 master br0</span><br><span class="line">nmcli con add <span class="built_in">type</span> bridge-slave autoconnect <span class="built_in">yes</span> con-name br-enp3s0 ifname enp3s0 master br0</span><br><span class="line">nmcli con modify br0 ipv4.addresses xxx.xxx.xxx.xxx/24</span><br><span class="line">nmcli con modify br0 ipv4.method manual</span><br><span class="line">nmcli con up br0</span><br></pre></td></tr></table></figure></div>
<p>操作结果:<br><figure class="image-caption"><img
lazyload
src="/images/loading.svg"
data-src="/network-bridging/result.png"
data-src="/2024/03/04/network-bridging/result.png"
alt="桥接操作结果"
><figcaption>桥接操作结果</figcaption></figure><br>此时,网络配置文件有三个:<br><figure class="image-caption"><img
lazyload
src="/images/loading.svg"
data-src="/network-bridging/net_config2.png"
data-src="/2024/03/04/network-bridging/net_config2.png"
alt="网络配置文件2"
><figcaption>网络配置文件2</figcaption></figure></p>
<h2 id="查看是否桥接成功"><a href="#查看是否桥接成功" class="headerlink" title="查看是否桥接成功"></a>查看是否桥接成功</h2><div class="highlight-container" data-rel="Bash"><figure class="iseeu highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">nmcli con show</span><br></pre></td></tr></table></figure></div>
<p><figure class="image-caption"><img
lazyload
src="/images/loading.svg"
data-src="/network-bridging/result2.png"
data-src="/2024/03/04/network-bridging/result2.png"
alt="在这里插入图片描述"
><figcaption>在这里插入图片描述</figcaption></figure><br>当然也可以使用另一台设备去连接这两个网口,若使用两个网口都可以连接到设置的ip:xxx.xxx.xxx.xxx。则证明操作成功。</p>
<p><strong>至此网络桥接已操作完成</strong></p>
Expand All @@ -662,7 +662,7 @@ <h2 id="查看是否桥接成功"><a href="#查看是否桥接成功" class="hea
</li>

<li>
<strong>链接:</strong> https://paw5zx.github.io/network-bridging/
<strong>链接:</strong> https://paw5zx.github.io/2024/03/04/network-bridging/
</li>
<li>
<strong>
Expand All @@ -688,13 +688,13 @@ <h2 id="查看是否桥接成功"><a href="#查看是否桥接成功" class="hea
<div class="recommended-article-header text-xl md:text-3xl font-bold mt-10">
<i aria-hidden="true"></i><span>推荐阅读</span>
</div>
<div class="recommended-article-group"><a class="recommended-article-item" href="/Centos8-install/" title="CentOS8系统换源安装(带GUI)" rel="bookmark">
<div class="recommended-article-group"><a class="recommended-article-item" href="/2023/10/09/Centos8-install/" title="CentOS8系统换源安装(带GUI)" rel="bookmark">
<img src="/images/wallhaven-wqery6-light.webp" alt="CentOS8系统换源安装(带GUI)" class="!max-w-none">
<span class="title">CentOS8系统换源安装(带GUI)</span>
</a><a class="recommended-article-item" href="/aravis-install/" title="开源相机管理库Aravis学习——安装" rel="bookmark">
</a><a class="recommended-article-item" href="/2024/03/30/aravis-install/" title="开源相机管理库Aravis学习——安装" rel="bookmark">
<img src="/images/wallhaven-wqery6-light.webp" alt="开源相机管理库Aravis学习——安装" class="!max-w-none">
<span class="title">开源相机管理库Aravis学习——安装</span>
</a><a class="recommended-article-item" href="/linux-centos-boot-time-optimization/" title="Centos8系统启动时间优化" rel="bookmark">
</a><a class="recommended-article-item" href="/2024/05/16/linux-centos-boot-time-optimization/" title="Centos8系统启动时间优化" rel="bookmark">
<img src="/images/wallhaven-wqery6-light.webp" alt="Centos8系统启动时间优化" class="!max-w-none">
<span class="title">Centos8系统启动时间优化</span>
</a></div>
Expand All @@ -703,10 +703,10 @@ <h2 id="查看是否桥接成功"><a href="#查看是否桥接成功" class="hea
<div class="recommended-article-header text-xl md:text-3xl font-bold mt-10">
<i aria-hidden="true"></i><span>推荐阅读</span>
</div>
<div class="recommended-article-group"><a class="recommended-article-item" href="/Centos8-install/" title="CentOS8系统换源安装(带GUI)" rel="bookmark">
<div class="recommended-article-group"><a class="recommended-article-item" href="/2023/10/09/Centos8-install/" title="CentOS8系统换源安装(带GUI)" rel="bookmark">
<img src="/images/wallhaven-wqery6-light.webp" alt="CentOS8系统换源安装(带GUI)" class="!max-w-none">
<span class="title">CentOS8系统换源安装(带GUI)</span>
</a><a class="recommended-article-item" href="/aravis-install/" title="开源相机管理库Aravis学习——安装" rel="bookmark">
</a><a class="recommended-article-item" href="/2024/03/30/aravis-install/" title="开源相机管理库Aravis学习——安装" rel="bookmark">
<img src="/images/wallhaven-wqery6-light.webp" alt="开源相机管理库Aravis学习——安装" class="!max-w-none">
<span class="title">开源相机管理库Aravis学习——安装</span>
</a></div>
Expand All @@ -719,7 +719,7 @@ <h2 id="查看是否桥接成功"><a href="#查看是否桥接成功" class="hea
<div class="article-prev border-border-color shadow-redefine-flat shadow-shadow-color-2 rounded-medium px-4 py-2 hover:shadow-redefine-flat-hover hover:shadow-shadow-color-2">
<a class="prev"
rel="prev"
href="/IO-Multiplexing-select/"
href="/2024/03/05/IO-Multiplexing-select/"
>
<span class="left arrow-icon flex justify-center items-center">
<i class="fa-solid fa-chevron-left"></i>
Expand All @@ -735,7 +735,7 @@ <h2 id="查看是否桥接成功"><a href="#查看是否桥接成功" class="hea
<div class="article-next border-border-color shadow-redefine-flat shadow-shadow-color-2 rounded-medium px-4 py-2 hover:shadow-redefine-flat-hover hover:shadow-shadow-color-2">
<a class="next"
rel="next"
href="/Centos8-install/"
href="/2023/10/09/Centos8-install/"
>
<span class="title flex justify-center items-center">
<span class="post-nav-title-item">CentOS8系统换源安装(带GUI)</span>
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading

0 comments on commit a214137

Please sign in to comment.