Raspberry Pi – mit multiplen Netzwerkkarten über VLAN

# apt-get update -y
# apt-get install vlan
# vi /etc/network/interfaces.d/vlans
auto eth0.10
iface eth0.10 inet manual
vlan-raw-device eth0
# vi /etc/dhcpcd.conf
interface eth0
static ip_address=192.168.1.105/24
static routers=192.168.1.1
static domain_name_servers=1.1.1.1
interface eth0.10
static ip_address=192.168.100.50/24
static routers=192.168.100.200
static domain_name_servers=1.1.1.1
# systemctl restart networking
# hostname -I
192.168.1.105 192.168.100.50

Leave a Reply

You must be logged in to post a comment.