Ask Your Question

Unable to change static IP

asked 2014-02-14 08:01:25 -0500

philip.allen gravatar image

updated 2014-02-14 09:15:05 -0500

mether gravatar image


When I originally installed and configured Fedora 20 I edited /etc/sysconfig/network-scripts/ifcfg-em1 to use a static IP of this all worked perfectly.

Recently I changed ISP and the router they provided doesn't allow me to use a class B network (wtf?) so I had to change my static IP. I edited the ifcfg-em1 file in network-scripts again this time to use IP address of I then run systemctl restart network.service and got OK with no errors but when I checked ifconfig the ip address hadn't changed and was still

I doubled checked ifcfg-em1 and all was OK. Restarted network OK but again the IP hadn't changed. I made a copy of the original ifcfg-em1 using dhcp so I swapped this back, restarted networking but still the ip address hadn't changed form

After making a backup of the ifcfg-em1 file I removed it from the network-script directory and then rebooted. When I logged back in and check the ip address it now had a dhcp assigned address of So I thought happy days all I need to do now is copy the backup ifcfg to network-scripts and restart networking to get my required static ip. But no this failed. I ran systemctl status network.service and got the following error.

network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network)
   Active: failed (Result: exit-code) since Fri 2014-02-14 13:45:44 GMT; 4min 30s ago
  Process: 2548 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

Feb 14 13:45:43 fed00.cubecircle.local systemd[1]: Starting LSB: Bring up/down networking...
Feb 14 13:45:44 fed00.cubecircle.local network[2548]: Bringing up loopback interface:  [  OK  ]
Feb 14 13:45:44 fed00.cubecircle.local network[2548]: Bringing up interface em1:  Error: Unknown connection: af9bdbcf-215d-4eef-a639-b69b190f22fc.
Feb 14 13:45:44 fed00.cubecircle.local network[2548]: [FAILED]
Feb 14 13:45:44 fed00.cubecircle.local systemd[1]: network.service: control process exited, code=exited status=1
Feb 14 13:45:44 fed00.cubecircle.local systemd[1]: Failed to start LSB: Bring up/down networking.
Feb 14 13:45:44 fed00.cubecircle.local systemd[1]: Unit network.service entered failed state.

it looks like it doesn't like the UUID of af9bdbcf-215d-4eef-a639-b69b190f22fc in the ifcfg file but this was the original one.

Is there a way of getting Fedora to recreate the ifcfg-em1 on its own?

Any help would be really appreciated.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-02-14 08:19:38 -0500

cobra gravatar image

updated 2014-02-14 08:20:15 -0500

There is a tool for this - system-config-network. You should use that.

You might also have NetworkManager installed, and that'll take priority. You can check for its running with (iirc) systemctl status NetworkManager.service

If that's running, then you want to log-in to a graphical environment and edit the NetworkManager settings with its own interface (you can do it from the command line, but I always find it messy). You could also turn the service off if you'd prefer to use the older network management tools.

edit flag offensive delete link more


HI, thanks for the answer. I have been able to fix it using the network settings gui tool. I guess I just prefer to do things through the command line.

philip.allen gravatar imagephilip.allen ( 2014-02-14 09:47:39 -0500 )edit

Question Tools

1 follower


Asked: 2014-02-14 08:01:25 -0500

Seen: 4,865 times

Last updated: Feb 14 '14