You are not logged in.

#1 2015-03-30 02:27:36

vamega
Member
Registered: 2014-06-22
Posts: 2

Unable to set up networking with systemd-networkd

I'm trying to set up networking on a VPS I purchased.

When I boot off the arch install image, the networking set up is configured via DHCP and everything seems to work perfectly.
This is the configuration I see from the

ip addr

and

ip route

commands:
http://i.imgur.com/yeLFO6x.png

I proceeded to follow the instructions at the systemd-networkd page, and enabled the right services.
I also created an ethernet.network file in the correct directory.
You can see the contents of the file in the following screenshot, along with the ouput of some of the ip commands in the following screenshot.
http://i.imgur.com/hJNIZrJ.png

I'm unable to ping google, but somehow I'm able to curl successfully download the google.com page via curl.
I've demonstrated this in the following screenshot. I cannot fathom how this is possible.
http://i.imgur.com/YokAKog.png

I'll be happy to provide any other information that could be useful, and would really appreciate some help getting to the bottom of this.

Thanks a tonne.



-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Offline

#2 2015-03-30 02:43:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Unable to set up networking with systemd-networkd

Please don't post (oversize) images of text, paste the actual text...


Moving to Newbie Corner.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-03-30 04:25:43

vamega
Member
Registered: 2014-06-22
Posts: 2

Re: Unable to set up networking with systemd-networkd

I would have loved to not post images of the text.
Unfortunately the box has network issues which I'm trying to solve and thus I can't pipe the ouput to a pastebin somewhere.

Could this be moved back to the networking section? I feel like I'm more likely to get someone who knows the solution to see this if it's in that section than in the newbie section.

Offline

#4 2015-03-30 05:17:46

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Unable to set up networking with systemd-networkd

What is in the journal?

Also, it would be more helpful if you detailed what you have done, rather than just saying you followed all the steps. Are you using systemd-resolved as well?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-04-19 17:36:36

gmtch
Member
Registered: 2015-03-29
Posts: 7

Re: Unable to set up networking with systemd-networkd

The problem is that you have the gateway set to 192.95.10.154 AND the address set to 192.95.10.154/32

A gateway provides the default route and is normally a different machine.

Also that subnet /32 is odd - /32 is usually used for secondary IP addresses.

I suggest you look again at these values - are they correct?

Offline

#6 2015-04-19 18:40:22

PaterSiul
Member
Registered: 2015-04-01
Posts: 18

Re: Unable to set up networking with systemd-networkd

That subnet is not only odd - it should not work.
A /32-subnet is perfect for localhost and the like. It basically means you can't reach any other IP than your own.

Also the gateway from your provider's DHCP-server (first screenshot) ist very far away from your own IP. I'm too lazy to calculate, but in order to reach that gateway with that IP, the netmask would have to be between 16 and 8.

In short: I can easily tell you why it wouldn't work - what I don't get is why it worked with curl in your setup or your provider's DHCP and/or what your provider did there.

In any case: talk to your provider - they might be able to give you the correct addresses/masks and maybe shed some light (I'm really very curious).

Last edited by PaterSiul (2015-04-19 18:40:57)

Offline

Board footer

Powered by FluxBB