You are not logged in.

#1 2015-11-02 09:44:54

kiddyfurby
Member
Registered: 2008-04-28
Posts: 12

/etc/network/interfaces does not take up commands?

Does arch honor the up command in /etc/network/interfaces just like Debian / Ubuntu does?

I was trying to setup floating ip as per https://www.digitalocean.com/community/ … er-droplet
my up command (highlighted in red) in /etc/network/interfaces has no effect upon reboot
applying the command manually (without the "up", of course) does work

/etc/network/interfaces
auto ens3
iface ens3 inet static
        address 162.243.184.156
        netmask 255.255.252.0
        gateway 162.243.184.1
        up ip addr add 10.16.0.5/16 dev ens3
        dns-nameservers 8.8.8.8 8.8.4.4

Offline

#2 2015-11-02 09:59:22

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: /etc/network/interfaces does not take up commands?

What network config utility do you use? We have systemd's own network configurator, there is NetworkManager, netctl, WICD... some of us simply enable the dhcpcd service. Arch does not honor anything by default.

Offline

#3 2015-11-02 22:24:25

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,778
Website

Re: /etc/network/interfaces does not take up commands?

kiddyfurby wrote:

Does arch honor the up command in /etc/network/interfaces just like Debian / Ubuntu does?

No.

Debian uses ifupdown for this with a corresponding /run/network/ifstate file.

My Arch systems don't have an /etc/network folder, do yours?


Jin, Jîyan, Azadî

Offline

#4 2015-11-30 05:31:49

kiddyfurby
Member
Registered: 2008-04-28
Posts: 12

Re: /etc/network/interfaces does not take up commands?

sorry for my super-late reply
I do have /etc/network/interfaces

I think its because of https://github.com/gh2o/digitalocean-debian-to-arch

Offline

#5 2015-11-30 18:20:15

ukhippo
Member
From: Non-paged pool
Registered: 2014-02-21
Posts: 366

Re: /etc/network/interfaces does not take up commands?

So you need to answer Awebb's post. If you are using systemd-networkd, the “CoreOS” instructions would probably work.

Offline

#6 2015-11-30 22:02:30

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: /etc/network/interfaces does not take up commands?

You need to clarify some things. Is this a VPS setup?

Offline

#7 2015-12-01 05:16:55

kiddyfurby
Member
Registered: 2008-04-28
Posts: 12

Re: /etc/network/interfaces does not take up commands?

Thank you for the help guys.
Yes this is a VPS: http://digitalocean.com/
Yes I am on systemd-networkd, and the config file is:

root ~ # cat /var/run/systemd/network/ens3.network 
# Generated by parse-debian-interfaces
[Match]
Name=ens3
[Network]
Address=192.241.228.131/22
Gateway=192.241.228.1
DNS=8.8.8.8
DNS=8.8.4.4

I tried to follow the CoreOS instruction per ukhippo suggested

root ~ # cat /etc/systemd/network/static.network 
[Match]
Name=ens3
[Network]
DNS=8.8.8.8
DNS=8.8.4.4
[Address]
Address=192.241.228.131/22
Address=10.12.0.5
[Route]
Destination=0.0.0.0/0
Gateway=192.241.228.1

but upon reboot, `ip addr` shows that only 192.241.228.131/22 is associated with ens3

Offline

#8 2015-12-01 09:42:20

ayekat
Member
Registered: 2011-01-17
Posts: 1,616

Re: /etc/network/interfaces does not take up commands?

You may need to specify the addresses in separate [Address] fields each:

systemd.network (5) wrote:

[ADDRESS] SECTION OPTIONS
    An "[Address]" section accepts the following keys. Specify several "[Address]" sections to configure several addresses.
    ...

EDIT So that would probably be something like

[Address]
Address=192.241.228.131/22
[Address]
Address=10.12.0.5

Last edited by ayekat (2015-12-01 09:43:57)


pkgshackscfgblag

Offline

Board footer

Powered by FluxBB