2. Set the device name of SwitchA.
<Quidway> system-view
[Quidway] sysname SwitchA
3. Configure a management VLAN.
[SwitchA] vlan 1
[SwitchA-vlan1] description admin_VLAN
4. On SwitchA, set the type of the interface that connects SwitchA and SwitchB to trunk. Add
the interface to the management VLAN in trunk mode.
[SwitchA] interface Gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1] port link-type trunk
[SwitchA-GigabitEthernet0/0/1] port trunk allow-pass vlan 1
[SwitchA-GigabitEthernet0/0/1] quit
5. Configure the management IP address of SwitchA.
[SwitchA] interface vlanif 1
[SwitchA-Vlanif1] ip address 10.10.10.10 255.255.255.0
[SwitchA-Vlanif1] quit
6. Configure the Telnet service on SwitchA:
l Set the authentication method to AAA, user name to huawei, and password to huawei.
l Set the service type to telnet and user level to 15.
l Configure AAA authentication for the users at the vty 0 to vty 4 levels.
[SwitchA] aaa
[SwitchA-aaa] local-user huawei password simple huawei
[SwitchA-aaa] local-user huawei service-type telnet
[SwitchA-aaa] local-user huawei privilege level 15
[SwitchA-aaa] quit
[SwitchA] user-interface vty 0 4
[SwitchA-ui-vty0-4] authentication-mode aaa
[SwitchA-ui-vty0-4] return
<SwitchA>
7. Verify the configuration.
NOTE
When the administrator logs in to SwitchA through Telnet, ensure that the PC of the administrator
and SwitchA are reachable at the network layer.
<SwitchA> telnet 127.0.0.1
Trying 127.0.0.1 ...
Press CTRL+T to abort
Connected to 127.0.0.1 ...
***********************************************************
* All rights reserved (2005-2007) *
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
* Notice: *
* This is a private communication system. *
* Unauthorized access or use may lead to prosecution. *
***********************************************************
Login authentication
Username:huawei
Password:
Note: The max number of VTY users is 15, and the current number
of VTY users on line is 3.
<SwitchA>
S3700&S5700&S6700 Series Ethernet Switches
Quick Start 5 Logging in to the Device
Issue 02 (2012-09-10) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
60