Ubuntu14配置Bonding多网卡
来源:互联网 发布:网络电玩城24小时下分 编辑:程序博客网 时间:2024/06/01 07:57
Installation
sudo apt-get install ifenslave
Interface Configuration
Step 1: Ensure kernel support
Before Ubuntu can configure your network cards into a NIC bond, you need to ensure that the correct kernel module bonding is present, and loaded at boot time.
Edit your /etc/modules configuration:
sudo vi /etc/modulesEnsure that the bonding module is loaded:
# /etc/modules: kernel modules to load at boot time.## This file contains the names of kernel modules that should be loaded# at boot time, one per line. Lines beginning with "#" are ignored.looplprtcbonding
Step 2: Configure network interfaces
Ensure that your network is brought down:
sudo stop networkingThen load the bonding kernel module:
sudo modprobe bondingNow you are ready to configure your NICs.
Edit your interfaces configuration:
sudo vi /etc/network/interfacesFor example, to combine eth0 and eth1 as slaves to the bonding interface bond0 using a simple active-backup setup, with eth0 being the primary interface:
# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).# The loopback network interfaceauto loiface lo inet loopback# The primary network interface#auto eth0#iface eth0 inet dhcp# This is an autoconfigured IPv6 interface#iface eth0 inet6 auto# eth0 is manually configured, and slave to the "bond0" bonded NICauto eth0iface eth0 inet manual bond-master bond0 bond-primary eth0# eth1 ditto, thus creating a 2-link bond.auto eth1iface eth1 inet manual bond-master bond0# bond0 is the bonding NIC and can be used like any other normal NIC.# bond0 is configured using static network information.auto bond0iface bond0 inet dhcp # address 192.168.1.10 # gateway 192.168.1.1 # netmask 255.255.255.0 bond-mode active-backup bond-miimon 100 bond-slaves noneNext Start/Restart network service to take effect the changes:
/etc/init.d/networking startBring up bond0:
ifup bond0
Checking the bonding interface
Link information is available under /proc/net/bonding/. To check bond0 for example:Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)Bonding Mode: fault-tolerance (active-backup)Primary Slave: eth0 (primary_reselect always)Currently Active Slave: eth0MII Status: upMII Polling Interval (ms): 100Up Delay (ms): 0Down Delay (ms): 0Slave Interface: eth0MII Status: upSpeed: UnknownDuplex: UnknownLink Failure Count: 0Permanent HW addr: 00:16:3e:6d:3c:4bSlave queue ID: 0
参考自:UbuntuBonding
阅读全文
0 0
- Ubuntu14配置Bonding多网卡
- 多网卡绑定配置-bonding
- linux 多网卡bonding
- 配置linux双网卡bonding
- suse linux配置网卡bonding
- linux 下配置网卡bonding
- ubuntu快速配置网卡bonding
- redhatEL7网络配置,网卡bonding
- linux下网卡bonding配置
- 服务器网卡bonding配置浅读
- linux下的双网卡bonding配置
- 为RAC私有网络配置网卡Bonding
- 网卡bonding
- linux下如何实现多网卡bonding
- 多网卡绑定Bonding生产实战
- Linux下多网卡绑定bonding bond6
- XenServer网卡Bonding
- 网卡bonding过程介绍
- JSP相关-request 与response
- getopts 示例1
- APP反编译工具
- c# 随机数重复问题
- 【arduino】蓝牙模块学习(2)两蓝牙模块连接
- Ubuntu14配置Bonding多网卡
- RestTemplate 引起的 "enq: TX
- leaflet + echart 图表展示信息
- 利用RNN对字符串进行预测(31)---《深度学习》
- 11.27--Hibernate延迟加载
- Java 8 lambda表达式示例
- java数据类型对应数据库类型
- ExpandableListView删除子view,子view中的size为0时删除父view
- Intellij IDEA快捷键