Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unable to change static IP

Hello

When I originally installed and configured Fedora 20 I edited /etc/sysconfig/network-scripts/ifcfg-em1 to use a static IP of 172.16.12.12/16 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 192.168.0.10/24. 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 172.16.12.12/16.

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 172.16.12.12/16.

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 192.168.0.219/24. 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.

Thanks,

Unable to change static IP

Hello

When I originally installed and configured Fedora 20 I edited /etc/sysconfig/network-scripts/ifcfg-em1 to use a static IP of 172.16.12.12/16 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 192.168.0.10/24. 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 172.16.12.12/16.

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 172.16.12.12/16.

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 192.168.0.219/24. 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.

Thanks,