You are not logged in.
I've got Arch setup and working with one network adapter using systemd-networkd since I'm using it as a server for the most part. I have 4 network adapters in the machine and out like to setup a second with another static IP on the same subnet. I created a new .network file and set the match name to the second network. It only has an address line in the [network] area. When I restart systemd-networkd only the first adapter comes up. Here are the files:
20-wired.network
[Match]
Name=eno1
[Network]
Address=192.168.32.10/21
Gateway=192.168.33.1
DNS=192.168.32.2
21-wired.network
[Match]
Name=eno2
[Network]
Address=192.168.32.5/21
What am I doing wrong?
Thanks.
Offline
It only has an address line in the [network] area
To manually configure a static IP address, add an IP address as described in #IP addresses, set up your routing table and configure your DNS servers.
Try adding gateway & dns addresses for each interface with a static ip-address.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
It only has an address line in the [network] area
Try adding gateway & dns addresses for each interface with a static ip-address.
systemd-networkd can set a static IP address to interface and bring it up without gateway. Like you can do it with iproute2 anyway. It is not related to bringing up an interface.
@PhantomNomad, does eno2 has a carrier?
you can have a bit more information with networkctl command:
networkctl status
networkctl status eno2
What if you manually configure and bring up eno2?
ip a add 192.168.32.5/21 dev eno2
ip link set eno2 up
Offline