From 0dcca1f5ba7403096e8a39cabad7ca3b46b53d63 Mon Sep 17 00:00:00 2001 From: Damien A Date: Mon, 5 Feb 2024 16:57:00 +0100 Subject: [PATCH] h1/2_interfaces : Add Vlan tag --- hosts/h1_interfaces | 7 ++++++- hosts/h2_interfaces | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/hosts/h1_interfaces b/hosts/h1_interfaces index c96d347..65645c0 100644 --- a/hosts/h1_interfaces +++ b/hosts/h1_interfaces @@ -3,6 +3,11 @@ iface lo inet loopback auto eth1 iface eth1 inet static + +auto eth1.50 +iface eth1.50 inet static address 10.10.120.10 netmask 255.255.255.0 - gateway 10.10.120.1 \ No newline at end of file + gateway 10.10.120.1 + vlan-raw-device eth1 + vlan_id 50 \ No newline at end of file diff --git a/hosts/h2_interfaces b/hosts/h2_interfaces index e51a778..b3e49de 100644 --- a/hosts/h2_interfaces +++ b/hosts/h2_interfaces @@ -3,6 +3,11 @@ iface lo inet loopback auto eth1 iface eth1 inet static + +auto eth1.50 +iface eth1.50 inet static address 10.10.120.20 netmask 255.255.255.0 - gateway 10.10.120.1 \ No newline at end of file + gateway 10.10.120.1 + vlan-raw-device eth1 + vlan_id 50 \ No newline at end of file