You are not logged in.
I've been a long-time Slackware user but am in the process of moving to Arch. Google and the Arch wiki has helped a lot with translating my system configuration over, but I'm stuck on just one thing. I want to run these commands on each boot to setup the dummy network device address:
ip link add dummy1 type dummy
ip addr add <ip address> dev dummy1
So what's the equivalent in Arch? I'd like to do this before dnsmasq starts.
thanks for any help.
Last edited by keeely (2019-06-25 11:12:39)
Offline
Welcome to the arch linux forums keely.
If the system is configured for networkd then create a netdevfile and a network files for the interface.
If not I would suggest a systemd service to execute the two commands with a WantedBy of network.target
Offline
But, those ip commands should just work. ip is part of netct which is part of base
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
$ pacman -Ql netctl | grep ip
netctl /usr/lib/netctl/ip
$ file /usr/lib/netctl/ip
/usr/lib/netctl/ip: ASCII text
$ pacman -Qo ip
/usr/bin/ip is owned by iproute2
$ pacman -Qi iproute2
…
Required By : dhclient netctlThough I think his problem was more "how do I run this automatically and in time" (iproute2 is still in the base group)
Offline
Thanks for the replies, I've set this up using the following, all working now:
/etc/systemd/network/dummy.netdev
[NetDev]
Name=dummy1
Kind=dummy/etc/systemd/network/dummy.network
[Match]
Name=dummy1
[Address]
Address=169.254.0.1/32Offline