On a fresh Fedora 24 install, I want to disable NetworkManager since I have a static IP and hate daemons.
If I do this after startup (as root), everything works fine:
ifconfig enp1s0 192.168.0.3 netmask 255.255.0.0 ip route add default via 192.168.0.1
What's the equivalent /etc/sysconfig/network-scripts/ifcfg-enp1s0 files? Following https://stackoverflow.com/questions/21432620/how-to-setup-static-ip-in-fedora-19 (which I realize is Fedora 19, not 24, but probably should work anyway), I did:
DEVICE="enp1s0" NM_CONTROLLED="no" NAME=enp1s0 ONBOOT=yes TYPE=Ethernet BOOTPROTO=none DEFROUTE=yes IPV4_FAILURE_FATAL=no IPADDR=192.168.0.3 NETMASK=255.255.0.0 BROADCAST=192.168.255.255 PEERDNS=yes PEERROUTES=yes IPV6INIT=no IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy UUID=[masked though unlikely private] AUTOCONNECT_PRIORITY=-999
but this doesn't work. If I reboot with the above, I get "network is unreachable".
I realize I could simply run my commands in a startup script, but am trying to do things the "right way" for now.