Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

Creating and configuring a VLAN on a filer

Commands for creating and configuring a VLAN  Top

Creating and configuring a VLAN involves two commands: the vlan create command and the ifconfig command.

The vlan create command creates a VLAN interface, includes that interface in one or more VLAN groups as specified by the VLAN identifier, enables VLAN tagging, and enables (optionally) GVRP on that interface.

The ifconfig command enables you to configure the VLAN interface created by the vlan command.

About enabling and disabling GVRP on VLAN interfaces  Top

By default, GVRP is disabled on VLAN interfaces created using the vlan create command; however, you can enable it with the -g flag available with the command.

If you enable GVRP on an interface that is configured down, the state of the interface and all associated VLAN interfaces is automatically configured up. This state change occurs so that the interface can start sending VLAN registration frames to register its VLAN membership with the switch.

Creating a VLAN on a filer  Top

To create a VLAN on a filer, complete the following step.

Note
You must be familiar with Guidelines for setting up VLANs in Data ONTAP before proceeding with the following procedure.

Example of creating a VLAN interface  Top

You can create VLANs with identifiers 10, 20, and 30 on interface e4 of a filer 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:

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

Configuring an interface in a VLAN  Top

Using the ifconfig command, you can configure all the parameters for a VLAN interface that you can for a physical interface. The parameters you can configure are

For detailed information about the ifconfig command, see Chapter 1, Network Interface Configuration.

To configure the IP address and network mask for a VLAN interface, complete the following step.

Step

Action

1

Enter the following command:

ifconfig ifname-vlanid address netmask mask

ifname-vlanid is the VLAN interface name.

address is the IP address for this interface.

mask is the network mask for this interface.

Example

You can configure a VLAN interface e4-10, created in the previous example, using the following command:

ifconfig e4-10 172.25.66.11 netmask 255.255.255.0

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments