You are not logged in.

#1 2013-03-13 01:51:31

stevepoppers
Member
Registered: 2011-05-09
Posts: 11

network.service file not working [SOLVED][NEVERMIND]

I've a fresh install. I haven't installed anything but sudo and openssh. I couldn't connect with dhcpcd, which I see is not an uncommon problem just now. So I went ahead and connected with a static ip like I planned to eventually. Following https://wiki.archlinux.org/index.php/Ne … IP_address, I copied that file and substituted my own information and interface to create http://pastebin.com/EuhpFiec, and enabled the service. It fails on the gateway line with exit status 2 / invalid argument. However, I can manually run the commands and get a perfectly working connection.

Yes, the router address is correct.

No, I don't want to use a gui or something like that, because 1. this is supposed to be a headless server, 2. if I can do it manually I should be able to automate it, and 3. I want to know why it doesn't work. Ignoring a problem is not fixing it. If it's a mistake, I want to find it. If it's a config issue, I want to identify and adjust it. If it's a bug, I want it flagged and fixed. If the documentary is just wrong, it should be amended.

lspci -v: http://sprunge.us/IJcH

I noticed dhcpcd updated today to 5.6.7, but that still just broadcasts for a lease without ever picking anything up.

Edit only minutes later...

*sigh* Why does it always take 2 days, irc, and a forum post to notice the one very small error that is causing all the issues?

Looking at that file, I noticed that the ip I had set for the server was 192.168.0.103, NOT 192.168.2.103, which would match the router, 192.168.2.1. I fixed this, and removed a different kind of default gateway setting line someone had given me for testing, rebooted, and was connected. It was magical. The only thing was that dhcpcd had cleared google's nameserver from my /etc/resolv.conf, so I fixed that, rebooted again to make sure, and could ping google.com as soon as I logged in.

Last edited by stevepoppers (2013-03-13 03:09:03)

Offline

Board footer

Powered by FluxBB