Configure vps network with systemd-networkd

I got a vps and installed archlinux on it, but I can't get the network working using systemd-networkd.
The mail from the provider have the ip address and gateway (in the rest of the post are redacted respectively 1.2.3.4 and 5.6.7.8), and a note to run two commands after the network setup if configured manually:
route add 5.6.7.8/32 dev eth0
route add default gw 5.6.7.8
I translated the network configuration via the ip utility with:
ip addr add 1.2.3.4 dev ens3
ip link set dev ens3 up
ip route add 5.6.7.8/32 dev ens3
ip route add default via 5.6.7.8
With this configuration the network is running, without problems.
The output for ip route is:
default via 5.6.7.8 dev ens3
5.6.7.8 dev ens3 scope link
Now I'm trying to get the same configuration using systemd-networkd.
I wrote the following config file:
$ cat /etc/systemd/network/ens3.network
[Match]
Name=ens3
[Address]
Address=1.2.3.4/32
[Route]
Destination=5.6.7.8/32
[Route]
Gateway=5.6.7.8
After starting systemd-networkd the output from ip addr is the same; the output from ip route is:
5.6.7.8 dev ens3 proto static
The network is working partially, I can only ping the gateway, but the rest of the internet is unreachable.
I read the fine manual, systemd-network(5) and systemd-networkd(8), but I can't get what I'm missing in the network configuration.
Any help?

Tried this way, ip route output now is empty.
On journalctl -xe it says:
ens3: could not set route: Network is unreachable.
The multiple [Route] way seems supported:
http://www.freedesktop.org/software/sys … %20Options
Specify several "[Route]" sections to configure several routes.

Similar Messages

  • 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] --

    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)

  • How to configure BIND (chroot) with systemd

    Hello,
    I'm following guide https://wiki.archlinux.org/index.php/BIND_(chroot). In the end there is only said how to enable service in sysvinit environment. Could someone please tell me how to do this with systemd?
    Thanks

    @toogy: what do you mean exactly by creating a systemd service?
    EDIT: for example, I've this one (in /etc/systemd/system/mynamed.service)
    [Unit]
    Description=Internet domain name server
    After=network.target
    [Service]
    ExecStart=/usr/bin/named -f -u named -4
    ExecReload=/usr/bin/rndc reload
    ExecStop=/usr/bin/rndc stop
    [Install]
    WantedBy=multi-user.target
    And according to 'man named', you can use the '-t' parameter if you want named to run in a chroot (I've never tried it):
    -t directory: Chroot to directory after processing the command line arguments, but before reading the configuration file.
    Warning: This option should be used in conjunction with the -u option, as chrooting a process running as root doesn't enhance security on most systems; the way chroot(2) is defined allows a process with root privileges to escape a chroot jail.
    Last edited by scar (2014-03-18 16:24:55)

  • Managing WPA wireless with systemd-networkd ?

    Hi guys,
    I've moved to systemd-networkd to manage my wired interface.
    http://dabase.com/blog/Good_riddance_netctl/
    Has anyone successfully managed to get their /etc/wpa_supplicant.conf working through  systemd-networkd too?

    WonderWoofy wrote:
    Okay, so I'll walk you through this since there is really not a whole lot of documentation on the subject.  This assumes that your NIC is wlan0, your SSID is MyNetwork, and the password is SuperSecretPassphrase.
    You need to create a wpa_supplicant-wlan0.conf.  So use wpa_passphrase to generate one:
    # wpa_passphrase MyNetwork SuperSecretPassphrase > /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
    Enable it so that it runs on boot:
    # systemctl enable [email protected]
    Now make a file at /etc/systemd/network/00-wireless-dhcp.network (it can really be named whatever you want):
    [Match]
    Name=wlan0
    [Network]
    DHCP=yes
    Now ensure that systemd-networkd.service is enabled.
    # systemctl enable systemd-networkd.service
    Reboot, and it should be working.
    Edit: cleanup
    Edit2: Okay, that is not working for me either...
    Edit3: Okay nevermind, I just made a typo and named my file 00-wireless-dhcp.ntwork
    Edit4: I forgot to mention that you also need to ensure that /etc/resolv.conf is a symlink to /run/systemd/network/resolv.conf.  As a hack (since I don't use systemd-networkd regularly) I have the following:
    $ cat /etc/systemd/system/systemd-networkd.service.d/resolv.conf
    [Service]
    ExecStartPost=/usr/bin/ln -sf /run/systemd/network/resolv.conf /etc/resolv.conf
    ExecStopPost=/usr/bin/rm /etc/resolv.conf
    ExecStopPost=/usr/bin/touch /etc/resolv.conf
    This needs to go to the wiki!

  • $VC - Variant Configuration on Network with service activities

    Hi all,
    hope someone can help me out here.
    We want to use configurable standard networks. Some service activities exist with a service specification (list of services).
    The requirement is to be able to select some of these services in the service specification, and/or to manipulate their quantities based on characteristic values maintained as part of the network configuration.
    I appreciate the help
    Charl

    Hi
    Would appreciate if you could share how did you manage varaint configuration in your scenario ?
    Regards,
    Kashif

  • How to configure home network with Airport Extreme + D-Link DIR-665

    *hello everyone,*
    *I had these two working fine together until the D-Link took a dump the other day. No explanation. Just stopped working until I reconfigured everything.*
    *Which then led to my Airport Extreme being unable to connect to the network at all, much less the internet...*
    *My home network is set up like this:*
    *Optimum Cable*
    *Motorola Surfboard modem --> D-Link DIR-655 (via ethernet)*
    *- Provides wifi and ethernet connections on one side of my house*
    *DIR-655 --> Airport Extreme (via ethernet run to other side of house)*
    *- Provides wifi and ethernet connections on the other side of my house*
    *My MBP won't connect to anything other than my AE running N, so I have that set up primarily for my MBP over wifi, while feeding an ethernet connection to a Netgear router running B/G, for my iPhone and other devices.*
    **So here are the relative details:**
    *I decided to start fresh and do a factory default configuration with my Airport Extreme. My working system from earlier was essentially it's own wifi network, but the airport utility 'insists' that I need to run my AE in bridge mode. I've tried that, but I can't get online. I can see my shared connections, so something's getting through, but I cannot connect to them, in addition to being unable to get online.*
    *I'm not really sure how to best illustrate this problem, so I've ran through the process again and jotted down a few notes. Excuse the rambling nature of my narrative, this is a 'blow by blow' account of the Airport Utility setup process:*
    Airport version 7.4.2
    IP address 192.168.0.192
    router address: 192.168.0.2
    Configuring over Airport connection.
    - I want AE to join my current network
    -.. connect AE to my network using ethernet to extend or create second network
    - select device AE will connect to using ethernet - DIR-655 network (displayed w/ airport icon?)
    - create an additional network (through ethernet)
    AE updates..
    - problem 1 of 1 : unsecured wireless network
    wpa wpa2
    Bridge mode or share a single IP address using DHCP
    selected bridge mode
    results: AE has green light, airport utility is satisfied but no connection to network is possible. Shared connections are visible, but unable to access
    next try:
    manual setup
    Wireless mode: create wireless network
    radio mode: 802.11n only (5 GHz)
    channel: auto
    wireless security: WPA2 personal
    (bridge mode still active)
    (this is the exact setup that worked for years before..)
    updated…
    AE light is green, but no connection to internet or shared connections (though visible)
    back to airport utility
    manual setup:
    internet menu:
    connection sharing: share a public IP address
    update
    --> 2 problems
    DHCP Beginning address: 192.168.0.2
    DHCP Ending Address: 192.168.0.2
    chose 'assist me'
    (now one shared connection to Mac Mini becomes active? Had selected it earlier. Able to browse folders, but not share screen)
    AE refreshed now with amber light, with reported problems
    Problem 1 of 2: Internet Connection
    Your Apple Wireless device does not have a valid IP address. Make sure your Apple wireless device is connected to your broadband modem or local network… etc
    - changed IP address to match router IP address (?) Utility goes on to next problem
    Problem 2 of 2: Conflicting DHCP Range
    This Apple wireless device rejected a DHCP address in the same subnet as its internal DHCP server. You should probably switch your Apple wireless device to be in bridge mode. If you still want to be using DHCP and NAT to share a single IP address, you should change your DHCP range.
    - maintain selection: share a single IP address using DHCP and NAT (utility forces you to: ignore; skip; or select bridge mode - which doesn't work..)
    - chose 'skip' for problem 2
    - updated AE..
    New problem:
    Problem 1 of 1: Double NAT
    This Apple wireless device has a private IP address on its Ethernet WAN port. It is connected to a device or network that is using Network Address Translation (NAT) to provide private IP addresses. you should change you Apple wireless device from using DHCP and NAT to bridge mode.
    - selected Bridge Mode
    updated AE…
    "Setup Complete!"
    Unable to connect.
    ** At this point, I am still able to see my shared connections, and while iTunes is open, I can play my shared library that is on my Mac Pro, which connected to the DIR-665 via ethernet, through yet another D-Link router (DIR-615)! I am still connected to the Airport Extreme via wireless, so the system is working, to an extent.*
    *So I'm not sure what to do. How can I remedy my IP address issue? Bridge mode doesn't work (as far as I've experienced), so I'm struggling with my DHCP settings..*
    *Thanks to anyone who has any suggestions!*

    Hi Preston,
    I would recommend not starting the numbering scheme for the IP addresses using a '0'. Yes the range is 0-255, but some numbers are reserved, and not generally good practice.
    Also, assuming you have reset all factory defaults, start anew and have the modem --> router using NAT for dynamic IP addresses --> (other side of the house) Airport Extreme --> not a NAT configuration, but you need a simple switch. Do not use the NAT capabilities on this one. Maybe, just maybe the computer will work now. This will eliminate your double NAT and also help (hopefully) with the D-Link.
    Sorry I cannot help more, I do not own any of the products you talk about, however I have networking experience. Hope it helps.
    --Morris

  • Can i configure a network with ACS and ISE?

    I have both acs and ise, how do i integrate these appliance to work togheter?
    Thanks

    ISE does not interoperate with Cisco Secure ACS deployments. The Cisco Identity Services  Engine can work in tandem with Cisco NAC Manager to provide the same  profiling service as the NAC Profiler, which has reached end-of-sale  status.
    Existing Cisco Secure ACS customers using network  access can easily migrate to the Cisco Identity Services Engine platform  using migration part numbers and tools. However, existing Cisco Secure  ACS customers using TACACS functions will not be able to migrate to the  current version of ISE for network device identity management which is  often acceptable for customers who prefer to keep user and network  identity on separate systems.

  • Systemd-Networkd - post_up and pre_down script?

    I've used the old netcfg before, now I reinstall a system and configure my network-cards with systemd-networkd.
    I used the POST_UP and PRE_DOWN-functions for issuing a command, how do I map this functionality to networkd-systemd?

    Mr.Elendig wrote:Depends on just what you are trying to do.
    What exactly do you mean?
    I need to run a command when the device is up and before its going to be down.
    How is this possible?

  • Systemd-networkd, wpa_supplicant and multiple USB Wifi adapters

    TL;DR:
    Is there a way to run a single wpa_supplicant process that handles any kind of USB WiFi adapter in connection with systemd-networkd?
    Long version:
    I'm running systemd-networkd, which has made networking setup a lot easier for wired interfaces. I'd like to make it just as easy for WiFi interfaces, but it seems there's some kind of wildcard support missing for wpa_supplicant. My question is whether I got this right, or there is some trick somewhere I didn't think of.
    Here's my /etc/systemd/network/wifi.network:
    [Match]
    Name=wlp*
    [Network]
    DHCP=v4
    In addition, I'm running:
    systemctl start wpa_supplicant@wlp0s2f1u10
    because that's the interface that my current WiFi USB adapter comes up on. This goes with /etc/wpa_supplicant/wpa_supplicant-wlp0s2f1u10.conf:
    ctrl_interface=/run/wpa_supplicant
    eapol_version=1
    ap_scan=1
    fast_reauth=1
    network={
    ssid="something"
    psk="else"
    This all works fine, except that:
    I have to plug my USB Wifi adapter into this exact USB port, otherwise the interface name changes and wpa_supplicant isn't running there
    if I plug in a different USB WiFi adapter (I have a zoo; nothing exceptional I guess, but it's a pain to keep track of which goes with which computer), the interface name may be different and wpa_supplicant isn't running there
    systemd-networkd solved that problem nicely with the wildcard in the interface name above (Name=wlp*). (Also, dhcpcd -- which I'm not using in this setup -- can be told to listen to "all interface" which is sort of similar)
    My question: can I do something similar with wpa_supplicant, so I don't have to run a separate wpa_supplicant daemon on all possible interface names?
    I'm guessing the answer is No (and I'd like confirmation on that).
    Secondly, perhaps I can write one or more udev rules that will present all of those possible interfaces as wlan0, wlan1 or such. In which case I could presumably run wpa_supplicant@wlan0 only and be happy (assuming that wpa_supplicant is happy to run even as long as the interface does not exist. Does it?) Anybody have any hints how to go about this, I haven't done that.
    Thirdly, if neither of those are viable, is this a reasonable-enough set of requirements so it would  make sense to run this by the wpa_supplicant developers as a possible future feature?
    Last edited by jernst (2015-01-11 05:54:31)

    jernst wrote:
    systemd-networkd solved that problem nicely with the wildcard in the interface name above (Name=wlp*). (Also, dhcpcd -- which I'm not using in this setup -- can be told to listen to "all interface" which is sort of similar)
    My question: can I do something similar with wpa_supplicant, so I don't have to run a separate wpa_supplicant daemon on all possible interface names?
    networkd "solved" nothing here. This is a mere coincidence that the wlp* wildcard works. For instance, you might have an interface called "wls1". Also, wpa_supplicant doesn't "listen" because "listen" applies to the TCP/IP layer. wpa_supplicant works at the frame level, so I'm not sure what you mean. If you want software that _manages_ multiple wifi interfaces, use netctl.
    jernst wrote:I'm guessing the answer is No (and I'd like confirmation on that).
    Correct.
    jernst wrote:Secondly, perhaps I can write one or more udev rules that will present all of those possible interfaces as wlan0, wlan1 or such. In which case I could presumably run wpa_supplicant@wlan0 only and be happy (assuming that wpa_supplicant is happy to run even as long as the interface does not exist. Does it?) Anybody have any hints how to go about this, I haven't done that.
    For the udev part, do something like
    : cat /etc/udev/rules.d/10-network.rules
    SUBSYSTEM=="net", ATTR{address}=="a1:b1:c1:d1:e1:f1", NAME="wl0"
    SUBSYSTEM=="net", ATTR{address}=="a2:b2:c2:d2:e2:f2", NAME="wl1"
    Then, modify [email protected] as
    : diff usr/lib/systemd/system/[email protected]{,.new}
    +++ usr/lib/systemd/system/[email protected] 2015-01-12 11:45:10.839852357 -0700
    --- usr/lib/systemd/system/[email protected] 2015-01-12 11:44:56.843027430 -0700
    @@ -1,5 +1,6 @@
    [Unit]
    Description=WPA supplicant daemon (interface- and nl80211 driver-specific version)
    -Requires=sys-subsystem-net-devices-%i.device
    After=sys-subsystem-net-devices-%i.device
    # NetworkManager users will probably want the dbus version instead.
    so that the unit doesn't fail if the adapter is not plugged. However, this solution is suboptimal (Think what happens if you suddenly remove the adapter)... You can try to use "BindsTo=" instead of "Requires=" but I wonder if you get errors on startup if the adapter is absent...
    jernst wrote:Thirdly, if neither of those are viable, is this a reasonable-enough set of requirements so it would  make sense to run this by the wpa_supplicant developers as a possible future feature?
    No. wpa_supplicant is only supposed to to what it's told. It is not a canned network management solution.

  • How to configure resistor network on BNC-2095 with SCXI-1100

    The manuals are not entirely clear on this point. I have a BNC-2095 that is connected to a SCXI-1100, and will be reading voltage input signals from pressure transducers and other assorted sensors. The manual indicates that I should not use a ground-referenced input with the BNC-2095 and have the 10-ohm resistor networks in place, but it only discusses installing the 10-megaohm resistors for use with the SCXI-1102. What is the correct configuration for use with the SCXI-1100?
    Thanks,
    Tom

    Hi Tom,
    Using the 10 MOhm resistor network instead of the default 10 Ohm resistor network with the SCXI-1102 allows you to measure both floating and ground-referenced signals.  According to page 7, Table 2 of the SCXI-1303 manual, this is not recommended with the SCXI-1100.  I will verify with R&D that this is also the case when using the SCXI-1100 with the BNC-2095.
    If you are certain that your signal is ground-referenced then you should remove the default 10 Ohm resistor network.  The input impedance should be high enough to prevent any sort of ground loop.  Check page 5, Table 1 of the BNC-2095 manual for the appropriate jumper settings when measuring ground-referenced signals
    IMPORTANT NOTE:  Do not attempt to measure a ground-referenced signal with the default 10 Ohm resistor network installed.  This is well documented in both the BNC-2095 and the SCXI-1303 manuals that it may cause damage to your hardware.
    Rod T.

  • Configurable Network with Assembly Processing

    Hi,
    Is it possible to user configurable network with Assembly processing? Is there any issues using this functionality?
    Thx

    hi,
    refer the below wiki about assembly processing and assignment of configured network.
    http://wiki.sdn.sap.com/wiki/display/PLM/AssemblyProcessinProjectSystems
    http://wiki.sdn.sap.com/wiki/display/PLM/ADemoonConfigurableNetwork
    regards,
    Edited by: NAG on Jul 21, 2010 1:28 PM

  • How to configure network with just 1 ethernet adapter?

    I was looking for a guide which would talk about how to configure your network in case if you have only 1 Ethernet adapter. Is it mandatory to have more than 1 network card to configure multiple ports? If not, what are the options available to deploy a Virtual Machine that can have applications which are available over the network. I don't have a separate network i.e. public network as well as management network is of same IP range.
    I am having 2 node cluster using NFS for pools as well as repository.
    ~Yagnesh

    yagneshg wrote:
    I was looking for a guide which would talk about how to configure your network in case if you have only 1 Ethernet adapter. Just enable the "Virtual Machine" role on the Management network that is automatically connected. You will then be able to add guest vNICs to the same network.
    I am having 2 node cluster using NFS for pools as well as repository. I strongly recommend you get at least one more physical NIC for your server, if not two: running NFS and the cluster heartbeat and the guest traffic all over the same network is going to put a lot of data down the wire and you may land up in a situation where the cluster traffic is overwhelmed and a node reboots. You need to be very careful in this situation. Network cards are cheap and you should have at least two or three, I reckon.

  • Trying to configure a network connection on Fresh installation!

    Hello,
    I am new here. I am trying to configure a network connection. I prefer to configure a static Ip connection. So, i want to follow this guide-article:
    https://wiki.archlinux.org/index.php/Systemd-networkd .
    At the bottom of the page Static ip Network is located. So my main question is what is container and what is host?
    Also, i would like a tip if possible, My computer is connected to a switch which gives IP to many computers. For this situation what is best? DHCP or static IP?
    Thanks in advance!

    Ok, Here it comes ,
    My internet connection is slow. I have a laptop next to me with windows on it and the difference is huge.
    I am posting several outputs of commands.
    # ping -c 3 google.com
    PING google.com (194.177.211.120) 56(84) bytes of data.
    64 bytes from 194.177.211.120: icmp_seq=1 ttl=60 time=15.2 ms
    64 bytes from 194.177.211.120: icmp_seq=2 ttl=60 time=16.3 ms
    64 bytes from 194.177.211.120: icmp_seq=3 ttl=60 time=21.4 ms
    --- google.com ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 20185ms
    rtt min/avg/max/mdev = 15.237/17.679/21.444/2.703 ms
    # ping -c 5 8.8.8.8
    PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
    64 bytes from 8.8.8.8: icmp_seq=1 ttl=51 time=72.9 ms
    64 bytes from 8.8.8.8: icmp_seq=2 ttl=51 time=66.6 ms
    64 bytes from 8.8.8.8: icmp_seq=3 ttl=51 time=61.7 ms
    64 bytes from 8.8.8.8: icmp_seq=4 ttl=51 time=70.1 ms
    64 bytes from 8.8.8.8: icmp_seq=5 ttl=51 time=65.4 ms
    --- 8.8.8.8 ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4005ms
    rtt min/avg/max/mdev = 61.792/67.407/72.936/3.846 ms
    # cat /etc/systemd/network/50-static.network
    [Match]
    Name=eth0
    [Network]
    DNS=192.168.7.2 8.8.8.8
    Gateway=192.168.7.2
    Address=192.168.7.120/24
    # time wget [url]http://www.google.com[/url]
    --2015-03-05 01:26:33-- [url]http://www.google.com/[/url]
    Resolving [url=http://www.google.com]www.google.com[/url] ([url=http://www.google.com]www.google.com[/url])... 194.177.211.113, 194.177.211.117, 194.177.211.121, ...
    Connecting to [url=http://www.google.com]www.google.com[/url] ([url=http://www.google.com]www.google.com[/url])|194.177.211.113|:80... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: [url]http://www.google.gr/?gfe_rd=cr&ei=EJX3VLfcB4aJ8Qf-yYDACA[/url] [following]
    --2015-03-05 01:26:38-- [url]http://www.google.gr/?gfe_rd=cr&ei=EJX3VLfcB4aJ8Qf-yYDACA[/url]
    Resolving [url=http://www.google.gr]www.google.gr[/url] ([url=http://www.google.gr]www.google.gr[/url])... 194.177.211.121, 194.177.211.122, 194.177.211.116, ...
    Reusing existing connection to [url=http://www.google.com:80]www.google.com:80[/url].
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [text/html]
    Saving to: ‘index.html’
    index.html [ <=> ] 17.89K --.-KB/s in 0.04s
    2015-03-05 01:26:43 (427 KB/s) - ‘index.html’ saved [18317]
    real 0m10.441s
    user 0m0.010s
    sys 0m0.010s
    # wget [url]http://www.google.com[/url]
    Resolving [url=http://www.google.com]www.google.com[/url] ([url=http://www.google.com]www.google.com[/url])... 194.177.211.117, 194.177.211.116, 194.177.211.119, ...
    Connecting to [url=http://www.google.com]www.google.com[/url] ([url=http://www.google.com]www.google.com[/url])|194.177.211.117|:80... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: [url]http://www.google.gr/?gfe_rd=cr&ei=KZf3VM7SB6mH8Qeu_ICIBA[/url] [following]
    --2015-03-05 01:35:35-- [url]http://www.google.gr/?gfe_rd=cr&ei=KZf3VM7SB6mH8Qeu_ICIBA[/url]
    Resolving [url=http://www.google.gr]www.google.gr[/url] ([url=http://www.google.gr]www.google.gr[/url])... 194.177.211.123, 194.177.211.122, 194.177.211.119, ...
    Reusing existing connection to [url=http://www.google.com:80]www.google.com:80[/url].
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [text/html]
    Saving to: ‘index.html.1’
    index.html.1 [ <=> ] 17.92K --.-KB/s in 0.03s
    2015-03-05 01:35:50 (573 KB/s) - ‘index.html.1’ saved [18346]
    # lspci -v
    02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 02)
    Subsystem: Gigabyte Technology Co., Ltd Motherboard
    Flags: bus master, fast devsel, latency 0, IRQ 26
    I/O ports at de00 [size=256]
    Memory at fdbff000 (64-bit, prefetchable) [size=4K]
    Memory at fdbe0000 (64-bit, prefetchable) [size=64K]
    [virtual] Expansion ROM at fde00000 [disabled] [size=64K]
    Capabilities: [40] Power Management version 3
    Capabilities: [50] MSI: Enable+ Count=1/2 Maskable- 64bit+
    Capabilities: [70] Express Endpoint, MSI 01
    Capabilities: [b0] MSI-X: Enable- Count=2 Masked-
    Capabilities: [d0] Vital Product Data
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [140] Virtual Channel
    Capabilities: [160] Device Serial Number 12-34-56-78-12-34-56-78
    Kernel driver in use: r8169
    Kernel modules: r8169
    # cat /etc/resolv.conf
    # This file is managed by systemd-resolved(8). Do not edit.
    # Third party programs must not access this file directly, but
    # only through the symlink at /etc/resolv.conf. To manage
    # resolv.conf(5) in a different way, replace the symlink by a
    # static file or a different symlink.
    nameserver 192.168.7.2
    nameserver 8.8.8.8
    # cat /etc/hosts
    # /etc/hosts: static lookup table for host names
    #<ip-address> <hostname.domain.org> <hostname>
    127.0.0.1 localhost.localdomain zabArch
    ::1 localhost.localdomain zabArch
    # End of file
    # dmesg | grep r8169
    [ 4.695019] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
    [ 4.695029] r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
    [ 4.695227] r8169 0000:02:00.0: irq 26 for MSI/MSI-X
    [ 4.695411] r8169 0000:02:00.0 eth0: RTL8168c/8111c at 0xffffc9000063e000, 00:24:1d:d1:44:ea, XID 1c4000c0 IRQ 26
    [ 4.695414] r8169 0000:02:00.0 eth0: jumbo features [frames: 6128 bytes, tx checksumming: ko]
    [ 6.859386] r8169 0000:02:00.0 eth0: link down
    [ 6.859425] r8169 0000:02:00.0 eth0: link down
    [ 8.479455] r8169 0000:02:00.0 eth0: link up
    # time dig google.com
    bash: dig: command not found
    real 0m0.002s
    user 0m0.000s
    sys 0m0.000s
    # time echo -e 'GET /HTTP/1.0\nHost: google.com\n\n'|nc 74.125.79.99:80
    Error: Couldn't resolve host "74.125.79.99:80"
    real 0m0.003s
    user 0m0.000s
    sys 0m0.000s
    My motherboard is GIGABYTE GA-MA785GMT-UD2H
    My network card is Realtek 8111C Gigabit Ethernet (10/100/1000Mbit)
    I am trying firefox and uzbl-browser.
    If any information is missing, please do not hesitate to ask.
    Thanks in advance!
    Last edited by zabrielza (2015-03-05 07:51:03)

  • [Solved] systemd-networkd netdev files not working

    I'm trying to setup a VLAN interface using networkd. I have verified the VLAN works with a manually created interface, but when I try to create an interface with networkd I just get an error.
    Jun 05 11:26:02 files systemd[1]: Starting Network Service...
    Jun 05 11:26:02 files systemd-networkd[880]: NetDev with invalid Kind configured in /etc/systemd/network/eno1.10.netdev. Ignoring
    Jun 05 11:26:02 files systemd-networkd[880]: [/etc/systemd/network/eno1.network:6] VLAN could not be found, ignoring assignment: eno1.10
    Jun 05 11:26:02 files systemd-networkd[880]: Enumeration completed
    Jun 05 11:26:02 files systemd[1]: Started Network Service.
    Jun 05 11:26:02 files systemd-networkd[880]: eno1            : link configured
    I have followed the VLAN setup in the wiki.
    /etc/systemd/network/eno1.network
    [Match]
    Name=eno1
    [Network]
    DNS=192.168.1.1
    VLAN=eno1.10
    [Address]
    Address=192.168.1.10
    [Route]
    Gateway=192.168.1.1
    /etc/systemd/network/eno1.10.netdev
    [Netdev]
    Name=eno1.10
    Kind=vlan
    [VLAN]
    Id=10
    For what it is worth I get the same error even If i just set the Netdev kind to dummy. I am not sure if netdevs are broken or if I'm missing something
    Last edited by evilhamsterman (2015-06-05 20:45:09)

    evilhamsterman wrote:That did fix it. Looks like there is a small error on the wiki then because I literally copied those files from the wiki.
    I'm glad you got this sorted, have you thought of editing the wiki so that no-one else runs into the same problem?
    Last edited by slithery (2015-06-05 21:07:19)

  • [Solved] Running mpd as user mpd with systemd without using mpd.conf

    Maybe this is tivial, but I searched about an hour without any results. I want to run mpd as user mpd. I cant use the mpd config file since mpd set the UID and GID explicitely resulting in mpd not having the necessary supplementary groups to access the locally shared music on my pc. Well I tried to run mpd with systemd by
    # systemctl start mpd
    and  the systemd contains the user mpd
    $ cat /etc/systemd/system/default.target.wants/mpd.service
    [Unit]
    Description=Music Player Daemon
    After=network.target sound.target
    [Service]
    User=mpd
    ExecStart=/usr/bin/mpd --no-daemon
    # allow MPD to use real-time priority 50
    LimitRTPRIO=50
    LimitRTTIME=-1
    # move MPD to a top-level cgroup, as real-time budget assignment fails
    # in cgroup /system/mpd.service, because /system has a zero real-time
    # budget; see
    # http://www.freedesktop.org/wiki/Software/systemd/MyServiceCantGetRealtime/
    ControlGroup=cpu:/mpd
    # assign a real-time budget
    ControlGroupAttribute=cpu.rt_runtime_us 500000
    [Install]
    WantedBy=default.target
    but it did not run as mpd.
    Well how can I run mpd as mpd? Is there a way to do it like with dropbox: dropbox@<user>.service
    Last edited by manuelschneid3r (2015-03-25 12:52:52)

    Glad you solved it. Was just typing a response and I'll still add two remarks:
    The ps|grep output showed that you run grep as root, not mpd itself (which won't have a space in the command -- the second time it only worked because the mpd group is preceded by a space).
    It sounds like it took you a while to find the drop-in configuration snippet in the mpd.service.d directory. These drop-in are shown in `systemctl status`, which is something you'd normally check in situations like these, and that might help to discover them more quickly.
    Last edited by Raynman (2015-03-25 12:58:36)

Maybe you are looking for