< Home

vserver

Function

The vserver command creates a virtual server and accesses the virtual server view.

The undo vserver command deletes a virtual server.

Format

vserver [ vserver-id ] vserver-name

undo vserver { vserver-id | vserver-name }

Parameters

Parameter Description Value

vserver-id

Specifies the ID of a virtual server.

The value is an integer ranging from 0 to 127.

vserver-name

Specifies the name of a virtual server.

The value is a case-insensitive string of 1 to 32 characters. It must start with a letter and cannot be all, vsys, or all-systems.

Views

SLB configuration view

Default Level

2: Configuration level

Usage Guidelines

This command is used to create a virtual server and access the virtual server view. If a virtual server already exists, this command is used to access the virtual server view.

If you do not set an ID for a virtual server when creating it, the FW assigns an ID to it. The FW will walk through the virtual server IDs of all virtual systems and assign the smallest idle ID to a newly created virtual server.

Example

# Create a virtual server named vs1.

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