CentOS Nic Aggregation

Source: Internet
Author: User

1, Cp/etc/sysconfig/network-scripts/ifcfg-eth0/etc/sysconfig/network-scripts/ifcfg-bond0
2, Vi/etc/sysconfig/network-scripts/ifcfg-bond0 file, the contents are as follows:
Device=bond0
Userctl=no
Bootproto=static
ipaddr=192.168.233.232
netmask=255.255.255.0
Onboot=yes
gateway=192.168.233.1
Type=ethernet

3, Vi/etc/sysconfig/network-scripts/ifcfg-eth0 file, the contents are as follows:
Device=eth0
Onboot=yes
Type=ethernet
Master=bond0
Slave=yes
Userctl=no

4, Vi/etc/sysconfig/network-scripts/ifcfg-eth1 file, the contents are as follows:
Device=eth1
Onboot=yes
Type=ethernet
Master=bond0
Slave=yes
Userctl=no

5, vi/etc/modprobe.conf Increase:
Alias Bond0 Bonding
Options Bond0 miimon=100 mode=0

6. Service Network restart
Results without error:
[Email protected] network-scripts]# service network restart
Shutting down interface bond0: [OK]
Shutting down loopback interface: [OK]
Bringing up loopback interface: [OK]
Bringing Up interface bond0: [OK]
[Email protected] network-scripts]#

7. Restart the system

8, check whether the configuration is successful, the following display indicates a successful configuration
[Email protected] network-scripts]# ifconfig
Bond0 Link encap:ethernet HWaddr 00:0c:29:df:d6:84
inet addr:192.168.233.232 bcast:192.168.233.255 mask:255.255.255.0
Up broadcast RUNNING MASTER multicast mtu:1500 metric:1
RX packets:756 errors:0 dropped:0 overruns:0 frame:0
TX packets:836 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:74148 (72.4 KiB) TX bytes:189998 (185.5 KiB)

Eth0 Link encap:ethernet HWaddr 00:0c:29:df:d6:84
Up broadcast RUNNING SLAVE multicast mtu:1500 metric:1
RX packets:735 errors:0 dropped:0 overruns:0 frame:0
TX packets:658 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:70034 (68.3 KiB) TX bytes:159290 (155.5 KiB)

eth1 Link encap:ethernet HWaddr 00:0c:29:df:d6:84
Up broadcast RUNNING SLAVE multicast mtu:1500 metric:1
RX packets:23 errors:0 dropped:0 overruns:0 frame:0
TX packets:190 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4234 (4.1 KiB) TX bytes:32540 (31.7 KiB)

Lo Link encap:local Loopback
inet addr:127.0.0.1 mask:255.0.0.0
Up LOOPBACK RUNNING mtu:16436 metric:1
RX packets:1996 errors:0 dropped:0 overruns:0 frame:0
TX packets:1996 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3242068 (3.0 MiB) TX bytes:3242068 (3.0 MiB)

[Email protected] network-scripts]#

This article is from the "small White Nest" blog, please be sure to keep this source http://qing429.blog.51cto.com/5781009/1589368

CentOS Nic Aggregation

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.