
Split content into kubernetes and openstack to align with refactoring of other docs. Incorporated review comments doc/source/_includes/dynamic-vxlan.rest update Signed-off-by: Ron Stone <ronald.stone@windriver.com> Change-Id: I4c27aa4d1d5d405824eda669d5f484987e7789de Signed-off-by: Ron Stone <ronald.stone@windriver.com>
2.6 KiB
Manage Data Interface Static IP Addresses Using the CLI
If you prefer, you can create and manage static addresses for data interfaces using the .
For more information about using static addresses for data
interfaces, see Adding a Static IP Address to a Data Interface
<adding-a-static-ip-address-to-a-data-interface>
.
To make interface changes, you must lock the compute node first.
Lock the compute node.
Set the interface to support an IPv4 or IPv6 address, or both.
~(keystone_admin)]$ system host-if-modify <node> <ifname> --ipv4-mode=<ipv4mode> --ipv6-mode=<ipv6mode>
where
- node
-
is the name or of the compute node
- ifname
-
is the name of the interface
- ipv4mode
-
is either disabled or static
- ipv6mode
-
is either disabled or static
Add an IPv4 or IPv6 address to the interface.
~(keystone_admin)]$ system host-addr-add <node> <ifname> <ip_address> <prefix>
where
- node
-
is the name or of the compute node
- ifname
-
is the name of the interface
- ip_address
-
is an IPv4 or IPv6 address
- prefix
-
is the netmask length for the address
To delete an address, use the following commands:
~(keystone_admin)]$ system host-addr-list <hostname/ID>
This displays the of existing addresses, as shown in this example below.
~(keystone_admin)]$ system host-addr-list compute-0 +-----------------------+--------+------------------------+--------+ | uuid | ifname | address | prefix | +-----------------------+--------+------------------------+--------+ | 290629f6-41e5-48d9... | ae0 | 2605:6400:2:fed5:22... | 112 | | 5de0e0bf-21fc-4532... | ae0 | 2605:6400:2:fed5:22... | 122 | | e78923d7-3ccf-4332... | ae0 | 192.168.61.70 | 27 | +-----------------------+--------+------------------------+--------+
~(keystone_admin)]$ system host-addr-delete <uuid>
where uuid is the of the address.
Unlock the compute node and wait for it to become available.