交换机配置基本命令(H3C)
简单记录,以后慢慢补充。。
本文介绍配置交换机的基本命令
恢复出厂设置命令,必学!!!
配置错了,恢复不了出厂设置才是最难受的。
restore factory-default
重启
reboot
查看当前配置
display current-configuration
查看聚合
display irf
导出配置文件
[H3C]ftp server enable /启动FTP服务/
[H3C]local-user guest /增加一个本地用户,用户名为guest/
[H3C-luser-ftp]password simple ftp /配置用户名为guest的密码为ftp/
[H3C-luser-ftp]service-type ftp ftp-directory flash:/
/指定此用户的服务类型为ftp,且ftp后的上传下载目录为flash下/
在PC机“开始菜单”的“运行”栏中键入“cmd”,进入DOS界面
(1)获取配置文件
C:\>ftp 10.10.0.254
User (10.10.0.254:(none)): guest
331 Password required for guest.
Password:
230 User logged in.
ftp> dir
ftp> get startup.cfg
导入配置文件
没有实践
c:\> ftp 10.10.0.254
ftp> put aaa.bin bbb.bin
Telent登录
配置思路
- 给交换机配置IP
- 打开telnet,并创建远程登陆的虚拟端口
- 创建一个用于telnet的用户,设置密码和权限
Telnet登录
[Kengic01]interface Vlan-interface 3
[Kengic01-Vlan-interface3]ip address 192.168.3.140 24
[Kengic01-Vlan-interface3]quit
[Kengic01]telnet server enable
[Kengic01]line vty 0 63
[Kengic01-line-vty0-63]authentication-mode scheme
[Kengic01-line-vty0-63]quit
[Kengic01]local-user admin
New local user added.
[Kengic01-luser-manage-admin]password simple Kengic@123
[Kengic01-luser-manage-admin]service-type telnet
[Kengic01-luser-manage-admin]authorization-attribute user-role network-admin
[Kengic01-luser-manage-admin]quit
[Kengic01]save