I am aware that many people prefer to disable NetworkManager, but I don't believe it will be going away and I decided to try to learn how to use it properly. I thought I would begin with something simple, like setting a static IP.
/etc/sysconfig/network-scripts/ifcfg-eth0 to match the settings I want it to have, then saved the file. From what I have read, NetworkManager is supposed to update the settings immediately, but it does not. In fact, after both restarting NM and after a reboot, eth0 keeps using dhcp. I am using a minimal install of Fedora 18 and have installed dhcp, but not yet configured it. ifconfig is no longer part of a minimal install, apparently it is headed towards deprecation.
Below is my ifcfg-eth0 file.
HWADDR=00:0C:29:DF:87:72 TYPE=Ethernet BOOTPROTO=none DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no NAME=eth0 UUID=b15e1bf2-60b5-4469-9c68-88ae05e33301 ONBOOT=yes IPADDR=10.0.0.1 NETMASK=255.255.255.0 GATEWAY=10.0.0.254 DNS1=10.0.0.1 DNS2=126.96.36.199
Below is output from ip addr:
#ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:0c:29:24:75:2f brd ff:ff:ff:ff:ff:ff inet 10.0.0.129/24 brd 10.0.0.255 scope global eth0 inet6 fe80::20c:29ff:fe24:752f/64 scope link valid_lft forever preferred_lft forever
Below is /etc/sysconfig/network: