电脑桌面
添加蚂蚁七词文库到电脑桌面
安装后可以在桌面快捷访问

Centos 双网卡绑定

来源:金蝶云社区作者:金蝶2024-09-225

Centos 双网卡绑定

1.在物理服务器上双网卡绑定,绑定模式设置为mode=6(balance-alb),使用负载均衡提高流量,遵循高可用原则,实现失效保护和负载均衡。

2.mode有0-6共7种模式,常用mode=0,mode=1,mode=6三种模式:
mode=0:平衡负载模式,有自动备援,但需要”Switch”支援及设定;
mode=1:自动备援模式,其中一条线若断线,其他线路将会自动备援;
mode=6:平衡负载模式,有自动备援,不必”Switch”支援及设定;

3.以eth0和eth1为例绑定:
关闭禁用NetworkManager并禁用开机自启动

linux6:
/etc/init.d/NetworkManager stop
chkconfig NetworkManager off
/etc/init.d/network restart

linux7:
systemctl stop NetworkManager
systemctl disable NetworkManager

4.关闭iptables和selinux(可选)
Linux6:
/etc/init.d/iptables stop
chkconfig iptables off

#立即关闭selinux并永久禁用
setenforce 0
sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/‘ /etc/selinux/config

Linux7:
systemctl stop firewalld
systemctl disable firewalld

#立即关闭selinux并永久禁用
setenforce 0
sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/‘ /etc/selinux/config

5.修改主机名
Linux 6 :
vi /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=test

#刷新生效
hostname test
source /etc/sysconfig/network

linux7:
hostnamectl set-hostname test
su  - root生效或重新登录生效


6.配置IP:
cd /etc/sysconfig/network-scripts
私有IP:
[root@test network-scripts]# cat ifcfg-eth3
DEVICE=eth3
ONBOO

Centos 双网卡绑定

1.在物理服务器上双网卡绑定,绑定模式设置为mode=6(balance-alb),使用负载均衡提高流量,遵循高可用原则,实现失效保护和负载均衡。2.mod...
点击下载文档文档为doc格式

声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

已经是第一篇
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息
QQ群
  • 答案:my7c点击这里加入QQ群
支持邮箱
微信
  • 微信