You are not logged in.

#1 2013-04-04 17:33:20

habstinat
Member
Registered: 2013-04-04
Posts: 1

Can't set up static IP with systemd: "Dependency failed for"

I bootstrapped Arch Linux into a free partition from an Ubuntu Server installation. It boots fine, but I can't seem to get the network working.

My router is weird in that the last number of the IP address has to be over 200 (so 192.168.1.[must be over 200]), so dhcpcd won't really work for me and I need to set up a static IP.

To do this, I decided to edit the systemd static IP template from this wiki page (leaving "Wireless" in the name but removing the actual wireless line, as I'm using a wired connection): <https://wiki.archlinux.org/index.php/Ne … IP_address>

Here's my modified script: <http://sprunge.us/BVRA>

However, when I run "systemctl start newnetwork [what I named the service]", I still can't ping either IP addresses or domain names. When I run "systemctl status newnetwork", I get "Dependency failed for Wireless Static IP Connectivity" and it says that the service is not running.

I have all of base and base-devel installed, so what could be the problem? It seems like the only other people who have encountered that systemd error message have had significantly different problems.

For what it's worth, I used this method to bootstrap the system: <https://wiki.archlinux.org/index.php/In … _Archlinux>

Thanks ahead of time for any help.

Offline

#2 2013-04-07 10:24:18

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: Can't set up static IP with systemd: "Dependency failed for"

Welcome to the forums.
You can actually use dhcpcd to assign a static address too with the "-S" option.

My first guess for your error would be that the interface is not "eth0" (though the error message seems odd for that, yes).
Whats the output when you bring the connection up manually (description right above the wiki .service file you link)?

Offline

#3 2013-04-09 19:25:04

hawaiicharles
Member
Registered: 2012-12-21
Posts: 71

Re: Can't set up static IP with systemd: "Dependency failed for"

I would recommend against using that method of configuring a static IP address, because it doesn't play well with some other network services (NFS and Samba in particular).  Instead, check out the wiki on netcfg.

Offline

#4 2013-04-10 20:14:13

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: Can't set up static IP with systemd: "Dependency failed for"

Yes, but since netcfg is orphaned - for a fresh install one should probably look at the new https://wiki.archlinux.org/index.php/Netctl

Offline

Board footer

Powered by FluxBB