0% found this document useful (0 votes)
61 views25 pages

Linux Network Bonding Configuration

The document contains configuration information for IP bonding and network interfaces on a Linux system. It shows: 1) The bonding configuration for bond0 with round-robin load balancing and interfaces in down state. 2) IP addresses and network configuration for loopback, eth0, eth2, eth3 and virbr0 interfaces. 3) Commands to check network configuration and status.

Uploaded by

Mbonk Wae Lah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views25 pages

Linux Network Bonding Configuration

The document contains configuration information for IP bonding and network interfaces on a Linux system. It shows: 1) The bonding configuration for bond0 with round-robin load balancing and interfaces in down state. 2) IP addresses and network configuration for loopback, eth0, eth2, eth3 and virbr0 interfaces. 3) Commands to check network configuration and status.

Uploaded by

Mbonk Wae Lah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

[root@localhost network-scripts]# cat /proc/net/bonding/bond0

Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: load balancing (round-robin)


MII Status: down
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0

----------->>>>
[Link] connection network
#/etc/init.d/network stop
lalu
#/etc/init.d/network start
jika masih failed
restart system

konfigure ip bonding linux

login as: root


root@[Link]'s password:
Last login: Tue Feb 19 [Link] 2013 from [Link]
[root@localhost ~]# more /etc/hosts
[Link] [Link] localhost
[Link] [Link] [Link]
[root@localhost ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback [Link] brd [Link]
inet [Link]/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP ql
en 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth0
inet6 fe80::a00:27ff:feee:c3f9/64 scope link
valid_lft forever preferred_lft forever
3: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP ql
en 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth2
inet6 fe80::a00:27ff:fe89:2cdd/64 scope link
valid_lft forever preferred_lft forever
4: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP ql
en 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth3
inet6 fe80::a00:27ff:fe40:6508/64 scope link
valid_lft forever preferred_lft forever
5: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN

link/ether [Link] brd [Link]


inet [Link]/24 brd [Link] scope global virbr0
6: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master virbr0 state DOW
N qlen 500
link/ether [Link] brd [Link]
[root@localhost ~]# cat /proc/net/dev
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets
errs drop fifo colls carrier compressed
lo: 6896 76 0 0 0 0 0 0 6896 76
0 0 0 0 0 0
eth0: 52815 420 0 0 0 0 0 56 22944 230
0 0 0 0 0 0
eth2: 46877 404 0 0 0 0 0 52 6537 42
0 0 0 0 0 0
eth3: 42412 389 0 0 0 0 0 37 6206 34
0 0 0 0 0 0
virbr0: 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0
virbr0-nic: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
[root@localhost ~]# dmidecode
# dmidecode 2.11
SMBIOS 2.5 present.
9 structures occupying 439 bytes.
Table at 0x000E1000.

Handle 0x0000, DMI type 0, 20 bytes


BIOS Information
Vendor: innotek GmbH
Version: VirtualBox
Release Date: 12/01/2006
Address: 0xE0000
Runtime Size: 128 kB
ROM Size: 128 kB
Characteristics:
ISA is supported
PCI is supported
Boot from CD is supported
Selectable boot is supported
8042 keyboard services are supported (int 9h)
CGA/mono video services are supported (int 10h)
ACPI is supported

Handle 0x0001, DMI type 1, 27 bytes


System Information
Manufacturer: innotek GmbH
Product Name: VirtualBox
Version: 1.2
Serial Number: 0
UUID: 1E734D26-FDD2-4187-887A-F717C3D6626C
Wake-up Type: Power Switch
SKU Number: Not Specified
Family: Virtual Machine

Handle 0x0008, DMI type 2, 15 bytes


Base Board Information
Manufacturer: Oracle Corporation
Product Name: VirtualBox
Version: 1.2
Serial Number: 0
Asset Tag: Not Specified
Features:
Board is a hosting board
Location In Chassis: Not Specified
Chassis Handle: 0x0003
Type: Motherboard
Contained Object Handles: 0

Handle 0x0003, DMI type 3, 13 bytes


Chassis Information
Manufacturer: Oracle Corporation
Type: Other
Lock: Not Present
Version: Not Specified
Serial Number: Not Specified
Asset Tag: Not Specified
Boot-up State: Safe
Power Supply State: Safe
Thermal State: Safe
Security Status: None

Handle 0x0007, DMI type 126, 42 bytes


Inactive

Handle 0x0005, DMI type 126, 15 bytes


Inactive

Handle 0x0006, DMI type 126, 28 bytes


Inactive

Handle 0x0002, DMI type 11, 7 bytes


OEM Strings
String 1: vboxVer_4.2.10
String 2: vboxRev_84104

Handle 0xFEFF, DMI type 127, 4 bytes


End Of Table

[root@localhost ~]# cd etc


-bash: cd: etc: No such file or directory
[root@localhost ~]# cd /
[root@localhost /]# cd etc
[root@localhost etc]# bash
[root@localhost etc]# cd sysconfig/
[root@localhost sysconfig]# ls
atd init networking rngd
auditd ip6tables network-scripts rsyslog
authconfig ip6tables-config nfs samba
autofs [Link] nspluginwrapper sandbox
cbq iptables ntpd saslauthd
cgconfig iptables-config ntpdate sa-update
[Link] [Link] openct selinux
clock irqbalance oracleasm
smartmontools
console kdump oracleasm-_dev_oracleasm
spamassassin
cpuspeed kernel oracle-rdbms-server-11gR2-preinstall sshd
crond keyboard pgsql sysstat
dovecot ksm prelink
[Link]
ebtables-config libvirtd quota_nld system-
config-firewall
firstboot libvirt-guests radvd system-
[Link]
grub mcelogd raid-check system-
config-users
hsqldb modules readahead tgtd
httpd netconsole readonly-root udev
i18n network rhn
wpa_supplicant
[root@localhost sysconfig]# cd network-scripts/
[root@localhost network-scripts]# la
bash: la: command not found
[root@localhost network-scripts]# ls
ifcfg-eth0 ifdown-ipv6 ifdown-tunnel ifup-ipv6 ifup-routes network-
functions
ifcfg-lo ifdown-isdn ifup ifup-isdn ifup-sit network-
functions-ipv6
ifdown ifdown-post ifup-aliases ifup-plip ifup-tunnel
ifdown-bnep ifdown-ppp ifup-bnep ifup-plusb ifup-wireless
ifdown-eth ifdown-routes ifup-eth ifup-post init.ipv6-global
ifdown-ippp ifdown-sit ifup-ippp ifup-ppp [Link]
[root@localhost network-scripts]#
[root@localhost network-scripts]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback [Link] brd [Link]
inet [Link]/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth0
inet6 fe80::a00:27ff:feee:c3f9/64 scope link
valid_lft forever preferred_lft forever
3: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth2
inet6 fe80::a00:27ff:fe89:2cdd/64 scope link
valid_lft forever preferred_lft forever
4: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth3
inet6 fe80::a00:27ff:fe40:6508/64 scope link
valid_lft forever preferred_lft forever
5: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global virbr0
6: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master virbr0 state DOWN
qlen 500
link/ether [Link] brd [Link]
[root@localhost network-scripts]# ls -al
total 204
drwxr-xr-x. 2 root root 4096 Feb 22 16:20 .
drwxr-xr-x. 10 root root 4096 Feb 22 19:05 ..
-rw-r--r--. 3 root root 327 Feb 22 16:20 ifcfg-eth0
-rw-r--r--. 1 root root 254 Apr 27 2012 ifcfg-lo
lrwxrwxrwx. 1 root root 20 Feb 18 13:07 ifdown -> ../../../sbin/ifdown
-rwxr-xr-x. 1 root root 627 Apr 27 2012 ifdown-bnep
-rwxr-xr-x. 1 root root 5569 Apr 27 2012 ifdown-eth
-rwxr-xr-x. 1 root root 781 Apr 27 2012 ifdown-ippp
-rwxr-xr-x. 1 root root 4168 Apr 27 2012 ifdown-ipv6
lrwxrwxrwx. 1 root root 11 Feb 18 13:07 ifdown-isdn -> ifdown-ippp
-rwxr-xr-x. 1 root root 1481 Apr 27 2012 ifdown-post
-rwxr-xr-x. 1 root root 1064 Apr 27 2012 ifdown-ppp
-rwxr-xr-x. 1 root root 835 Apr 27 2012 ifdown-routes
-rwxr-xr-x. 1 root root 1370 Apr 27 2012 ifdown-sit
-rwxr-xr-x. 1 root root 1434 Apr 27 2012 ifdown-tunnel
lrwxrwxrwx. 1 root root 18 Feb 18 13:07 ifup -> ../../../sbin/ifup
-rwxr-xr-x. 1 root root 11919 Apr 27 2012 ifup-aliases
-rwxr-xr-x. 1 root root 859 Apr 27 2012 ifup-bnep
-rwxr-xr-x. 1 root root 10488 Apr 27 2012 ifup-eth
-rwxr-xr-x. 1 root root 11971 Apr 27 2012 ifup-ippp
-rwxr-xr-x. 1 root root 10401 Apr 27 2012 ifup-ipv6
lrwxrwxrwx. 1 root root 9 Feb 18 13:07 ifup-isdn -> ifup-ippp
-rwxr-xr-x. 1 root root 727 Apr 27 2012 ifup-plip
-rwxr-xr-x. 1 root root 954 Apr 27 2012 ifup-plusb
-rwxr-xr-x. 1 root root 2364 Apr 27 2012 ifup-post
-rwxr-xr-x. 1 root root 4154 Apr 27 2012 ifup-ppp
-rwxr-xr-x. 1 root root 1930 Jun 22 2012 ifup-routes
-rwxr-xr-x. 1 root root 3499 Apr 27 2012 ifup-sit
-rwxr-xr-x. 1 root root 2488 Apr 27 2012 ifup-tunnel
-rwxr-xr-x. 1 root root 3770 Apr 27 2012 ifup-wireless
-rwxr-xr-x. 1 root root 4623 Apr 27 2012 init.ipv6-global
-rwxr-xr-x. 1 root root 1125 Apr 27 2012 [Link]
-rw-r--r--. 1 root root 11736 Apr 27 2012 network-functions
-rw-r--r--. 1 root root 29853 Apr 27 2012 network-functions-ipv6
[root@localhost network-scripts]# ls
ifcfg-eth0 ifdown-ipv6 ifdown-tunnel ifup-ipv6 ifup-routes network-
functions
ifcfg-lo ifdown-isdn ifup ifup-isdn ifup-sit network-
functions-ipv6
ifdown ifdown-post ifup-aliases ifup-plip ifup-tunnel
ifdown-bnep ifdown-ppp ifup-bnep ifup-plusb ifup-wireless
ifdown-eth ifdown-routes ifup-eth ifup-post init.ipv6-global
ifdown-ippp ifdown-sit ifup-ippp ifup-ppp [Link]
[root@localhost network-scripts]# pwd
/etc/sysconfig/network-scripts
[root@localhost network-scripts]# vi ifcfg-bond0
[root@localhost network-scripts]# ls
ifcfg-bond0 ifdown-ippp ifdown-sit ifup-ippp ifup-ppp
[Link]
ifcfg-eth0 ifdown-ipv6 ifdown-tunnel ifup-ipv6 ifup-routes network-
functions
ifcfg-lo ifdown-isdn ifup ifup-isdn ifup-sit network-
functions-ipv6
ifdown ifdown-post ifup-aliases ifup-plip ifup-tunnel
ifdown-bnep ifdown-ppp ifup-bnep ifup-plusb ifup-wireless
ifdown-eth ifdown-routes ifup-eth ifup-post init.ipv6-global
[root@localhost network-scripts]# more ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="static"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="adaed9fd-9bce-4dd9-aa8b-677901d94979"
IPADDR="[Link]"
NETMASK="[Link]"
GATEWAY="[Link]"
DNS1="[Link]"
HWADDR=[Link]
PREFIX=24
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
USERCTL=no
[root@localhost network-scripts]# vi ifcfg-eth0
[root@localhost network-scripts]# ls
ifcfg-bond0 ifdown-ippp ifdown-sit ifup-ippp ifup-ppp
[Link]
ifcfg-eth0 ifdown-ipv6 ifdown-tunnel ifup-ipv6 ifup-routes network-
functions
ifcfg-lo ifdown-isdn ifup ifup-isdn ifup-sit network-
functions-ipv6
ifdown ifdown-post ifup-aliases ifup-plip ifup-tunnel
ifdown-bnep ifdown-ppp ifup-bnep ifup-plusb ifup-wireless
ifdown-eth ifdown-routes ifup-eth ifup-post init.ipv6-global
[root@localhost network-scripts]# cp ifcfg-eth0 [Link]
[root@localhost network-scripts]# vi ifcfg-eth0
[root@localhost network-scripts]# vi ifcfg-eth0
[root@localhost network-scripts]# ls
ifcfg-bond0 ifdown-eth ifdown-routes ifup-eth ifup-post init.ipv6-
global
ifcfg-eth0 ifdown-ippp ifdown-sit ifup-ippp ifup-ppp [Link]
[Link] ifdown-ipv6 ifdown-tunnel ifup-ipv6 ifup-routes network-
functions
ifcfg-lo ifdown-isdn ifup ifup-isdn ifup-sit network-
functions-ipv6
ifdown ifdown-post ifup-aliases ifup-plip ifup-tunnel
ifdown-bnep ifdown-ppp ifup-bnep ifup-plusb ifup-wireless
[root@localhost network-scripts]# vi ifcfg-eth2
[root@localhost network-scripts]# ls
ifcfg-bond0 ifdown-bnep ifdown-ppp ifup-bnep ifup-plusb ifup-wireless
ifcfg-eth0 ifdown-eth ifdown-routes ifup-eth ifup-post init.ipv6-
global
[Link] ifdown-ippp ifdown-sit ifup-ippp ifup-ppp [Link]
ifcfg-eth2 ifdown-ipv6 ifdown-tunnel ifup-ipv6 ifup-routes network-
functions
ifcfg-lo ifdown-isdn ifup ifup-isdn ifup-sit network-
functions-ipv6
ifdown ifdown-post ifup-aliases ifup-plip ifup-tunnel
[root@localhost network-scripts]# vi ifcfg-eth3
[root@localhost network-scripts]#
[root@localhost network-scripts]#
[root@localhost network-scripts]#
[root@localhost network-scripts]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback [Link] brd [Link]
inet [Link]/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth0
inet6 fe80::a00:27ff:feee:c3f9/64 scope link
valid_lft forever preferred_lft forever
3: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth2
inet6 fe80::a00:27ff:fe89:2cdd/64 scope link
valid_lft forever preferred_lft forever
4: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth3
inet6 fe80::a00:27ff:fe40:6508/64 scope link
valid_lft forever preferred_lft forever
5: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global virbr0
6: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master virbr0 state DOWN
qlen 500
link/ether [Link] brd [Link]
[root@localhost network-scripts]# pwd
/etc/sysconfig/network-scripts
[root@localhost network-scripts]# more /etc/[Link]
/etc/[Link]: No such file or directory
[root@localhost network-scripts]# ls /etc
abrt gcrypt maven
[Link]
acpi gdm mcelog
[Link].d
adjtime [Link].d [Link] redhat-
lsb
akonadi ghostscript [Link] redhat-
release
aliases gimp [Link] request-
[Link]
[Link] gnome-vfs-2.0 modprobe.d request-
key.d
alsa gnupg motd
[Link]
alternatives group mtab rpc
anacrontab group- [Link] rpm
[Link] [Link] multipath
rpmdevtools
ant.d gshadow [Link] rpmlint
[Link] gshadow- nanorc
[Link]
[Link] gssapi_mech.conf netconfig
rsyslog.d
audisp gtk-2.0 NetworkManager rwtab
audit hal networks rwtab.d
autofs_ldap_auth.conf [Link] [Link] samba
[Link] hosts [Link] sane.d
[Link] [Link] ntp sasl2
[Link] [Link] [Link] scl
[Link] hp [Link]
securetty
avahi htdig obex-data-server security
bash_completion.d httpd [Link] selinux
bashrc [Link] [Link] services
blkid init oddjob
[Link]
bluetooth init.d [Link]
setuptool.d
bonobo-activation inittab [Link].d sgml
[Link] [Link] [Link] shadow
certmonger inittab.no_crs openldap shadow-
[Link] inputrc opt shells
[Link] ipa oracle skel
cgsnapshot_blacklist.conf iproute2 oracle-release
[Link]
chkconfig.d [Link] [Link] [Link]
ConsoleKit ipsec.d oratab sound
cron.d [Link] PackageKit ssh
[Link] iscsi pam.d ssl
[Link] issue pango sssd
[Link] [Link] passwd statetab
[Link] java passwd-
statetab.d
crontab jvm pcmcia
subversion
[Link] jvm-commmon pinforc sudoers
crypttab kde pki
sudoers.d
[Link] kde4rc plymouth sudo-
[Link]
[Link] kderc pm
sysconfig
cups kdump-adv-conf [Link]
[Link]
dbus-1 [Link] polkit-1
[Link]
default [Link] popt.d
[Link]
depmod.d kshrc portreserve sysctl.d
dhcp [Link] postfix system-
release
DIR_COLORS ksysguarddrc ppp system-
release-cpe
DIR_COLORS.256color [Link] [Link] terminfo
DIR_COLORS.lightbgcolor latrace.d [Link] texmf
[Link] [Link] [Link].d tgt
dnsmasq.d [Link] printcap
[Link]
dovecot [Link].d profile udev
[Link] [Link] profile.d
[Link]
[Link].d libibverbs.d protocols vimrc
[Link] libreport pulse virc
[Link] [Link] quotagrpadmins vsftpd
environment libvirt quotatab
[Link]
ethers localtime [Link]
[Link]
ethertypes [Link] rc wgetrc
event.d [Link] rc0.d
wpa_supplicant
exports logrotate.d rc1.d
[Link]
[Link] lsb-release.d rc2.d X11
festival [Link] rc3.d xdg
filesystems lvm rc4.d xinetd.d
fonts magic rc5.d xml
foomatic mail rc6.d [Link]
[Link] mailcap rc.d yum
fstab [Link] [Link] [Link]
[Link] makedev.d [Link]
[Link].d
gconf [Link] [Link]
[root@localhost network-scripts]# vi /etc/[Link]
[root@localhost network-scripts]# modprobe bonding
WARNING: Deprecated config file /etc/[Link], all config files belong into
/etc/modprobe.d/.
[root@localhost network-scripts]# service restart network
restart: unrecognized service
[root@localhost network-scripts]# service network restart
Shutting down interface eth0: Device state: 3 (disconnected)
[ OK ]
Shutting down interface [Link]: Error: Device 'eth0'
(/org/freedesktop/NetworkManager/Devices/0) disc onnecting failed:
This device is not active
[FAILED]
Shutting down interface eth2: Device state: 3 (disconnected)
[ OK ]
Shutting down interface eth3: Device state: 3 (disconnected)
[ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface bond0: Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/5
[ OK ]
Bringing up interface [Link]: Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/6
[ OK ]
Bringing up interface eth2: [ OK ]
[root@localhost network-scripts]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: load balancing (round-robin)


MII Status: down
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
[root@localhost network-scripts]# ls
ifcfg-bond0 ifdown ifdown-post ifup-aliases ifup-plip ifup-tunnel
ifcfg-eth0 ifdown-bnep ifdown-ppp ifup-bnep ifup-plusb ifup-
wireless
[Link] ifdown-eth ifdown-routes ifup-eth ifup-post init.ipv6-
global
ifcfg-eth2 ifdown-ippp ifdown-sit ifup-ippp ifup-ppp [Link]
ifcfg-eth3 ifdown-ipv6 ifdown-tunnel ifup-ipv6 ifup-routes network-
functions
ifcfg-lo ifdown-isdn ifup ifup-isdn ifup-sit network-
functions-ipv6
[root@localhost network-scripts]# service network restart
Shutting down interface eth0: Device state: 3 (disconnected)
[ OK ]
Shutting down interface [Link]: Error: Device 'eth0'
(/org/freedesktop/NetworkManager/Devices/0) disc onnecting failed:
This device is not active
[FAILED]
Shutting down interface eth2: Error: Device 'eth2'
(/org/freedesktop/NetworkManager/Devices/1) disconne cting failed:
This device is not active
[FAILED]
Shutting down interface eth3: Error: Device 'eth3'
(/org/freedesktop/NetworkManager/Devices/2) disconne cting failed:
This device is not active
[FAILED]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface bond0: Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/7
[ OK ]
Bringing up interface [Link]: Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/8
[ OK ]
Bringing up interface eth2: RTNETLINK answers: File exists
[ OK ]
[root@localhost network-scripts]# ls
ifcfg-bond0 ifdown ifdown-post ifup-aliases ifup-plip ifup-tunnel
ifcfg-eth0 ifdown-bnep ifdown-ppp ifup-bnep ifup-plusb ifup-
wireless
[Link] ifdown-eth ifdown-routes ifup-eth ifup-post init.ipv6-
global
ifcfg-eth2 ifdown-ippp ifdown-sit ifup-ippp ifup-ppp [Link]
ifcfg-eth3 ifdown-ipv6 ifdown-tunnel ifup-ipv6 ifup-routes network-
functions
ifcfg-lo ifdown-isdn ifup ifup-isdn ifup-sit network-
functions-ipv6
[root@localhost network-scripts]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback [Link] brd [Link]
inet [Link]/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth0
inet6 fe80::a00:27ff:feee:c3f9/64 scope link
valid_lft forever preferred_lft forever
3: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether [Link] brd [Link]
inet6 fe80::a00:27ff:fe89:2cdd/64 scope link
valid_lft forever preferred_lft forever
4: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether [Link] brd [Link]
inet6 fe80::a00:27ff:fe40:6508/64 scope link
valid_lft forever preferred_lft forever
5: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global virbr0
6: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master virbr0 state DOWN
qlen 500
link/ether [Link] brd [Link]
8: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN
link/ether [Link] brd [Link]
[root@localhost network-scripts]# ls
ifcfg-bond0 ifdown ifdown-post ifup-aliases ifup-plip ifup-tunnel
ifcfg-eth0 ifdown-bnep ifdown-ppp ifup-bnep ifup-plusb ifup-
wireless
[Link] ifdown-eth ifdown-routes ifup-eth ifup-post init.ipv6-
global
ifcfg-eth2 ifdown-ippp ifdown-sit ifup-ippp ifup-ppp [Link]
ifcfg-eth3 ifdown-ipv6 ifdown-tunnel ifup-ipv6 ifup-routes network-
functions
ifcfg-lo ifdown-isdn ifup ifup-isdn ifup-sit network-
functions-ipv6
[root@localhost network-scripts]# rm [Link]
rm: remove regular file `[Link]'? y
[root@localhost network-scripts]# service network restart
Shutting down interface eth0: Device state: 3 (disconnected)
[ OK ]
Shutting down interface eth2: Error: Device 'eth2'
(/org/freedesktop/NetworkManager/Devices/1) disconne cting failed:
This device is not active
[FAILED]
Shutting down interface eth3: Error: Device 'eth3'
(/org/freedesktop/NetworkManager/Devices/2) disconne cting failed:
This device is not active
[FAILED]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface bond0: Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/10
[ OK ]
Bringing up interface eth2: RTNETLINK answers: File exists
[ OK ]
[root@localhost network-scripts]# ifconfig -a
bond0 Link encap:Ethernet HWaddr [Link]
BROADCAST MASTER MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

eth0 Link encap:Ethernet HWaddr [Link]


inet addr:[Link] Bcast:[Link] Mask:[Link]
inet6 addr: fe80::a00:27ff:feee:c3f9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2457 errors:0 dropped:0 overruns:0 frame:0
TX packets:2004 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:228768 (223.4 KiB) TX bytes:276452 (269.9 KiB)

eth2 Link encap:Ethernet HWaddr [Link]


inet6 addr: fe80::a00:27ff:fe89:2cdd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:608 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:69034 (67.4 KiB) TX bytes:6809 (6.6 KiB)

eth3 Link encap:Ethernet HWaddr [Link]


inet6 addr: fe80::a00:27ff:fe40:6508/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:594 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:64629 (63.1 KiB) TX bytes:7246 (7.0 KiB)

lo Link encap:Local Loopback


inet addr:[Link] Mask:[Link]
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:154 errors:0 dropped:0 overruns:0 frame:0
TX packets:154 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:14604 (14.2 KiB) TX bytes:14604 (14.2 KiB)

virbr0 Link encap:Ethernet HWaddr [Link]


inet addr:[Link] Bcast:[Link] Mask:[Link]
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

virbr0-nic Link encap:Ethernet HWaddr [Link]


BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

[root@localhost network-scripts]# cat /proc/net/bonding/bond0


Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: load balancing (round-robin)


MII Status: down
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
[root@localhost network-scripts]# /etc/init.d/network stop
Shutting down interface eth0:
login as: root
root@[Link]'s password:
Last login: Wed May 1 [Link] 2013 from [Link]
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# pwd
/root
[root@localhost ~]# cd /
[root@localhost /]# cd /etc/sysconfig/network-scripts
[root@localhost network-scripts]# ls
ifcfg-bond0 ifdown ifdown-isdn ifdown-tunnel ifup-ippp ifup-post
ifup-wireless
ifcfg-eth0 ifdown-bnep ifdown-post ifup ifup-ipv6 ifup-ppp
init.ipv6-global
ifcfg-eth2 ifdown-eth ifdown-ppp ifup-aliases ifup-isdn ifup-routes
[Link]
ifcfg-eth3 ifdown-ippp ifdown-routes ifup-bnep ifup-plip ifup-sit
network-functions
ifcfg-lo ifdown-ipv6 ifdown-sit ifup-eth ifup-plusb ifup-tunnel
network-functions-ipv6
[root@localhost network-scripts]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: load balancing (round-robin)


MII Status: down
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
[root@localhost network-scripts]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback [Link] brd [Link]
inet [Link]/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth0
inet6 fe80::a00:27ff:feee:c3f9/64 scope link
valid_lft forever preferred_lft forever
3: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether [Link] brd [Link]
inet6 fe80::a00:27ff:fe89:2cdd/64 scope link
valid_lft forever preferred_lft forever
4: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether [Link] brd [Link]
inet6 fe80::a00:27ff:fe40:6508/64 scope link
valid_lft forever preferred_lft forever
5: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global virbr0
6: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master virbr0 state DOWN
qlen 500
link/ether [Link] brd [Link]
8: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN
link/ether [Link] brd [Link]
[root@localhost network-scripts]# ls
ifcfg-bond0 ifdown ifdown-isdn ifdown-tunnel ifup-ippp ifup-post
ifup-wireless
ifcfg-eth0 ifdown-bnep ifdown-post ifup ifup-ipv6 ifup-ppp
init.ipv6-global
ifcfg-eth2 ifdown-eth ifdown-ppp ifup-aliases ifup-isdn ifup-routes
[Link]
ifcfg-eth3 ifdown-ippp ifdown-routes ifup-bnep ifup-plip ifup-sit
network-functions
ifcfg-lo ifdown-ipv6 ifdown-sit ifup-eth ifup-plusb ifup-tunnel
network-functions-ipv6
[root@localhost network-scripts]# more ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="none"
#NM_CONTROLLED="yes"
ONBOOT="yes"
#TYPE="Ethernet"
#UUID="adaed9fd-9bce-4dd9-aa8b-677901d94979"
#IPADDR="[Link]"
#NETMASK="[Link]"
#GATEWAY="[Link]"
#DNS1="[Link]"
#HWADDR=[Link]
#PREFIX=24
#DEFROUTE=yes
#IPV4_FAILURE_FATAL=yes
#IPV6INIT=no
#NAME="System eth0"
USERCTL=no
MASTER=bond0
SLAVE=yes
[root@localhost network-scripts]# ls
ifcfg-bond0 ifdown ifdown-isdn ifdown-tunnel ifup-ippp ifup-post
ifup-wireless
ifcfg-eth0 ifdown-bnep ifdown-post ifup ifup-ipv6 ifup-ppp
init.ipv6-global
ifcfg-eth2 ifdown-eth ifdown-ppp ifup-aliases ifup-isdn ifup-routes
[Link]
ifcfg-eth3 ifdown-ippp ifdown-routes ifup-bnep ifup-plip ifup-sit
network-functions
ifcfg-lo ifdown-ipv6 ifdown-sit ifup-eth ifup-plusb ifup-tunnel
network-functions-ipv6
[root@localhost network-scripts]# more ifcfg-bond0
DEVICE=bond0
IPADDR=[Link]
NETMASK=[Link]
GATEWAY=[Link]
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
[root@localhost network-scripts]# ls
ifcfg-bond0 ifdown ifdown-isdn ifdown-tunnel ifup-ippp ifup-post
ifup-wireless
ifcfg-eth0 ifdown-bnep ifdown-post ifup ifup-ipv6 ifup-ppp
init.ipv6-global
ifcfg-eth2 ifdown-eth ifdown-ppp ifup-aliases ifup-isdn ifup-routes
[Link]
ifcfg-eth3 ifdown-ippp ifdown-routes ifup-bnep ifup-plip ifup-sit
network-functions
ifcfg-lo ifdown-ipv6 ifdown-sit ifup-eth ifup-plusb ifup-tunnel
network-functions-ipv6
[root@localhost network-scripts]# vi ifcfg-eth0
[root@localhost network-scripts]# vi ifcfg-bond0
[root@localhost network-scripts]# ls
ifcfg-bond0 ifdown ifdown-isdn ifdown-tunnel ifup-ippp ifup-post
ifup-wireless
ifcfg-eth0 ifdown-bnep ifdown-post ifup ifup-ipv6 ifup-ppp
init.ipv6-global
ifcfg-eth2 ifdown-eth ifdown-ppp ifup-aliases ifup-isdn ifup-routes
[Link]
ifcfg-eth3 ifdown-ippp ifdown-routes ifup-bnep ifup-plip ifup-sit
network-functions
ifcfg-lo ifdown-ipv6 ifdown-sit ifup-eth ifup-plusb ifup-tunnel
network-functions-ipv6
[root@localhost network-scripts]# modprobe -v bonding
WARNING: Deprecated config file /etc/[Link], all config files belong into
/etc/modprobe.d/.
[root@localhost network-scripts]# init 6
[root@localhost network-scripts]#
login as: root
root@[Link]'s password:
Last login: Wed May 1 [Link] 2013 from [Link]
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback [Link] brd [Link]
inet [Link]/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 10 00
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth0
3: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth2
inet6 fe80::a00:27ff:fe89:2cdd/64 scope link
valid_lft forever preferred_lft forever
4: eth3: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 10 00
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth3
5: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global bond0
inet6 fe80::a00:27ff:feee:c3f9/64 scope link
valid_lft forever preferred_lft forever
6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global virbr0
7: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master virbr0 state DOWN
qlen 500
link/ether [Link] brd [Link]
[root@localhost ~]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: fault-tolerance (active-backup)


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: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: [Link]
Slave queue ID: 0

Slave Interface: eth3


MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: [Link]
Slave queue ID: 0
[root@localhost ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback [Link] brd [Link]
inet [Link]/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth0
3: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth2
inet6 fe80::a00:27ff:fe89:2cdd/64 scope link
valid_lft forever preferred_lft forever
4: eth3: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth3
5: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global bond0
inet6 fe80::a00:27ff:feee:c3f9/64 scope link
valid_lft forever preferred_lft forever
6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global virbr0
7: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master virbr0 state DOWN
qlen 500
link/ether [Link] brd [Link]
[root@localhost ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback [Link] brd [Link]
inet [Link]/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth0
3: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth2
inet6 fe80::a00:27ff:fe89:2cdd/64 scope link
valid_lft forever preferred_lft forever
4: eth3: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth3
5: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global bond0
inet6 fe80::a00:27ff:feee:c3f9/64 scope link
valid_lft forever preferred_lft forever
6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global virbr0
7: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master virbr0 state DOWN
qlen 500
link/ether [Link] brd [Link]
[root@localhost ~]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: fault-tolerance (active-backup)


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: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: [Link]
Slave queue ID: 0

Slave Interface: eth3


MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: [Link]
Slave queue ID: 0
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cat /sys/class/net/bond0/bonding/slaves
eth0 eth3
[root@localhost ~]# cat /sys/class/net/bond0/bonding/active_slave
eth0
[root@localhost ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback [Link] brd [Link]
inet [Link]/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 10 00
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth0
3: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth2
inet6 fe80::a00:27ff:fe89:2cdd/64 scope link
valid_lft forever preferred_lft forever
4: eth3: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 10 00
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth3
5: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global bond0
inet6 fe80::a00:27ff:feee:c3f9/64 scope link
valid_lft forever preferred_lft forever
6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global virbr0
7: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master virbr0 state DOWN
qlen 500
link/ether [Link] brd [Link]
[root@localhost ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback [Link] brd [Link]
inet [Link]/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth0
3: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth2
inet6 fe80::a00:27ff:fe89:2cdd/64 scope link
valid_lft forever preferred_lft forever
4: eth3: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth3
5: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global bond0
inet6 fe80::a00:27ff:feee:c3f9/64 scope link
valid_lft forever preferred_lft forever
6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global virbr0
7: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master virbr0 state DOWN
qlen 500
link/ether [Link] brd [Link]
[root@localhost ~]# ls
[Link] Documents [Link] Music Public Videos
Desktop Downloads [Link] Pictures Templates
[root@localhost ~]# cd /
[root@localhost /]# cd etc
[root@localhost etc]# cd sysconfig/
[root@localhost sysconfig]# cd network
network networking/ network-scripts/
[root@localhost sysconfig]# cd network-scripts/
[root@localhost network-scripts]# ls
ifcfg-bond0 ifdown ifdown-isdn ifdown-tunnel ifup-ippp ifup-post
ifup-wireless
ifcfg-eth0 ifdown-bnep ifdown-post ifup ifup-ipv6 ifup-ppp
init.ipv6-global
ifcfg-eth2 ifdown-eth ifdown-ppp ifup-aliases ifup-isdn ifup-routes
[Link]
ifcfg-eth3 ifdown-ippp ifdown-routes ifup-bnep ifup-plip ifup-sit
network-functions
ifcfg-lo ifdown-ipv6 ifdown-sit ifup-eth ifup-plusb ifup-tunnel
network-functions-ipv6
[root@localhost network-scripts]# more ifcfg-bond0
DEVICE=bond0
IPADDR=[Link]
NETMASK=[Link]
GATEWAY=[Link]
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
[root@localhost network-scripts]# more ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
#NM_CONTROLLED="yes"
ONBOOT=yes
#TYPE="Ethernet"
#UUID="adaed9fd-9bce-4dd9-aa8b-677901d94979"
#IPADDR="[Link]"
#NETMASK="[Link]"
#GATEWAY="[Link]"
#DNS1="[Link]"
HWADDR=[Link]
#PREFIX=24
#DEFROUTE=yes
#IPV4_FAILURE_FATAL=yes
#IPV6INIT=no
#NAME="System eth0"
USERCTL=no
MASTER=bond0
SLAVE=yes
[root@localhost network-scripts]# ls
ifcfg-bond0 ifdown ifdown-isdn ifdown-tunnel ifup-ippp ifup-post
ifup-wireless
ifcfg-eth0 ifdown-bnep ifdown-post ifup ifup-ipv6 ifup-ppp
init.ipv6-global
ifcfg-eth2 ifdown-eth ifdown-ppp ifup-aliases ifup-isdn ifup-routes
[Link]
ifcfg-eth3 ifdown-ippp ifdown-routes ifup-bnep ifup-plip ifup-sit
network-functions
ifcfg-lo ifdown-ipv6 ifdown-sit ifup-eth ifup-plusb ifup-tunnel
network-functions-ipv6
[root@localhost network-scripts]# more ifcfg-eth2
DEVICE="eth2"
BOOTPROTO="none"
ONBOOT="yes"
USERCTL="no"
#setting for bonding
MASTER="bond0"
SLAVE="YES"
[root@localhost network-scripts]# cat /sys/class/net/bond0/bonding/slaves
eth0 eth3
[root@localhost network-scripts]# more ifcfg-eth3
DEVICE="eth3"
BOOTPROTO="no"
ONBOOT="yes"
#setting for bonding
MASTER="bond0"
SLAVE="yes"
[root@localhost network-scripts]# vi ifcfg-eth3
[root@localhost network-scripts]# vi ifcfg-eth2
[root@localhost network-scripts]# service restart network
restart: unrecognized service
[root@localhost network-scripts]# service network restart
Shutting down interface bond0: Device state: 3 (disconnected)
Device state: 3 (disconnected)
Device state: 3 (disconnected)
login as: root
root@[Link]'s password:
Last login: Wed May 1 [Link] 2013 from [Link]
[root@localhost ~]# bash
[root@localhost ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback [Link] brd [Link]
inet [Link]/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth0
3: eth2: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth2
4: eth3: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth3
5: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global bond0
inet6 fe80::a00:27ff:feee:c3f9/64 scope link
valid_lft forever preferred_lft forever
6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global virbr0
7: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master virbr0 state DOWN
qlen 500
link/ether [Link] brd [Link]
[root@localhost ~]#
login as: root
root@[Link]'s password:
Last login: Thu May 2 [Link] 2013 from [Link]
[root@localhost ~]# bash
[root@localhost ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback [Link] brd [Link]
inet [Link]/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth0
3: eth2: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth2
4: eth3: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth3
5: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global bond0
inet6 fe80::a00:27ff:feee:c3f9/64 scope link
valid_lft forever preferred_lft forever
6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global virbr0
7: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master virbr0 state DOWN
qlen 500
link/ether [Link] brd [Link]
[root@localhost ~]# cat /sys/class/net/bond0/bonding/slaves
eth0 eth2 eth3
[root@localhost ~]# cat /sys/class/net/bond0/bonding/actave_slaves
cat: /sys/class/net/bond0/bonding/actave_slaves: No such file or directory
[root@localhost ~]# cat /sys/class/net/bond0/bonding/active_slaves
cat: /sys/class/net/bond0/bonding/active_slaves: No such file or directory
[root@localhost ~]# cat /sys/class/net/bond0/bonding/active_slave
eth0
[root@localhost ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback [Link] brd [Link]
inet [Link]/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth0
3: eth2: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth2
4: eth3: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth3
5: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global bond0
inet6 fe80::a00:27ff:feee:c3f9/64 scope link
valid_lft forever preferred_lft forever
6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global virbr0
7: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master virbr0 state DOWN
qlen 500
link/ether [Link] brd [Link]
[root@localhost ~]# echo -eth0 > /sys/class/net/bond0/bonding/slaves
[root@localhost ~]#
login as: root
root@[Link]'s password:
Last login: Thu May 2 [Link] 2013 from [Link]
[root@localhost ~]# bash
[root@localhost ~]# cat /sys/class/net/bond0/bonding/active_slave
eth0
[root@localhost ~]# echo -eth0 > /sys/class/net/bond0/bonding/slaves
[root@localhost ~]#
login as: root
root@[Link]'s password:
Last login: Thu May 2 [Link] 2013 from [Link]
[root@localhost ~]# bash
[root@localhost ~]# cat /sys/class/net/bond0/bonding/active_slave
eth0
[root@localhost ~]# echo +eth2 > /sys/class/net/bond0/bonding/slaves
bash: echo: write error: Device or resource busy
[root@localhost ~]# cat /sys/class/net/bond0/bonding/active_slave
eth0
[root@localhost ~]# cat /sys/class/net/bond0/bonding/slaves
eth0 eth2 eth3
[root@localhost ~]# echo -eth3 > /sys/class/net/bond0/bonding/slaves
[root@localhost ~]# cat /sys/class/net/bond0/bonding/slaves
eth0 eth2
[root@localhost ~]# cat /sys/class/net/bond0/bonding/slaves
eth0 eth2
[root@localhost ~]# cat /sys/class/net/bond0/bonding/slaves
eth0 eth2
[root@localhost ~]# echo -eth2 > /sys/class/net/bond0/bonding/slaves
[root@localhost ~]# cat /sys/class/net/bond0/bonding/slaves
eth0
[root@localhost ~]# echo +eth2 > /sys/class/net/bond0/bonding/slaves
[root@localhost ~]# echo +eth3 > /sys/class/net/bond0/bonding/slaves
[root@localhost ~]# cat /sys/class/net/bond0/bonding/slaves
eth0 eth2 eth3
[root@localhost ~]# cat /sys/class/net/bond0/bonding/active_slave
eth0
[root@localhost ~]# modprobe -v bonding
WARNING: Deprecated config file /etc/[Link], all config files belong into
/etc/modprobe.d/.
[root@localhost ~]# modprobe bonding
WARNING: Deprecated config file /etc/[Link], all config files belong into
/etc/modprobe.d/.
[root@localhost ~]# more /etc/modprobe
/etc/modprobe: No such file or directory
[root@localhost ~]# more /etc/[Link]
alias bond0 bonding
options bond0 mode=1 miimon=100
[root@localhost ~]# vi /etc/[Link]
[root@localhost ~]# cd /etc
[root@localhost etc]# more [Link]
[Link]: No such file or directory
[root@localhost etc]# modprobe -v bonding
WARNING: Deprecated config file /etc/[Link], all config files belong into
/etc/modprobe.d/.
[root@localhost etc]# pwd
/etc
[root@localhost etc]# mv [Link] modprobe.d
[root@localhost etc]# modprobe -v bonding
[root@localhost etc]# cat /sys/class/net/bond0/bonding/slaves
eth0 eth2 eth3
[root@localhost etc]# cat /sys/class/net/bond0/bonding/active_slave
eth0
[root@localhost etc]# lsmod |grep bond
bonding 122351 0
[root@localhost etc]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback [Link] brd [Link]
inet [Link]/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth0
3: eth2: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth2
4: eth3: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master
bond0 state UP qlen 1000
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global eth3
5: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global bond0
inet6 fe80::a00:27ff:feee:c3f9/64 scope link
valid_lft forever preferred_lft forever
6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether [Link] brd [Link]
inet [Link]/24 brd [Link] scope global virbr0
7: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master virbr0 state DOWN
qlen 500
link/ether [Link] brd [Link]
[root@localhost etc]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: fault-tolerance (active-backup)


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: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: [Link]
Slave queue ID: 0

Slave Interface: eth2


MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: [Link]
Slave queue ID: 0

Slave Interface: eth3


MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: [Link]
Slave queue ID: 0
[root@localhost etc]# cat /sys/class/net/bond0/bonding/slaves
eth0 eth2 eth3
[root@localhost etc]# cat /sys/class/net/bond0/bonding/active_slave
eth0
[root@localhost etc]# cat /sys/class/net/bond0/bonding/slaves
eth0 eth2 eth3
[root@localhost etc]# cat /sys/class/net/bond0/bonding/active_slave
eth0
[root@localhost etc]# modprobe -v bonding
[root@localhost etc]# echo -eth0 > /sys/class/net/bond0/bonding/slaves
[root@localhost etc]#
login as: root
root@[Link]'s password:
Last login: Thu May 2 [Link] 2013 from [Link]
[root@localhost ~]# bash
[root@localhost ~]# cat /sys/class/net/bond0/bonding/active_slave
eth0
[root@localhost ~]# cat /sys/class/net/bond0/bonding/slaves
eth0 eth2 eth3
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cat /sys/class/net/bond0/bonding/active_slave
eth0
[root@localhost ~]# echo -eth3 > /sys/class/net/bond0/bonding/slaves
[root@localhost ~]# cat /sys/class/net/bond0/bonding/active_slave
eth0
[root@localhost ~]# echo -eth3 > /sys/class/net/bond0/bonding/slaves
bash: echo: write error: Invalid argument
[root@localhost ~]# cat /sys/class/net/bond0/bonding/active_slave
eth0
[root@localhost ~]# cat /sys/class/net/bond0/bonding/slaves
eth0 eth2
[root@localhost ~]#
[root@localhost ~]# echo +eth3 > /sys/class/net/bond0/bonding/slaves
[root@localhost ~]# cat /sys/class/net/bond0/bonding/slaves
eth0 eth2 eth3
[root@localhost ~]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: fault-tolerance (active-backup)


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: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: [Link]
Slave queue ID: 0

Slave Interface: eth2


MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: [Link]
Slave queue ID: 0

Slave Interface: eth3


MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: [Link]
Slave queue ID: 0
[root@localhost ~]# echo -eth0 > /sys/class/net/bond0/bonding/slaves
[root@localhost ~]#

You might also like