Написать в техподдержку Позвонить нам
Admin Panel Logout

In this article:

    VM ports

    Port - the virtual network interface card of the instance containing the IP address, DNS name and security groups.

    Port operations can be performed in your MCS account and in the Openstack CLI.

    Port View

    In your personal account MCS you can view the existing ports of private networks. To do this, go to the "Networks" page of the "Virtual networks" section, select the required network, then open the subnet.

    The "Ports" tab shows the subnet connected to the Internet (the router ports are visible: SNAT, INTERFACE_DISTRIBUTED) and with DHCP enabled (the DHCP port address is also the address of the private DNS server).

    Adding ports

    In the MCS panel, a port (network connection) is added to the virtual machine by selecting the "Add connection" option on the "Network information" tab of the instance page:

    In the parameters of the added connection, you must fill in the fields:

    Parameter Description
    Network to connect Selecting an external (ext-net) or private network to connect to the instance. It is also possible to create a new network in the project.
    DNS name Entering the DNS name of the port, required when using private DNS. Appears when you select a private network.
    Set IP address Setting the item allows you to set the instance to a specific address in the private network.
    Firewall settings Select the security group rules to be assigned to the port.

    After saving, the network interface will be added to the instance; you will additionally need to configure the network in the instance's operating system.

    Editing and Deleting Ports

    Editing or deleting existing ports is available in the port context menu on the Ports tab:

    OpenStack CLI

    Port operations can be performed in the OpenStack client:

    Add network to instance:

     $ openstack server add network <server ID> <network ID>

    View the list of virtual machine ports:

     $ openstack port list --server <server ID>

    Get port data:

     $ openstack port show <port ID>

    Change port parameters:

     $ openstack port set <argument> <port ID>
    • --dns-name - DNS port name
    • --description - arbitrary description
    • --enable / disable - enable / disable the port (disabled port does not allow traffic)
    • --name - port name
    • --fixed-ip - assign the specified address from the subnet
    • --security-group - assign a security group to a port
    • --disable-port-security - disable security groups and checks for compliance of the port IP address and traffic
    • --allowed-address - specifying a trusted list of outgoing traffic addresses

    Remove port:

     $ openstack port delete <port ID>

    Was this article helpful?