***************************@loyu*************************************
******************双网卡创建bond虚拟网卡实验*************************
cat > /etc/sysconfig/network-scripts/ifcfg-bond0 << Eof
DEVICE=bond0
BOOTPROTO=static
ONBOOT=yes
IPADDR=172.16.116.60
NETMASK=255.255.255.0
GATEWAY=172.16.116.1
DNS1=192.168.21.2
USERCTL=no
BONDING_OPTS="mode=1 miimon=100 primary=eth0"
Eof
********************************************************************
cat > /etc/sysconfig/network-scripts/ifcfg-eth0 << Eof
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=dhcp
USERCTL=no
MASTER=bond0
SLAVE=yes
Eof
********************************************************************
cat > /etc/sysconfig/network-scripts/ifcfg-eth1 << Eof
DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=dhcp
USERCTL=no
MASTER=bond0
SLAVE=yes
Eof
********************************************************************
[root@oracle-1 ~]# service NetworkManager stop
Stopping NetworkManager daemon:                            [OK]
********************************************************************
[root@oracle-1 ~]# service network restart
Shutting down interface bond0:                             [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface bond0:  Determining if ip address 192.168.21.24 is already in use for device bond0...
                                                           [  OK  ]