openstack-interface-add

OpenStack is a cloud operating system that controls large pools of compute, storage, and networking resources throughout a data center. This command is used to add an interface to an OpenStack instance.

Syntax   openstack-interface-add

openstack-name name-string

Specify the name of the OpenStack instance to add the interface.

Specify any of the following options:

ip ip-address

Specify the IP address for the interface.

netmask netmask

Specify the netmask.

assignment none|dhcp|dhcpv6|autov6

Specify the method of IP address assignment.

vnet vnet name

Specify the interface VLAN VNET.

vlan vlan-id

Specify the VLAN assigned to the interface.

vlan-type public|private

Specify the type of VLAN for the interface.

if mgmt|data|span

Specify the type of interface.

alias-on alias-on-string

Specify an alias if desired.

exclusive|no-exclusive

Specify if the interface is exclusive or not.

nic-enable|
nic-disable

Specify if the NIC is enabled or disabled.

vrrp-id id

Specify the ID assigned by VRRP.

vrrp-primary vrrp-primary-string

Specify the primary interface for VRRP.

vrrp-priority vrrp-priority-number

Specify the VRRP priority for the interface.

vrrp-adv-int mseconds

Specify the VRRP advertisement interval in milliseconds. The range is 10 to 40950 with a default value of 1000.

secondary-macs secondary-macs-string

Specify a secondary MAC address for the interface.

if-nat-realm internal|external

Specify the NAT interface realm.

priority-tag|
no-priority-tag

Specify the VLAN 0 priority tag on forwarded traffic.

Defaults   None

Access   CLI

History   

Version 2.0

Command introduced.

Version 2.1

The parameters, exclusive, and nic added.

Version 2.2.4

The parameter, secondary-macs, added.

Version 2.4.1

The parameter, vxlan, deprecated. The parameter, vlan-type, added.

Version 2.5.4

The parameter, vnet, added.

Version 2.6.2

The parameter, if-nat-realm, added.

Version 3.1.0

The parameter, priority-tag|no-priority-tag, added.

Usage   Use this command to add an interface to an OpenStack instance.

Examples  To add an interface to the OpenStack instance, Open-One, with IP address, 192.168.1.1., VLAN 25, and data as the interface, use the following command:

CLI network-admin@switch > openstack-interface-add name Open-One ip 192.168.1.1 netmask 255.255.255.0 assignment none vlan 25 if data

See Also