Skip to content

Commit

Permalink
Vlan Cheatsheet update
Browse files Browse the repository at this point in the history
Vlan Cheatsheet update
  • Loading branch information
1nPr0c committed Oct 17, 2014
1 parent af866f3 commit edae652
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Cheatsheet_Vlans.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,23 @@ Suppose that a host requires access to two VLANs, both carried by a trunk connec

apt-get install vlan

[+] Turn off network-manager

sudo stop network-manager

[+] Configuring interfaces

vconfig add eth0 <VLAN ID>
vconfig add eth0 <VLAN ID> (you may get a warning message on the first one)
example: vconfig add eth0 101

ifconfig eth0.<VLAN ID> <IP Address>/24 up
example: ifconfig eth0.101 192.168.1.10/24 up

ifconfig eth0.<VLAN ID>

Note: If any issues run, ifconfig eth0 0.0.0.0 up
Note: If any issues run, ifconfig eth0 0.0.0.0 up
Note: Specify interface with nmap scanning (nmap -e eth0.101)
Note: You will probably need to add individual routes for each vlan if you want to communicate between vlans, don't rely on your default gateway. (route add)

[+] Remove Configuration
vconfig rem eth0.101

0 comments on commit edae652

Please sign in to comment.