virtual-system switch-authentication enable

Function

The virtual-system switch-authentication enable command enables login authentication when the Admin-VS is switched to a specified service VS.

The undo virtual-system switch-authentication enable command disables login authentication when the Admin-VS is switched to a specified service VS.

By default, login authentication is disabled when the Admin-VS is switched to a specified service VS.

Format

virtual-system switch-authentication enable

undo virtual-system switch-authentication enable

Parameters

None

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
lsvs write

Usage Guidelines

Usage Scenario

To prevent other users from switching from the Admin-VS to a service VS, you can run this command to enable login authentication for switching from the Admin-VS to a service VS. After this function is enabled, user name and password authentication is required when the switch virtual-system command is run to switch from the Admin-VS to a service VS.

Precautions

Before enabling login authentication for switching from the Admin-VS to a service VS, ensure that valid and available users (local AAA users or remote users) have been configured for the service VS.

Example

# Enable login authentication for switching from the Admin-VS to a service VS.
<HUAWEI> switch virtual-system vs1
<HUAWEI-vs1> system-view
Enter system view, return user view with return command.
Warning: The slave board is not in position. Exercise caution when performing this operation.
[~HUAWEI-vs1] virtual-system switch-authentication enable
Warning: Ensure that there are available login users. Otherwise, the switching from the Admin-VS to the service VS will fail. Continue? [Yes/No]:yes
Warning: Ensure again that there are available login users. Continue? [Yes/No]:yes
[~HUAWEI-vs1] return
<HUAWEI> switch virtual-system vs1

Username:root123
Password:
Warning: The initial password poses security risks.
The password needs to be changed. Change now? [Y/N]:y
Please enter old password:
Please enter new password:
Please confirm new password:
Info: The password is changed successfully.

<HUAWEI-vs1>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic