You are not logged in.

#1 2016-03-05 18:42:22

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

How to configure per-VLAN network settings with systemd?

I've successfully got two VLAN devices (eth0.100 and eth0.200) and would like them to have IP addresses. I can do that with ip, but I'd like it to stick between reboots. What's the correct way to do that with systemd? I've had difficulty finding appropriate documentation, and guesses that I've made always seem to impact eth0, not eth0.{100,200}.

EDIT: In order to avoid the XY problem, my context: I'm trying to use a small computer with a single native Ethernet port as a router. My switch supports VLANs, so I'd like to put the cable modem on one VLAN, the rest of the network on another, and have an Arch box route between them. Sure, I could add a USB network adapter, but I've grown a dislike for USB.

EDIT: It looks like netctl is the solution. The wiki pages for VLANs and netctl made me think that systemd-networkd and netctl were mutually exclusive, though that does not seem to be the case.

Thanks!

Last edited by kleptophobiac (2016-03-06 05:56:57)

Offline

Board footer

Powered by FluxBB