< Home

vip

Function

The vip command sets an IP address for a virtual server.

The undo vip command deletes the IP address of a virtual server.

Format

vip [ start-vip-id [ to end-vip-id ] ] ip-address

undo vip start-vip-id [ to end-vip-id ]

Parameters

Parameter Description Value
start-vip-id

Specifies the start ID of the IP address of a virtual server.

The value is an integer ranging from 0 to 7.

end-vip-id

Specifies the end ID of the IP address of a virtual server.

The value is an integer ranging from 0 to 7 and must be equal to or greater than the start ID.

ip-address

Specifies the IP address of a virtual server.

The value is in dotted decimal notation.

Views

Virtual server view

Default Level

2: Configuration level

Usage Guidelines

Multiple IP addresses can be set for a virtual server to provide services for different network segments. If you do not set an ID for a virtual server when setting an IP address for it, the FW assigns an ID to it. When modifying the IP address of a virtual server, you must specify the ID.

The vip start-vip-id to end-vip-id ip-address command is used to set IP addresses for a virtual server in batch. For example, use the vip 1 to 5 10.10.10.1 command to set IP addresses 10.10.10.1 to 10.10.10.5 for a virtual server. The ID mapping 10.10.10.1 is 1, the ID mapping 10.10.10.2 is 2, and so on.

Example

# Configure IP addresses 10.10.10.21 to 10.10.10.25 for a virtual server.

<sysname> system-view
[sysname] slb
[sysname-slb] vserver 1 vs1
[sysname-slb-vserver-1] vip 1 to 5 10.10.10.21
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >