Справочник Пользователя для Q-Logic 3000

Скачать
Страница из 120
9–Linux Configuration for Bonding Mode and Virtual LAN (VLAN)
Configuring Virtual LAN (VLAN) Under Linux
NE0154601-00  B
9-7
Configuring Virtual LAN (VLAN) Under Linux
To configure the VLAN function:
1.
Type the following command to see if the 8021q.ko driver has been 
loaded: 
% lsmod | grep 8021q 
Type the following command if the driver has not been loaded:
% modprobe -v 8021q
The vconfig add command creates a VLAN device on eth0 and will, in 
turn, create an eth0.5 interface. 
2.
Type the following command for eth0 to add VLAN ID 5:
% vconfig add eth0 5
3.
Type the ifconfig command to assign an IP address to the VLAN 
interface:
% ifconfig eth0.5 192.168.1.100 netmask 255.255.255.0 
broadcast 192.168.1.255 up
4.
Type the following command to get detailed information about the VLAN 
interface:
% cat /proc/net/vlan/eth0.5
Repeat 
 and 
 if more than one VLAN is required.
Type the following commands to delete a VLAN interface:
% ifconfig eth0.5 down
% vconfig rem eth0.5