Open mikuQ opened 1 month ago
wicked
/etc/sysconfig/network/
systemctl status network
systemctl disable NetworkManager && systemctl stop NetworkManager
systemctl enable wicked && systemctl start wicked
systemctl status wicked
网卡操作
wicked show all/eth0/eth1
wicked ifdown eth0
wicked ifup eth0
wicked ifstatus eth0
配置IP地址
SUSE:~ # vim /etc/sysconfig/network/ifcfg-eth0 NAME='' BOOTPROTO='static' STARTMODE='auto' IPADDR=192.168.10.10/24 ZONE=''
配置网关/路由/DNS
vim /etc/sysconfig/network/ifroute-eth0
vim /etc/resolv.conf
SUSE:~ # vim /etc/sysconfig/network/ifroute-eth0 default 192.168.10.1 192.168.20.0 192.168.10.1 255.255.255.0 eth0 SUSE:~ # vim /etc/resolv.conf nameserver 192.168.10.1 systemctl restart wicked wicked ifstatus eth0
wicked
/etc/sysconfig/network/
systemctl status network
systemctl disable NetworkManager && systemctl stop NetworkManager
systemctl enable wicked && systemctl start wicked
systemctl status wicked
网卡操作
wicked show all/eth0/eth1
wicked ifdown eth0
wicked ifup eth0
wicked ifstatus eth0
配置IP地址
/etc/sysconfig/network/
配置网关/路由/DNS
vim /etc/sysconfig/network/ifroute-eth0
vim /etc/resolv.conf