Bridging and Bonding with CentOS 6.5
eth0和eth1要做bond,然后kvm虚拟机通过bridge与外界通信。 
那么就要在bond上做bridge。配置文件例如以下,实測这样配置,能够从kvm虚拟机ping通外界拓扑。
ifcfg-eth0:
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
ifcfg-eth1:
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
ifcfg-bond0:
DEVICE=bond0
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
BONDING_OPTS="miimon=100 mode=4 xmit_hash_policy=layer3+4"
BRIDGE=br0
ifcfg-br0:
DEVICE=br0
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Bridge"
BOOTPROTO="static"
IPADDR="10.65.248.201"
NETMASK="255.255.0.0"
GATEWAY="10.65.251.247"
MTU="1500"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="yes"
IPV6INIT="no"
NAME="System br0"
DELAY=0
kvm虚拟机的xml的interface部分例如以下:
 <interface type='bridge'>
      <mac address='00:16:3e:1e:b2:20'/>
      <source bridge='br0'/>
       </interface>
虚拟机的ip地址是10.65.248.242,ping宿主机 
 
ping宿主机所在拓扑主机: 
搞定~
Bridging and Bonding with CentOS 6.5的更多相关文章
- Configure network bonding on RHEL (Red Hat Enterprise Linux)
		
Question: Recently I have to use the RHEL and need to config the network with a few NICs. Here comes ...
 - CentOS ips bonding
		
centos ip bonding 一个网卡多个ips,多个网口一个ip 1,配置一个网卡多ips的情况cp /etc/sysconfig/network-scripts/ifcfg-eth0 /et ...
 - Centos 7下网卡bonding配置之mode4
		
一.bonding技术 bonding(绑定)是一种linux系统下的网卡绑定技术,可以把服务器上n个物理网卡在系统内部抽象(绑定)成一个逻辑上的网卡,能够提升网络吞吐量.实现网络冗余.负载等功能,有 ...
 - CentOS 6 / RHEL 6配置bonding 4模式
		
实现bond 802.3ad or 4 模式:(IEEE 802.3ad), 方式:创建一个整合的组,这个组会共享网速和网络双工(duplex)设置.模式 4 会根据 IEEE 802.3ad 标准使 ...
 - CentOS 多网卡绑定bonding
		
1.查看环境 ip a |grep -v lo 2.加载bonding模块 modprobe bonding 3.开机自动加载模块到内核 echo 'modprobe bonding &> ...
 - CentOS 7 bonding模式双网卡绑定
		
1.1 查看系统内核是否支持bonding [root@cobbler-node1 ~]# cat /boot/config-3.10.0-693.el7.x86_64 | grep -i bo ...
 - CentOS双网卡绑定bond0
		
a)拷⻉并配置vim /etc/sysconfig/network-scripts/ifcfg-bond0配置⽂件(会自动创建文件) DEVICE=bond0 TYPE=Ethernet ONBOOT ...
 - CentOS7 bonding配置
		
操作系统:CentOS Linux release 7.1.1503 (Core) 网卡适配器: eno1.eno2 bonding类型:mode=1 (active-backup),主-备份策略 网 ...
 - Linux下双网卡绑定(bonding技术)
		
Linux网卡绑定探析 2013-08-20 15:39:31 现在很多服务器都自带双千兆网口,利用网卡绑定既能增加网络带宽,同时又能做相应的冗余,目前应用于很多的场景.linux操作系统下自带的 ...
 
随机推荐
- HP Notebook PCs - Updating the BIOS
			
HP Notebook PCs - Updating the BIOS Updating the BIOS Updating the BIOS when Windows does not start ...
 - 利用进程ID获取主线程ID
			
利用进程ID获取主线程ID,仅适用于单线程.多线程应区分哪个是主线程,区分方法待验证 (1)好像可以用StartTime最早的,不过通过线程执行时间不一定可靠,要是在最开始就CreateThread了 ...
 - Android中的"Unable to start activity ComponentInfo"错误
			
在调试的过程中发现一直报这个错误"Unable to start activity ComponentInfo",从字面的意思看是无法启动某个activity组件,但是看了mani ...
 - cocos2d-x getVisibleOrigin
			
getVisibleSize:表示获得视口(可视区域)的大小,如果DesignResolutionSize跟屏幕尺寸一样大,则getVisibleSize等于getWinSize.getVisible ...
 - .NET:Assembly.CodeBase vs. Assembly.Location
			
The CodeBase is a URL to the place where the file was found, while the Location is the path from whe ...
 - 用drawRect以及CAReplicatorLayer绘制动态水波纹
			
用drawRect以及CAReplicatorLayer绘制动态水波纹 大大简化了写水波纹效果的难度,你可以根据示例自己组装水波纹效果,本设计是几个工具组合在一起完成的效果, DrawRectObje ...
 - 无耻之徒(美版)第七季/全集Shameless US迅雷下载
			
英文全名Shameless (US),第7季(2016).本季看点:<无耻之徒>(Shameless)第七季.本季故事起始于「一个月之后」,Frank从昏迷中醒来后得知亲人背叛了他,于是向 ...
 - Adapter数据变化改变现有View的实现原理及案例
			
首先说说Adapter详细的类的继承关系.例如以下图 Adapte为接口它的实现类的对象作为AdapterView和View的桥梁,Adapter是装载了View(比方ListView和girdVie ...
 - C#  关键字Event
			
1>>> 在委托实例前,不加event,那这个委托就是一个普通的委托,我们可以用别的函数调用,也可以直接用对象调用,但加上关键字之后,只能用成员函数调用 public delegat ...
 - 层次聚类 Hierarchical Clustering
			
-------------------------------- 不管是GMM,还是k-means,都面临一个问题,就是k的个数如何选取?比如在bag-of-words模型中,用k-means训练码书 ...