Library Table of Contents Index Previous Next Comments

Managing VLANs on a filer

Adding an interface to a VLAN

Command for adding an interface to a VLAN  Top

If a physical interface does not belong to any VLAN, you use the vlan create command to make the interface a member of one or more VLANs. However, if the interface is already a member of a VLAN, you must use the vlan add command to add the interface to subsequent VLANs.

Like the vlan create command, the vlan add command creates a VLAN interface that must be configured using the ifconfig command.

Adding an interface to a VLAN  Top

To add an interface to a VLAN, complete the following step.

Step

Action

1

Enter the following command:

vlan add ifname vlanid 

ifname is the name of the network interface.

vlanid is the VLAN identifier to which the ifname interface belongs.

You can include a list of VLAN identifiers.

Result

A VLAN interface with the name ifname-vlanid is created.

Note
VLANs created using the vlan add commands are not persistent across reboots unless the vlan commands are added to the /etc/rc file.

Example of adding an interface to a VLAN  Top

You can add VLANs with identifiers 40 and 50 on interface e4 of a filer using the following command:

vlan add e4 40 50

As a result, VLAN interfaces e4-40 and e4-50 are created.

Library Table of Contents Index Previous Next Comments