From af866f38c674663aef9cb328ff6feab7d35248cf Mon Sep 17 00:00:00 2001 From: JShaw Date: Wed, 15 Oct 2014 09:06:03 +0100 Subject: [PATCH] Vlan Cheetsheet Vlan Cheetsheet --- Cheatsheet_Vlans.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Cheatsheet_Vlans.txt diff --git a/Cheatsheet_Vlans.txt b/Cheatsheet_Vlans.txt new file mode 100644 index 0000000..63b8592 --- /dev/null +++ b/Cheatsheet_Vlans.txt @@ -0,0 +1,16 @@ +Configure an Ethernet interface as a VLAN trunk +--------------------------------------------------- + +Suppose that a host requires access to two VLANs, both carried by a trunk connected to physical interface eth0. The assigned IP addresses for the host are 192.168.2.1/24 on VLAN 2 and 192.168.3.1/24 on VLAN 3. + +[+] First install the vlan package if it is not already present: + +apt-get install vlan + +[+] Configuring interfaces + +vconfig add eth0 +ifconfig eth0. /24 up +ifconfig eth0. + +Note: If any issues run, ifconfig eth0 0.0.0.0 up \ No newline at end of file