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

沒有留言:

張貼留言

[python]pip install fcntl (Win10)

建立一個 fcntl.py文件, 並將其存放Python的安装路徑Lib目錄下, C:\Users\[name]\AppData\Local\Programs\Python\Python311\Lib fcntl.py =============================...