eNSP华为基本配置命令

eNSP华为基本配置命令

用户视图模式<Huawei>切换至系统视图模式[Huawei]
<Huawei>system-view

1、历史命令查询
[Huawei] display history-command

2、配置主机名
<Huawei> system-view
[Huawei] sysname Router1

3、状态信息查询
<Huawei>display version   ####查看VRP版本
<Huawei>display users    ####查看用户终端信息

4、进入接口模式并查看信息
<Huawei>sys
[Huawei]int e0/0/1
[Huawei-GigabitEthernet0/0/1]dis this   ####查看当前视图下的配置信息

5、配置文件管理命令
[Huawei]display saved-configuration     ###查看设备保存的信息
[Huawei]display current-configuration   ###查看设备当前配置的信息
<Huawei>reset saved-configuration      ###擦除存储设备中的配置文件
<Huawei>compare configuration          ###比较当前配置信息与存储设备中的保存文件是否一致

6、关闭华为的信息提示中心 
[Huawei]undo info-center enable 
或者
<Huawei>undo terminal monitor

7、永不超时
[Huawei]user-interface console 0
[Huawei-ui-console0]idle-timeout 0 0

8、配置双工及速率命令
<Huawei>sys
[Huawei]int g0/0/1
[SW1-Ethernet0/0/1]undo negotiation auto    ###关闭自动协商
[SW1-Ethernet0/0/1]speed 100                ###调至速率100M
[SW1-Ethernet0/0/1]duplex full              ###调至全双工模式, 解释:full:Full-Duplex(全双工模式)   half:Half-Duplex(半双工模式)

9、保存配置
<Huawei>save

10、设置远程登录密码
[Huawei]user-interface vty 0 4			#0是初始值,4是结束值。表示可同时打开5个会话进入交换机去配置命令
[Huawei-ui-vty0-4]authentication-mode password 
[Huawei-ui-vty0-4]set authentication password simple 222
[Huawei-ui-vty0-4]user privilege level 3
[Huawei-ui-vty0-4]dis this


用SecureCRT链接eNSP
●双击打开某台设备有【视图】和【配置】,打开【配置】---窗口配置:串口号:2000  ###这个是端口号
●打开SecureCRT 点击【链接】---【Protocol】Telnet----【Hostname】127.0.0.1----【Prot】2000
●当前终端被打开---断开【disconnect】----会话【session options】-----强制每次一个字符模式【Force charater at atime mode】---保存【OK】
●右击当前终端---链接【reconnect】
二、配置交换机支持TELNET
#进入VLAN 1
[switch]interface vlan 1 
#配置IP地址
[switch-Vlanif10]ip address 192.168.3.100 255.255.255.0 
#进入虚拟终端
[switch]user-interface vty 0 4 
#设置口令模式
[switch-ui-vty0-4]authentication-mode password (aut password) 
#设置口令
[switch-ui-vty0-4]set authentication password simple 222 (set aut pass sim 222) 
#配置用户级别
[switch-ui-vty0-4]user privilege level 3(use priv lev 3) 
#查看当前配置
disp current-configuration (disp cur) 
#查看交换机VLAN IP配置
display ip interface 
#删除配置(必须退到用户模式)
reset saved-configuration(reset saved) 
#重启交换机
reboot 

猜你喜欢

转载自blog.csdn.net/IHBOS/article/details/112633515
今日推荐