vmware中双网卡配置

2019-06-29  本文已影响0人  小小全_

(1) 添加一块网卡

(2) 对etho

DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
USERCTL=no
MASTER=bond0
SLAVE=yes

(3) 对eth1

DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
SLAVE=yes
MASTER=bond0
USERCTL=yes

(4) 对bond0

DEVICE=bond0
TYPE=UnKnow
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPADDR=172.16.100.178
NETMASK=255.255.255.0
GATEWAY=172.16.100.1
DNS1=8.8.8.8
USERCTL=no

(5)①配置添加/etc/modprobe.d/dist.conf内容

[root@localhost /]#vi /etc/modprobe.d/dist.conf
最后一行添加
alias bond0 bonding
options bond0 miimon=100 mode=6

②停止 network manager服务

[root@localhost /]# service NetworkManager stop
[root@localhost /]# chkconfig NetworkManager off

注意:重启系统后配置才会生效。

(6)ping外网检查连通性

使用命令ping www.baidu.com
依次模拟网卡故障:ifconfig eth0 down 与ifconfig eth1 down

上一篇 下一篇

猜你喜欢

热点阅读