A.50 create VlanInterface

Creates a VLAN interface.

Syntax

create VlanInterface vlanId=value [ mtu=value ] name=value [ description=value ] on { Port | BondPort } instance

Where instance is:

{ id=value | name=value }

Description

This command creates a VLAN interface on either a port or a bond port.

To configure the IP address for a VLAN interface, use the embeddedCreate command.

Options

The following table shows the available options for this command.

Option

Description

vlanId=value

The ID of the VLAN interface. May be an integer between 2 and 4095.

mtu=value

The MTU value. May be an integer between 1500 and 64000.

name=value

A name to identify the VLAN interface.

description=value

Optional description for the VLAN interface. value is a maximum of 4,000 characters.

{ id=value | name=value }

The instance of the object using either the id or name option, for example name=MyPort.

Note

Any create command only creates a single instance of an object, and therefore only accepts a single object instance as an attribute. Providing more than one object of the same attribute type as a parameter always results in the last attribute value taking precedence.

Examples

Example A.66 Creating a VLAN interface

OVM> create VlanInterface vlanId=20 mtu=1500 name=MyVLANInterface on Port \
  id=0004fb0000200000229dbcccf17efec5

See Also