***************************@loyu*******************************************************双网卡创建bond虚拟网卡实验*************************cat > /etc/sysconfig/network-scripts/ifcfg-bond0 << EofDEVICE=bond0BOOTPROTO=staticONBOOT=yesIPADDR=172.16.116.60NETMASK=255.255.255.0GATEWAY=172.16.116.1DNS1=192.168.21.2USERCTL=noBONDING_OPTS="mode=1 miimon=100 primary=eth0"Eof********************************************************************cat > /etc/sysconfig/network-scripts/ifcfg-eth0 << EofDEVICE=eth0TYPE=EthernetONBOOT=yesNM_CONTROLLED=noBOOTPROTO=dhcpUSERCTL=noMASTER=bond0SLAVE=yesEof********************************************************************cat > /etc/sysconfig/network-scripts/ifcfg-eth1 << EofDEVICE=eth1TYPE=EthernetONBOOT=yesNM_CONTROLLED=noBOOTPROTO=dhcpUSERCTL=noMASTER=bond0SLAVE=yesEof********************************************************************[root@oracle-1 ~]# service NetworkManager stopStopping NetworkManager daemon: [OK]********************************************************************[root@oracle-1 ~]# service network restartShutting 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 ]