SUSE Linux Enterprise Server SP4 (x86_64) bind dual NIC

Source: Internet
Author: User

Environment
SUSE Linux Enterprise Server SP4
Linux x86_64 x86_64 x86_64 gnu/linux

Configuration (/etc/sysconfig/network)
Ifcfg-eth0:

Device= ' eth0 '
Startmode= ' Auto '
bootproto= ' Static '
Master= ' Bond0 '
Slave= ' yes '

Ifcfg-eth1:

Device= ' eth1 '
Startmode= ' Auto '
bootproto= ' Static '
Master= ' Bond0 '
Slave= ' yes '

IFCFG-BOND0:

Bonding_master= ' yes '
Bonding_module_opts= ' mode=1 miimon=100 fail_over_mac=1 '
bootproto= ' Static '
Ipaddr= ' 168.192.10.100/24 '
Startmode= ' Auto '
Usercontrol= ' No '
bonding_slave0= ' eth0 '
bonding_slave1= ' eth1 '

#没有ifcfg-bond0 The file when the file is created, mode=1 hot standby mode (active-backup), VMware Workstation 11 I do not support the first way to get a MAC address, then you can use the fail_mac_over= 1 parameters. Of course, you don't have to do this in a real-world server environment.

Modifying the bonding configuration
Vi/etc/modprobe.d/bonding.conf
Alias Bond0 Bonding

Loading modules into the kernel

Modprobe bonding
Service Network restart
#insmod is generally required in a certain specification of the path, and will not be loaded in a dependent order module, and modprobe, different, it can be in any path, the need to automatically load the dependent module and bonding into the kernel.

View bonding Status

' Cat/proc/net/bonding/bond0
Ethernet Channel Bonding driver:v3.7.1 (April 27, 2011)

Bonding mode:fault-tolerance (active-backup) (Fail_over_mac Active)
Primary Slave:none
Currently Active Slave:eth0
MII Status:up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface:eth0
MII Status:up
Speed:unknown
Duplex:unknown
Link Failure count:1
Permanent HW Addr:00:0c:29:fb:3f:ab
Slave Queue id:0

Slave interface:eth1
MII Status:up
Speed:unknown
Duplex:unknown
Link Failure count:1
Permanent HW ADDR:00:0C:29:FB:3F:B5
Slave Queue id:0 '

bond0当前在使用的网卡是 eth0**其它linux环境**     在Redhat6.5 类似操作,绑定双网卡做热备成功 ifcfg-bond0 DEVICE=bond0TYPE=EthernetONBOOT=yesBOOTPROTO=staticIPADDR=168.192.10.12NETMASK=255.255.255.0GATEWAY=168.192.10.1USERCTL=noBONDING_OPTS="mode=1 miimon=200 fail_over_mac=1"ifcfg-eth0DEVICE=eth0TYPE=EthernetONBOOT=yesBOOTPROTO=staticUSRCTL=noMASTER=bond0SLAVE=yes ifcfg-eth1DEVICE=eth1TYPE=EthernetONBOOT=yesBOOTPROTO=staticUSRCTL=noMASTER=bond0SLAVE=yes**注意:Redhat 6 bond 配置修改路径** vi /etc/modprobe.d/dist.conf  alias bond0 bonding

SUSE Linux Enterprise Server SP4 (x86_64) bind dual NIC

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.