enps常用命令

简介: 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]
  • 接口禁用与启用 shutdownundo 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
目录
相关文章
|
12月前
|
Kubernetes 调度 数据中心
K8S常用命令
K8S常用命令
169 0
|
Linux 网络安全 开发工具
CentO6.5常用命令
CentO6.5常用命令
226 0
|
1月前
|
Linux Shell 网络安全
常用命令
常用命令
126 71
|
3月前
|
区块链
EOSIO 常用命令总结。
EOSIO 常用命令总结。
|
12月前
|
Kubernetes 应用服务中间件 nginx
k8s常用命令
k8s常用命令
406 1
|
网络协议 测试技术
hping3常用命令
hping3常用命令
|
存储 移动开发 Linux
常用命令汇总
常用命令汇总
96 0
|
内存技术 应用服务中间件 nginx
常用命令总结
linux 切换用户 sudo -i 远程登录服务器 ssh root@公网ip 然后 输入密码 查看当前路径 pwd 删除文件 rm 文件名 rm -rf 文件夹名 查看当前网络信息 ifconfig mkdir name 创建name的目录 cp file1 file2 复制一个.
786 0