请注意系统版本 !
推荐使用Wicked 管理OpenSUSE network
我开始使用openSUSE Tumbleweed,还以为是其标新立异的举措,后来才发现这是Redhat老佛爷强力推行的linux网络管理套件;最新的linux发行版都默认是networkManager, 当然尚有生命力的发行版如Arch 还支持netctl,opensSUSE推行Wicked,缓解大家的忧虑!已经有非常多的同胞备受networkManager的折磨,纵然networkManager支持自动连接,扫描wifi,但是…,各种问题,网络连接不稳定;不同凡响的配置…:
- 首先列举下,net-tool 与networkMananger配置命令的不同:
A collection of programs that form the base set of the NET-3 networking distribution for the Linux operating system. This package includes arp(8), hostname(1), ifconfig(8), ipmaddr, iptunnel, mii-tool(8), nameif(8), netstat(8), plipconfig(8), rarp(8), route(8) and slattach(8).
Maintainers: Bernd Eckenfels, Phil Blundell
Current Version: net-tools 1.60 (see upstream git for updates)
- Please keep in mind that most net-tools programs are obsolete now:
program | obsoleted by |
---|---|
arp | ip neigh |
ifconfig | ip addr |
ipmaddr | ip maddr |
route | ip route |
nameif | ifrename |
mii-tool | ethtool |
ifup/ifdown | ip link |
启用Wicked
启用wicked服务,network.service,并会在下次开机启动时启动wicked
systemctl enable --force wicked
使用root权限手动启动wicked,步骤如下:
systemctl start wickedd.service # which starts wickedd (main server) and associated supplicants: /usr/lib/wicked/bin/wickedd-auto4 --systemd --foreground /usr/lib/wicked/bin/wickedd-dhcp4 --systemd --foreground /usr/lib/wicked/bin/wickedd-dhcp6 --systemd --foreground /usr/sbin/wickedd --systemd --foreground /usr/sbin/wickedd-nanny --systemd --foreground
使用以下命令可以直接禁用或启用网络:
systemctl start wicked.service # or systemctl start network.service
默认配置命令在/etc/wicked/client.xml 中有定义,可以做参照。
##使用Wicked管理网络##
以下地址有详细的介绍就不多讲了
- 请参考Wicked/OpenvSwitch
- https://github.com/openSUSE/wicked