Set up a VLAN on eth0 and it went quite smoothly.
/etc/network/interfaces.d/vlans:
auto eth0.16
iface eth0.16 inet manual
vlan-raw-device eth0
/etc/dhcpcd.conf:
interface eth0.16
static ip_address=10.20.36.2/23
static routers=10.20.37.1
static domain_name_servers=1.1.1.1
Then I realized that I wanted the I.P. address to be 10.20.16.12/23, so I changed it in dhcpcd.conf
interface eth0.16
static ip_address=10.20.16.12/23
static routers=10.20.17.1
static domain_name_servers=1.1.1.1
rebooted
hostname -I:
192.168.0.88 10.20.36.2 // eth0.16 didn't change, double checked dhcpcd.conf and it is in there as 10.20.16.12/23
/etc/network/interfaces.d/vlans:
auto eth0.16
iface eth0.16 inet manual
vlan-raw-device eth0
/etc/dhcpcd.conf:
interface eth0.16
static ip_address=10.20.36.2/23
static routers=10.20.37.1
static domain_name_servers=1.1.1.1
Then I realized that I wanted the I.P. address to be 10.20.16.12/23, so I changed it in dhcpcd.conf
interface eth0.16
static ip_address=10.20.16.12/23
static routers=10.20.17.1
static domain_name_servers=1.1.1.1
rebooted
hostname -I:
192.168.0.88 10.20.36.2 // eth0.16 didn't change, double checked dhcpcd.conf and it is in there as 10.20.16.12/23
Statistics: Posted by evanmars — Thu Jul 25, 2024 7:39 pm