Hi, I have leap 15.3., I’ve been on dhcp, but now I want to switch to static IP only. So I did this:
me@opensuse:~> cat /etc/sysconfig/network/ifcfg-eth0 BOOTPROTO='static' #ZONE='' IPADDR='10.0.0.71' MTU='1500' NAME='' NETMASK='255.255.255.128' STARTMODE='auto' USERCONTROL='no' me@opensuse:~> cat /etc/sysconfig/network/routes default 10.0.0.1 - -
Before editing resolv.conf, I have replaced NETCONFIG_DNS_POLICY=“auto” with “” in /etc/sysconfig/network/config like this:
and placed in resolv.conf
me@opensuse:~> cat /etc/resolv.conf nameserver 184.108.40.206 nameserver 220.127.116.11
Nonetheless IP and route settings in config files have no effect, everything is still replaced by dhcp. Settings I wrote into /etc/resolv.conf vaporised everytime I reboot, but I managed to resolve it by rm /etc/resolv.conf and creating it again, because it was a symlink to /run. I’m using NetworkManager instead of wicked, so I cannot edit network via yast, but even if I could, I’d like to manage that myself My interface is really eth0, not that enpwhatever.