服务器更换网卡后到配置集群能ping通该做了bond的机器

文章封面

拆掉物理机,安装网卡,安装驱动。 Linux安装步骤 2.1 查找硬件

查找网卡是否安装成功,同时查看设备号:

[root@SW ~]# lspci -d 8088:

2.2 安装驱动

2.3 查找&配置网络控制器

通过2.1获得的设备号,查找网络控制器名称:

[root@SW ~]# ls -l /sys/class/net/|grep pci

lrwxrwxrwx 1 root root 0 Jan 26 18:38 eno1 -> ../../devices/pci0000:5d/0000:5d:02.0/0000:5e:00.0/0000:5f:03.0/0000:60:00.0/net/eno1

lrwxrwxrwx 1 root root 0 Jan 26 18:38 eno2 -> ../../devices/pci0000:5d/0000:5d:02.0/0000:5e:00.0/0000:5f:03.0/0000:60:00.1/net/eno2

lrwxrwxrwx 1 root root 0 Jan 26 19:38 ens4f0 -> ../../devices/pci0000:d7/0000:d7:00.0/0000:d8:00.0/net/ens4f0

lrwxrwxrwx 1 root root 0 Jan 26 19:38 ens4f1 -> ../../devices/pci0000:d7/0000:d7:00.0/0000:d8:00.1/net/ens4f1

lrwxrwxrwx 1 root root 0 Jan 26 18:38 ens6f0 -> ../../devices/pci0000:ae/0000:ae:00.0/0000:af:00.0/net/ens6f0

lrwxrwxrwx 1 root root 0 Jan 26 18:38 ens6f1 -> ../../devices/pci0000:ae/0000:ae:00.0/0000:af:00.1/net/ens6f1

########################################################################################################################################

lspci查看网卡信息,然后 ifconfig -a |grep en 查看每个网卡对应的网口 image

  3.修改 /etc/sysconfig/network-scripts/ 下的 ifcfg文件,对应新的网口,创建新的对应文件

image

然后ifdown掉所有的网口,在ifup新网口,ifup bond0,ifupbond0.91

  4. 集群其他机器此时应该可以ping通该机器的ip

评论

暂无评论