H3C交换机配置SSH WEB 恢复出厂

作者 : 七界传说 发布时间: 2022-07-15 文章热度:1.74K 共2170个字,阅读需6分钟。 本文内容有更新

目 录

H3C交换机配置SSH WEB 恢复出厂-七界传说丨关注分享网络、硬件、维护、游戏、主题、虚拟化、软件分享!

H3C v5 交换机配置ssh

生成RSA和DSA密钥对

[H3C]public-key local create rsa
[H3C]public-key local create dsa

开启ssh服务

[H3C]ssh server enable
[H3C]user-interface vty 0 15
[H3C-ui-vty0-15]authentication-mode scheme
[H3C-ui-vty0-15]protocol inbound ssh

创建用户admin,设置认证密码admin, 登录协议为SSH,能访问的命令级别为level 3

[H3C]local-user admin
[H3C-luser-admin]password simple admin

定义登录协议

[H3C-luser-admin]service-type ssh

创建用户级别

[H3C-luser-admin]authorization-attribute level 3
[H3C-luser-admin]quit
[H3C]save                       #保存配置

h3c v7交换机配置ssh

生成RSA和DSA密钥对

[H3C]public-key local create rsa
[H3C]public-key local create dsa

开启ssh服务 并设置用户接口上的认证模式为AAA,并让用户接口支持SSH协议

[H3C]ssh server enable
[H3C]user-interface vty 0 63
[H3C-ui-vty0-15]authentication-mode scheme
[H3C-ui-vty0-15] protocol inbound ssh

创建用户admin,设置认证密码admin,登录协议为SSH,能访问的命令级别为network-admin

[H3C]local-user admin
[H3C-luser-admin]password simple admin

定义登录协议

[H3C-luser-admin]service-type ssh

创建用户级别

[H3C-luser-admin]authorization-attribute user-role network-admin
[H3C-luser-admin]quit
[H3C]save                    #保存配置

H3C交换机配置web登陆

<H3C>system-view             #进入系统视图

创建本地用户admin,并设置登录密码为admin,服务类型为http跟https,用户级别为network-admin管理员级别

[H3C]local-user admin
[H3C-luser-manage-admin]password simple admin
[H3C-luser-manage-admin]service-type http https
[H3C-luser-manage-admin]authorization-attribute user-role network-admin
[H3C-luser-manage-admin]quit

配置交换机的管理地址

[H3C]interface vlan-interface 1                                 #进入int vlan 1 ,根据管理要求进行调整配置
[H3C-Vlan-interface1]ip address 192.168.100.1 24                #配置管理地址接入网络为了集中管理,会根据网络构架的要求进行重新配置
[H3C-Vlan-interface1]quit

开启设备http功能

[H3C]ip http enable  
[H3C]ip https enable

保存配置

[H3C]save force

配置完成,在网络互通的情况下,我们直接网页输入192.168.100.1即可登录图形界面对交换机进行管理了

交换机恢复出厂设置的命令

<H3C>reset saved-configuration              #重置保存的配置 
This will delete the configuration in the flash memory.

The device configuratio
ns will be erased to reconfigure.

Are you sure? (y/n)[n]:y                     #设备将被擦除以重启配置。你确定吗?     输入y
 Clear the configuration in the device successfully.
<H3C>reboot                                  #重启设备
Info: The system is comparing the configuration, please wait.
Warning: All the configuration will be saved to the next startup configuration. 
Continue ? [y/n]:n                           #警告:所有配置将保存到下次启动配置,继续吗?     输入n
System will reboot! Continue ? [y/n]:y       #系统将重新启动!继续吗?     输入y 
Info: system is rebooting ,please wait...

 

H3C交换机打开或关闭告警信息

华三配置的时候,经常会遇到设备出现一些告警信息,很是影响操作:两种方法

<h3c>undo terminal monitor	#关闭
<h3c>terminal monitor		#开启

或者

<h3c>undo info-center enable	#关闭
<h3c>info-center enable		#开启

常见问题FAQ

免费下载或者VIP会员专享资源能否直接商用?
本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。

发表评论

21
+2182天安全运行
主题分享
0
+0篇本周更新
更新我快乐

VIP免费下载全站资源

立即了解

本站支持IPv6访问 本站支持SSL安全访问

站点地图