Q-Logic 3000, 3100 manual Configuring Virtual LAN VLAN Under Linux

Models: 3000 3100

1 120
Download 120 pages 4.97 Kb
Page 87
Image 87
Configuring Virtual LAN (VLAN) Under Linux

9–Linux Configuration for Bonding Mode and Virtual LAN (VLAN) Configuring Virtual LAN (VLAN) Under Linux

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 Steps 2 and 3 if more than one VLAN is required.

Type the following commands to delete a VLAN interface:

%ifconfig eth0.5 down

%vconfig rem eth0.5

NE0154601-00 B

9-7

Page 87
Image 87
Q-Logic 3000, 3100 manual Configuring Virtual LAN VLAN Under Linux