X-Original-To: alpine-user@lists.alpinelinux.org Received: from anomx-md.ovpn.to (anomx.ovpn.to [178.17.171.134]) by lists.alpinelinux.org (Postfix) with ESMTP id 4777C5C50D7 for ; Sun, 17 Jun 2018 15:37:42 +0000 (GMT) Received: from anomx.ovpn.to (unknown [IPv6:fd48:8bea:68a5:aaaa::aa01]) by anomx-md.ovpn.to (Postfix) with ESMTPS id CA0B91DD49 for ; Sun, 17 Jun 2018 15:12:26 +0000 (UTC) Received: from localhost (anomx.ovpn.to [127.0.0.1]) by anomx.ovpn.to (Postfix) with ESMTP id 61BDFC04B2 for ; Sun, 17 Jun 2018 17:37:40 +0200 (CEST) Received: from anomx.ovpn.to ([127.0.0.1]) by localhost (anomx.ovpn.to [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rAto2AX79v7c for ; Sun, 17 Jun 2018 17:37:37 +0200 (CEST) Subject: Re: [alpine-user] Help configuring VLANs on my router & switch To: alpine-user@lists.alpinelinux.org References: <8063b07e-311a-78ff-6257-b4e2d2a9aeb6@privatedemail.net> From: Tyler Message-ID: Date: Mon, 18 Jun 2018 01:07:27 +0930 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: On 18/06/18 00:12, Ulf Volmer wrote: > On 17.06.2018 15:56, Tyler wrote: > >> * eth0.2 ... >> * vlan2 ... > > You can't use vlan2 and eth0.2 at the same time. You have to choose one > of them. > I just had another look at the wiki and it seems I missed the word *Alternative* Okay so that does help minimize it somewhat but I still do see RTNETLINK answers: File exists run-parts: /etc/network/if-pre-up.d/vlan: exit status 2 twice for each "inet6 static" declaration of eth0.3 and eth0.4 My current /etc/network/interfaces allow-hotplug eth0 auto eth0 iface eth0 inet manual # VLAN 2 - ISP auto eth0.2 iface eth0.2 inet static address 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255 post-up /etc/network/fwmark_rules # VLAN 3 - VPN = auto eth0.3 iface eth0.3 inet static address 192.168.3.1 netmask 255.255.255.0 broadcast 192.168.3.255 iface eth0.3 inet6 static address fde4:8dba:e21c:3::1 netmask 64 # VLAN 4 - LAN ONLY auto eth0.4 iface eth0.4 inet static address 192.168.4.1 netmask 255.255.255.0 broadcast 192.168.4.255 post-up /etc/network/route_LAN iface eth0.4 inet6 static address fde4:8dba:e21c:4::1 netmask 64 # External Interface to Modem allow-hotplug eth1 auto eth1 iface eth1 inet static address 192.168.0.2 netmask 255.255.255.252 broadcast 192.168.0.3 pre-up /sbin/ip link set eth1 up up ifup ppp0=service down ifdown ppp0=service post-down /sbin/ip link set eth1 up # Link to ISP iface service inet ppp provider service I also noticed it doesn't seem possible in Alpine Linux with (ifupdown-0.7.53.1-r1) to specify CIDR notation ie 192.168.2.1/24 and then omit the netmask altogether. If you try to do that you get: "ifup: don't have all variables for eth0/inet" Yet their example for 0.7.53 has it included https://salsa.debian.org/debian/ifupdown/blob/0.7.53/examples/network-interfaces -- Tyler --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---