add interface vlan

In the R81.10.X releases, this command is available starting from the R81.10.00 version.

Description

Configures a new 802.1q tag-based VLAN on an existing physical interface.

Important - After you add a VLAN ID, you must use the "set interface" commands to configure the VLAN settings.

In WebUI, this corresponds to:

  1. Click the Device view > Network section > Local Network page.

  2. From the top toolbar, click New > VLAN.

  3. Configure the required settings.

See:

Syntax in versions R81.10.00 - R81.10.10

add interface <Name of Physical Interface> vlan <1-4094>

Syntax in versions R81.10.15 and higher

add interface <Name of Physical Interface> vlan <1-4094>

      ipv4-address <IPv4 Address> mask-length <Subnet Mask Length>

      cluster-status { clustered | monitored | non-ha } peer-cluster-ipv4-addr <IPv4 Address> cluster-ipv4-addr <Cluster Virtual IPv4 Address>

Parameters

Parameter

Description

interface

Specifies the name of the parent physical interface.

Press the TAB key to see the available options.

vlan

Specifies the VLAN ID from 1 to 4094.

ipv4-address

Note - In the R81.10.X releases, this command is available starting from the R81.10.15 version.

Specifies the IPv4 address of the VLAN interface on this Cluster Member.

mask-length

Note - In the R81.10.X releases, this command is available starting from the R81.10.15 version.

Specifies the subnet mask length.

cluster-status

Note - In the R81.10.X releases, this command is available starting from the R81.10.15 version.

In a cluster configuration, specifies the cluster status (cluster role) for this VLAN interface:

  • clustered

    This interface is a cluster interface with a Cluster Virtual IP address.

    If the state of this interface changes, or if it cannot send / receive Cluster Control Protocol (CCP) packets, then the cluster mechanism initiates a failover.

  • monitored

    This interface is a cluster interface without a Cluster Virtual IP address.

    If the state of this interface changes, or if it cannot send / receive Cluster Control Protocol (CCP) packets, then the cluster mechanism initiates a failover.

  • non-ha

    This interface is not a cluster interface.

    This interface does not send / receive Cluster Control Protocol (CCP) packets.

    If the state of this interface changes, then the cluster mechanism does not initiate a failover.

peer-cluster-ipv4-addr

Note - In the R81.10.X releases, this command is available starting from the R81.10.15 version.

In a cluster configuration, specifies the IPv4 address of the peer VLAN interface on the peer Cluster Member.

cluster-ipv4-addr

Note - In the R81.10.X releases, this command is available starting from the R81.10.15 version.

In a cluster configuration, specifies the Cluster Virtual IPv4 address on this VLAN interface.

Example Command in R81.10.00

add interface LAN5 vlan 12

Example Command in R81.10.15

add interface LAN4 vlan 500 ipv4-address 192.168.3.51 mask-length 24 cluster-status clustered peer-cluster-ipv4-addr 192.168.3.52 cluster-ipv4-addr 192.168.3.55