当前位置: 首页 > Linux

【1分钟系列教程】Linux系统双网卡绑定配置

时间:2023-04-06 20:27:04 Linux

系统版本[root@~]#cat/etc/redhat-releaseCentOSrelease6.8(Final)[root@~]#uname-r2.6.32-642.6.1.el6.x86_64网卡说明eth0192.168.1.8(服务器外网卡)eth1eth2两块服务器网卡(内网)关闭防火墙[root@~]#/etc/init.d/iptablesstop[root@~]#chkconfigiptablesoffcloseselinux[root@~]#setenforce0[root@~]#sed-i's/SELINUX=enforcing/SELINUX=disabled/'/etc/selinux/configdisableNetworkManager[root@~]#/etc/init.d/NetworkManagerstopStoppingNetworkManagerdaemon:[OK][root@~]#chkconfigNetworkManageroff[root@~]#/etc/init.d/networkrestartediteth1网卡[root@~]#cd/etc/sysconfig/network-scripts/[root@network-scripts\]#cat>ifcfg-eth1<ifcfg-eth2<ifcfg-bind0</etc/modprobe.conf<>/etc/rc.local<