提示:工具下载链接在文章最后

ywtool network ip

vim /etc/sysconfig/network-scripts/ifcfg-eno1

ip a
备注:因为是测试,没有真实的eno1物理网卡,所以ip a没显示,就不截图了
备注:配置br网桥分为两种情况:
(1)配置的网桥原先不存在
(2)配置的网桥已存在
ywtool network br

vim /etc/sysconfig/network-scripts/ifcfg-up0

brctl show

ywtool network br

cat /etc/sysconfig/network-scripts/ifcfg-up0
cat /etc/sysconfig/network-scripts/ifcfg-eno11

ywtool network br

cat /etc/sysconfig/network-scripts/ifcfg-up0
cat /etc/sysconfig/network-scripts/ifcfg-eno12

ywtool network bond

cat /etc/sysconfig/network-scripts/ifcfg-bond0

cat /etc/sysconfig/network-scripts/ifcfg-up0
cat /etc/sysconfig/network-scripts/ifcfg-br0

备注:配置ovs网桥分为两种情况:(配置方法和br网桥一样,在这就不演示了)
(1)配置的网桥原先不存在
(2)配置的网桥已存在
ywtool network ovs

cat /etc/sysconfig/network-scripts/ifcfg-br-eth0
cat /etc/sysconfig/network-scripts/ifcfg-eno10

ovs-vsctl show

ywtool disable network ip

ywtool disable network br

ywtool disable network bond

ywtool disable network ovs

2024.2.29(目前最新)-ywtool-1.18.8下载链接
提取码:dhzt