2014年10月27日 星期一

[Ubuntu]Create VLAN in Ubuntu Linux


1. Install the vlan package using apt-get tool

· sudo apt-get install vlan

2. Load the Vlan (802.1q) module

· modprobe 8021q
· echo 8021q >> /etc/modules

3. Add vlan interface by using ‘vconfig add [interface-name] [vlan_id]‘ command syntax

· vconfig add eth0 188
· ifconfig eth0.188 192.168.188.100 netmask 255.255.255.0
· sudo gedit /etc/network/interfaces 

· auto eth0.188
· iface eth0.188 inet static
· address 192.168.188.100
· netmask 255.255.255.0
· vlan-raw-device eth0

 

 

4. Remove Vlan interface

· vconfig rem eth0.188

沒有留言:

張貼留言

Asterisk & FreePBX Feature Codes

Asterisk & FreePBX Feature Codes Feature Codes enable you to control what happens to your phone extension and calls to it and voicemail....