一、实验拓扑

实验记录:华为交换机配置Telnet_华为交换机

如图所示:华为交换机S5700 G0/0/1 口与PC 直通。

二、配置示例

<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan 10
[Huawei-vlan10]quit
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type access
[Huawei-GigabitEthernet0/0/1]port default vlan 10
[Huawei-GigabitEthernet0/0/1]quit
[Huawei]interface vlanif 10
[Huawei-Vlanif10]ip address 192.168.1.249 24
[Huawei-Vlanif10]quit
[Huawei]telnet client-source -i vlanif 10
Info: Succeeded in setting the source interface of the telnet client to Vlanif10
.
[Huawei]telnet server enable 
Info: The Telnet server has been enabled.
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode aaa
[Huawei-ui-vty0-4]quit
[Huawei]aaa
[Huawei-aaa]local-user admin password cipher abcd@123
[Huawei-aaa]local-user admin privilege level 15
[Huawei-aaa]local-user admin service-type telnet
[Huawei-aaa]quit
[Huawei]quit
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei>

三、登录验证

在PC 上打开SecureCRT软件,Alt+Q快捷键调出快速连接窗口,输入telnet地址和端口,点击“Connect”

实验记录:华为交换机配置Telnet_Telnet_02

输入账号“admin”,密码“abcd@123”登录成功!

实验记录:华为交换机配置Telnet_Telnet_03


参阅官方文档:

S300, S500, S2700, S5700, S6700 产品文档 —— 配置通过Telnet登录设备