Table of ContentsView in Frames

Configuring a VLAN

After you create a VLAN, you must configure it with an IP address. By using the ifconfig command, you can configure all the parameters for a VLAN interface in the same way that you configure the parameters for a physical interface.

About this task

You can configure the following parameters for a VLAN:

Step

  1. Enter the following command: ifconfig ifname-vlanid IP_address netmask mask
    ifname-vlanid is the VLAN interface name.
    IP_address is the IP address for this interface.
    mask is the network mask for this interface.
    Example

    Create VLANs with identifiers 1760 on the interface e5a of a storage system by using the following command: vlan create e5a 1760

    Configure the VLAN interface e5a-1760 by using the following command: ifconfig e5a-1760 192.0.2.11 netmask 255.255.255.0

    To configure the VLAN interface e5a-1760 with an IPv6 address, use the following command: ifconfig e5a-1760 2001:0db8:85a3:0:0:8a2e:0370:99 prefixlen 64