赞
踩
前言
此文章涉及的配置在vmware 虚拟机中测试会有问题,需要在非vmware环境中进行测试。比如:物理机,kvm环境等…
[root@localhost ~]# nkvers
############## Kylin Linux Version #################
Release:
Kylin Linux Advanced Server release V10 (Sword)
Kernel:
4.19.90-24.4.v2101.ky10.x86_64
Build:
Kylin Linux Advanced Server
release V10 (SP2) /(Sword)-x86_64-Build09/20210524
#################################################
nmcli connection down bond0
mkdir /root/bak
mv /etc/sysconfig/network-scripts/ifcfg-bond* /root/bak
nmcli connection delete bond-slave-ens33
nmcli connection delete bond-slave-3ns35
nmcli connection delete bond0
nmcli connection add type bond con-name bond0 ifname bond0 bond.options "mode=active-backup,miimon=100,primary=ens35" ipv4.method disabled ipv6.method ignore
nmcli connection add type ethernet ifname ens35 con-name bond0-ens35 master bond0
nmcli connection add type ethernet ifname ens33 con-name bond0-ens33 master bond0
nmcli connection modify bond0 ipv4.addresses 172.16.211.100/24 ipv4.gateway 172.16.211.254 ipv4.method manual ipv6.method ignore
echo "MACADDR=00:0c:29:3b:4c:47" >> /etc/sysconfig/network-scripts/ifcfg-bond0
nmcli connection reload
down主网卡命令为:nmcli connection down bond0-ens35
重启命令:reboot
分别测试网络连通性,使用ping命令:ping <bond0上配置的网关地址>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。