Table of ContentsLibraryView in Frames

Creating a VLAN

You can create a VLAN on your storage system in order to have ease of administration, confinement of broadcast domains, reduced network traffic, and enforcement of security policies

Step

  1. Enter the following command:

    vlan create [-g {on|off}] ifname vlanid

-g enables (on) or disables (off) GVRP on an interface. By default, GVRP is disabled on the interface.

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.

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

Example of creating a VLAN interface

You can create VLANs with identifiers 10, 20, and 30 on interface e4 of a storage system using the following command:

vlan create e4 10 20 30

As a result, VLAN interfaces e4-10, e4-20, and e4-30 are created. The ifconfig command output displays e4 as a VLAN interface as follows:

e4: flags=80008042<BROADCAST,RUNNING,MULTICAST,VLAN> mtu 1500