You are not logged in.
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
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
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
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
So you need to answer Awebb's post. If you are using systemd-networkd, the “CoreOS” instructions would probably work.
Offline
You need to clarify some things. Is this a VPS setup?
Offline
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
You may need to specify the addresses in separate [Address] fields each:
[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)
Offline