Pi-Hole VLAN advice using 05-custom.conf or define VLAN interfaces

@deHakkelaar

Hi,

Activated config and did SSH to VLAN10 10.10.10.41 (since eth0 on 10.10.50.41 doesn't work)

Content of dhcpcd.conf:

hostname
clientid
persistent
option rapid_commit
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
option interface_mtu
require dhcp_server_identifier
slaac private
interface eth0
static ip_address=10.10.50.41/24
static routers=10.10.50.1
static domain_name_servers=127.0.0.1
interface eth0.10
static ip_address=10.10.10.41/24
interface eth0.20
static ip_address=10.10.20.41/24
interface eth0.30
static ip_address=10.10.30.41/24
interface eth0.90
static ip_address=10.10.90.41/24

Content of vlan:

/etc/network/interfaces:source-directory /etc/network/interfaces.d
/etc/network/interfaces.d/vlans:auto eth0.10
/etc/network/interfaces.d/vlans:iface eth0.10 inet manual
/etc/network/interfaces.d/vlans:vlan-raw-device eth0
/etc/network/interfaces.d/vlans:auto eth0.20
/etc/network/interfaces.d/vlans:iface eth0.20 inet manual
/etc/network/interfaces.d/vlans:vlan-raw-device eth0
/etc/network/interfaces.d/vlans:auto eth0.30
/etc/network/interfaces.d/vlans:iface eth0.30 inet manual
/etc/network/interfaces.d/vlans:vlan-raw-device eth0
/etc/network/interfaces.d/vlans:auto eth0.90
/etc/network/interfaces.d/vlans:iface eth0.90 inet manual
/etc/network/interfaces.d/vlans:vlan-raw-device eth0

ip -4 a s eth0:

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group defa ult qlen 1000
inet 10.10.50.41/24 brd 10.10.50.255 scope global noprefixroute eth0
valid_lft forever preferred_lft forever

ip -4 r:

default via 10.10.50.1 dev eth0 src 10.10.50.41 metric 202
10.10.10.0/24 dev eth0.10 proto dhcp scope link src 10.10.10.41 metric 204
10.10.20.0/24 dev eth0.20 proto dhcp scope link src 10.10.20.41 metric 205
10.10.30.0/24 dev eth0.30 proto dhcp scope link src 10.10.30.41 metric 206
10.10.50.0/24 dev eth0 proto dhcp scope link src 10.10.50.41 metric 202
10.10.90.0/24 dev eth0.90 proto dhcp scope link src 10.10.90.41 metric 207

Hope you can see some error :slight_smile:

Thx!