container—Configure a vSmart controller as a container within a vContainer host (on vContainer hosts only).
container instance instance-name allow-address prefix/length 0 [port] protocol description "text" image filename interface interface-name host-ip-address prefix/length memory megabytes [no] shutdown
- Address from which To Access the Container Instance
- allow-address prefix/length 0 [port] protocol
Prefixes from which to access the container instance and the port and protocol to use to access the container instance.
prefix/length is an IPv4 prefix. You can configure up to 64 prefixes, specifying one per allow-address command.
To specify the port and protocol to use to access the instance, type a 0, followed by the port and protocol:
• 0 all—Open all ports and allow all protocols.
• 0 icmp—Open access for ICMP traffic
• 0 port-number tcp—Open the specified port for TCP traffic.
• 0 port-number udp—Open the specified port for UDP traffic.
Typically, the prefixes are those of other controller devices, including vBond orchestrators, vSmart controllers, and vManage NMSs. If you configure multiple allow-address commands, the IP addresses are cumulative. That is, a second allow-address command does not overwrite the addresses that you configured with the first allow-address command. To delete a single IP addresses from the list of allowed addresses, use the no allow-address ip-address command.
- Enable or Disable the Instance
- [no] shutdown
To enable a container instance, use the no shutdown command. To disable a container instance, use the shutdown command.
- Image To Use on the vSmart Controller
- image filename
Name of the software image to use on the vSmart controller. This image must already be installed on the vContainer host.
- Instance Description
- description "text"
Text description of the container instance. The text can be a maximum of 32 characters. If it includes spaces, enclose the entire string in quotation marks (" ").
- Instance Name
- instance instance-name
Name of the instance. It can be a string up to 32 characters long.
- Interface Associated with the Instance
- interface interface-name
Name of the interface associated with the container instance and the interface's IP address. Specify interface-name in the format ethnumber, where number is an integer starting with 0. eth0 is the management interface, and eth1 is the transport interface.
- Memory To Allocate to the Instance
- memory megabytes
Amount of memory to allocate to the container instance.
Range: 256 through 16384 MB
Default: 512 MB
Configure IP address lists, and configure containers for three vSmart controllers on a container host:
vContainer# show running-config container container instance first_vsmart image 16.2.0 no shutdown memory 512 allow-address 188.8.131.52/32 0 all allow-address 184.108.40.206/32 0 all interface eth0 host-ip-address 10.0.1.25 ! ! instance second_vsmart image 16.2.0 no shutdown memory 512 allow-address 220.127.116.11/32 0 all allow-address 18.104.22.168/32 0 all interface eth0 host-ip-address 10.0.1.26 ! ! instance vm10 image 16.2.0 no shutdown memory 512 allow-address 22.214.171.124/32 0 all allow-address 126.96.36.199/32 0 all interface eth0 host-ip-address 10.0.1.30 ! interface eth1 host-ip-address 10.0.12.20 ! interface eth2 host-ip-address 10.2.2.20 ! ! ! vpn 0 interface eth1 ip address-list 10.0.1.25/24 ip address-list 10.0.1.26/24 ip address-list 10.0.1.27/24 ip address-list 10.0.1.30/24 ip static-route 0.0.0.0/0 10.0.1.1 no shutdown ! interface eth2 ip address-list 10.2.2.20/24 ip address-list 10.2.2.25/24 ip address-list 10.2.2.26/24 ip address-list 10.2.2.27/24 ip static-route 0.0.0.0/0 10.2.2.1 no shutdown ! interface eth3 ip address-list 10.0.12.20/24 ip static-route 0.0.0.0/0 10.0.12.13 no shutdown ! ! vpn 512 interface eth0 ip dhcp-client no shutdown ! !
Command introduced in Viptela Software Release 16.2.
In Release 16.3.2, add allow-address command.