enps常用命令

enps常用命令

  • 进入系统视图 system-view

    <Huawei> system-view		#用户视图
    [Huawei]					#系统视图
    
  • 接口视图 interface GigabitEthernet 0/0/1

    [Huawei] interface GigabitEthernet 0/0/1
    [Huawei-interface GigabitEthernet 0/0/1]			#接口视图
    
  • 返回上一层 quit

    [Huawei] interface GigabitEthernet 0/0/1
    [Huawei-interface GigabitEthernet 0/0/1] quit
    [Huawei]					#系统视图
    

    快速返回 Ctrl+Z 或者 return(直接返回用户视图)

  • 协议视图 ospf

    [Huawei]ospf              
    [Huawei-ospf-1]                #协议视图
    

    命令技巧:

    ​ 按 ? 获取帮助

    ​ 按 Tab 命令补全

  • 查看当前配置 **dispaly current-configuration **

    <Huawei> dispaly current-configuration 				#查看配置信息
    

    空格显示下一屏,回车显示下一行

  • 查看系统版本 ,交换机型号信息,开机时间 dispaly version

    <Huawei> dispaly version
    
  • 设备重名 sysname+“新名字”

    <Huawei> system-view		 
    [Huawei] sysname Switch
    [Switch]
    
  • 接口禁用与启用 shutdown undo shutdown

    <Huawei> system-view		 
    [Huawei] sysname Switch
    [Switch] interface GigabitEthernet 0/0/1
    [Switch-interface GigabitEthernet 0/0/1] shutdown				#接口禁用
    [Switch-interface GigabitEthernet 0/0/1] undo shutdown          #接口启用
    

    接口禁用,进入接口视图,操作,

    相应操作,进入对应视图

  • 保存配置 save

    <Switch> save
    Are yuo sure to continue ?[Y/N] 确认保存输入Y
    
  • 重启设备 reboot

    <Switch> reboot
    ext startup:flash:/vrpcfg.zip,Contnue?[Y/N] 提示是否保存
    System will reboot ! Continue ?[Y/N]:提示是否重启
    
  • 配置console 口令 user-interface console 0

    <Switch> system-view		 
    [Switch] user-interface console 0          				 		    #进入console口
    [Switch-ui console0] authentication-mode password        		    #启用密码
    [Switch-ui console0] set authentication password cipher   123  #设置密码
    [Switch-ui console0] return                                     #返回用户视图
    <Switch> quit													#退出
    Login authentication
    Password: 输入密码 123 回车
    
    
  • 取消console口令

    <Switch> system-view		 
    [Switch] user-interface console 0          				 		   #进入console口 
    [Switch-ui console0] undo set authentication-mode password         #取消密码
    
  • 设置console 超时时间 idl-timeout + 时间

    <Switch> system-view		 
    [Switch] user-interface console 0  
    [Switch-ui console0] idl-timeout 1				# 代表一分钟
    

    配置控制台会话,空闲超时一分钟

    默认: 十分钟

  • 恢复出厂默认 reset saved-configuration

    <Switch> reset saved-configuration
    The configuration will be erased to reconfigure. Continue
    ?[Y/N]:提示是否删除已保存配置  Y
    <Switch> reboot                           # 重启设备
       注: 执行重启命令 先输入 n  不保存,  在输入 y 确认重启
    
  • 取消终端显示提示信息 undo terminal monitor

    <Switch> undo terminal monitor
    

    关闭日志提示模式

  • 改变语言模式 language-mode Chinese

    不建议修改

    <Switch> language-mode Chinese
    
  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

不懂说安全

创作不易您打赏是对我最大的鼓励

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值