使用nmcli 实现 bond0 网络组 网桥三种模式

使用nmcli 实现 bond 网络组 网桥模式

bond0(负载均衡)

step1:创建一个bond0的主属nmcli connection add con-name bond0 type bond ifname bond0 mode active-backup

使用nmcli 实现 bond0 网络组 网桥三种模式
之所以不为绿色是因为还没有创建从属,这个bond0相当于一个虚拟网卡 还没有实际的内容

step2:创建两个从属nmcli conneciton add type bond-slave ifname eth38 master bond0nmcli connection add type bond-slave ifname eth39 master bond0

使用nmcli 实现 bond0 网络组 网桥三种模式

step3:nmcli connectio up bond-slave-eth38nmcli connectio up bond-slave-eth39

使用nmcli 实现 bond0 网络组 网桥三种模式
当激活两个从属网卡后 bond0自动生效

step4:测试 nmcli connection down bond-slave-ens38

使用nmcli 实现 bond0 网络组 网桥三种模式
卸掉了一块网卡 bond0仍然处于激活 因为有两块从属网卡

ps:在虚拟机上的负载均衡效果有所限制 并没有达到预期效果 就没有放图

网络组

网络组:将多个网卡聚合在一起,从而实现提高容错率和提高吞吐量
step1:创建team网络组
使用nmcli 实现 bond0 网络组 网桥三种模式

step2:加入两个网络组成员

使用nmcli 实现 bond0 网络组 网桥三种模式

step3:激活两个网络组成员

使用nmcli 实现 bond0 网络组 网桥三种模式

step4:teamdctl team0 state

使用nmcli 实现 bond0 网络组 网桥三种模式

step5:修改其IP

使用nmcli 实现 bond0 网络组 网桥三种模式

使用nmcli 实现 bond0 网络组 网桥三种模式

桥接模式

step1:创建网桥
使用nmcli 实现 bond0 网络组 网桥三种模式
step2: 加入两个从属
使用nmcli 实现 bond0 网络组 网桥三种模式
step3:激活两个成员
使用nmcli 实现 bond0 网络组 网桥三种模式
step4:测试 查看br的IP
使用nmcli 实现 bond0 网络组 网桥三种模式

转载于:https://blog.51cto.com/13572413/2086356

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/278300.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

RabbitMQ是如何运转的?

前言 之前已经介绍了RabbitMQ交换机模型的相关简单概念,都是作为此篇的基础铺垫,如果对此篇不懂的可以先看我上一篇的介绍认识RabbitMQ交换机模型,或者联系评论,分享《RabbitMQ实战指南》电子书给大家,里面虽然有些许错…

如何种植屡获殊荣的青豆

Most people don’t know this yet, but I’ve decided to give up computers and become a farmer instead. Since I’m the helpful type, I’ve decided to share everything I know about farming with you, starting with how I won my prize winning green beans. 大多数…

充分利用Microsoft Planner的6种方法

Microsoft Planner is pretty simple to use, but some of its more useful features aren’t front and center. If you’re just creating and moving tasks, here are six ways to get a bit more out of Planner. Here’s everything you need to know. Microsoft Planner的…

IOS - UTF-8转码问题

2016.07.06 21:45* 字数 61 阅读 921评论 0喜欢 2 IOS中提供的转码。 [utf8str stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; 转码后发现,与java的不一样。 原来IOS中转码的标准不一致,导致出现错误。 不过,可以使用下…

手把手教你如何实现继承

本文将从最简单的例子开始,从零讲解在 JavaScript 中如何实现继承。 小例子 现在有个需求,需要实现 Cat 继承 Animal ,构造函数如下: function Animal(name){this.name name }function Cat(name){this.name name } 复制代码注&a…

最详细的排序解析,理解七大排序

最详细的排序解析,理解七大排序 mp.weixin.qq.com点击上方“方志朋”,选择“置顶或者星标” 你的关注意义重大! 注: lgN在这里为1og2N简写 为了方便描述,本文默认用int类型比较,从小到大排序 本文排序算法以java语言…

xp删除管理员账户_在Windows XP中从登录屏幕删除用户帐户

xp删除管理员账户So you login to your computer every single day, but there’s more than one account to choose from… either because you got the computer from somebody else, or some software package added a user account that you really don’t want to see. So…

Java网络爬虫实操(8)

上一篇:Java网络爬虫实操(7) 大家好,本篇文章介绍一下NetDiscovery爬虫框架里的downloader对象 1) 前言 面向对象设计仍然是目前编程的核心思想,从下面截图可以了解爬虫框架的主要对象: 程序在本地组织好一…

Pycharm下将py文件打包成exe文件

1. 在PyCharm下安装PyInstaller 1. 首先,打开自己要发布的工程 2. 点击底部的【Terminal】打开终端,中输入命令pip install pyinstaller后回车,如图所示进行安装 3. 输入命令 pyinstaller,回车显示安装成功 4. 输入命令 pyinstall…

什么是自然语言处理,它如何工作?

NicoElNino/Shutterstock.comNicoElNino / Shutterstock.comNatural language processing enables computers to process what we’re saying into commands that it can execute. Find out how the basics of how it works, and how it’s being used to improve our lives. 自…

GIT速查手册

为什么80%的码农都做不了架构师?>>> 一、GIT 1.1 简单配置 git是版本控制系统,与svn不同的是git是分布式,svn是集中式 配置文件位置 # 配置文件 .git/config 当前仓库的配置文件 ~/.gitconfig 全局配置文件# 查看所有配置项 git …

4-3逻辑非运算符及案例 4-4

创建类 LoginDemo3 这里取反 !(n%30) package com.imooc.operator; import java.util.Scanner;public class LoginDemo3 {public static void main(String[] args) {// TODO Auto-generated method stubSystem.out.println("请输入一个整数");Scanner scnew Scanner(…

assistant字体_如何使用Google Assistant设置和致电家庭联系人

assistant字体Google谷歌Google Home and Nest smart speakers and displays allow you to make calls without using your phone. By setting up “Household Contacts,” anyone in your home can easily call friends and family members with Google Assistant-enabled dev…

php队列使用

由于项目中在修改产品的同时要同步关联水单,删单,客保 等等数据。所以不可能等待所有都执行完毕以后再给客户端反馈。所以自己用写了个队列。在这里晒出来代码,以供大家参考。(项目中用到的是tp,所以在这里用tp作为演示) 思路 1,需要用到队列…

Accoridion折叠面板

详细操作见代码&#xff1a; <!doctype html> <html><head><meta charset"UTF-8"><title></title><meta name"viewport" content"widthdevice-width,initial-scale1,minimum-scale1,maximum-scale1,user-scal…

skype快捷键_每个Skype键盘快捷键及其用法

skype快捷键Roberto Ricca/Shutterstock罗伯托里卡/ ShutterstockGet familiar with Skype’s unique keyboard shortcuts that will allow you to quickly change your settings, alter your interface, and control your communications. Use these hotkeys and become a Sky…

习惯需要坚持

近期会把本地的资料上传分享出来&#xff0c;好久没更新自己的内容了&#xff0c;以后会不断的更新哦。转载于:https://blog.51cto.com/haohao1010/2087494

YouTube键盘快捷键:速查表

Google’s video website wouldn’t be complete without all sorts of useful buttons and hidden commands that aren’t immediately obvious. Use this hotkey cheat sheet to quickly navigate YouTube and gain better control over your video browsing experience. 如果…

第五章 课本题目

例 5.1 使用单分支条件结构输出两个数的最大值。 #include<stdio.h> int main() { int a,b,max; scanf("%d,%d",&a,&b); if(a>b) maxa; if(a<b) maxb; printf("max%d\n",max); return 0; } 例 5.2 用双分支条件语句求最大值。 #includ…

MySQL服务读取参数文件my.cnf的规律研究探索

在MySQL中&#xff0c;它是按什么顺序或规律去读取my.cnf配置文件的呢&#xff1f;其实只要你花一点功夫&#xff0c;实验测试一下就能弄清楚&#xff0c;下面的实验环境为5.7.21 MySQL Community Server。其它版本如有不同&#xff0c;请以实际情况为准。 其实&#xff0c;MyS…