< Home

assign global-ip

Function

The assign global-ip command assigns a public IP address to the virtual system.

The undo assign global-ip command deletes the public IP address assigned to the virtual system.

Format

assign global-ip start-address end-address { exclusive | free }

undo assign global-ip start-address end-address

Parameters

Parameter Description Value
start-address end-address Specifies a public IP address range for the virtual system. The start IP address and end IP address are in dotted decimal notation.
exclusive Indicates the exclusive mode. -
free Indicates the free mode. -

Views

Management view of the virtual system

Default Level

2: Configuration level

Usage Guidelines

No public IP address is assigned to the virtual system by default.

Usage Scenario

Source NAT, NAT Server or NAT64 configured in virtual systems require public IP addresses. In such cases, run the assign global-ip command in the root system to assign public IP addresses to virtual systems.

Configuration Impact

Public IP addresses can be assigned in the following modes:

  • Exclusive mode

    The public IP address assigned in exclusive mode to a virtual system cannot be assigned to other virtual systems.

  • Free mode

    The public IP address assigned in free mode to a virtual system can still be assigned in free mode only to other virtual systems.

start-address and end-address indicate the same IP address when their values are the same.

After a public IP address is assigned in exclusive or free mode to a virtual system, the NAT address pool and NAT Server global address in the root system cannot be the IP address any more.

Precautions

When you configure NAT address pools or NAT Server in virtual systems, the IP addresses in the NAT address pool and the global address of NAT Server must be the IP addresses in the public IP address ranges assigned to the virtual systems. Otherwise, the configuration will fail to be delivered.

Example

# Assign a public IP address range in free mode to virtual system vsys1.

<sysname> system-view
[sysname] vsys name vsys1
[sysname-vsys-vsys1] assign global-ip 1.1.1.1 1.1.1.10 free
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >