HUAWEI之超低基础入门配置大全(包括Telnet)

1.关于ENSP的安装与使用: ①安装:
ENSP是傻瓜式安装基本只要一直点下一步就行了,除非遇到这种情况就需要勾选三个就行,到此安装就基本安装完成
HUAWEI之超低基础入门配置大全(包括Telnet)
文章图片

②使用:
路由器使用AR2220,交换机使用S5700和S3700
2.HUAWEI的最基本命令与解释: < Huawei >system-view 进入系统视图
[Huawei]sysname SW1 修改设备名称
①创建VLAN:

一次创建一个:
[SW1]vlan 10
一次创建多个VLAN:
[SW1]vlan batch 10 20
②退出:
[SW1-vlan10]quit
③配置Access接口与Trunk接口:
?Access接口:
[SW1]interface Ethernet0/0/1
[SW1—GigabitEthernet0/0/1]port link-type access 将接口改为access接口
[SW1—GigabitEthernet0/0/1]port default vlan 10 将接口加入vlan 10
?Trunk接口:
[SW2]interface GigabitEthernet0/0/1
[SW2—GigabitEthernet0/0/1]port link-type trunk 将接口改为Trunk接口
[SW2—GigabitEthernet0/0/1]port trunk allow-pass vlan all 允许所以VLAN通过
[SW2—GigabitEthernet0/0/1]port trunk allow-pass vlan 2 to 4094
允许VLAN 2到VLAN 4094的流量通过,华为默认允许vlan1通过
④给VLAN配置地址:
[SW1]vlan 10 创建一个VLAN
[SW1]interface Vlanif10 进入VLAN中
[SW1-Vlanif10]ip address 192.168.10.254 24 给vlan配置地址
[SW1-Vlanif10]display this 查看当前接口的配置
⑤如何取消配置命令:
[SW2]interface GigabitEthernet0/0/1
[SW2—GigabitEthernet0/0/1]port link-type trunk
[SW2—GigabitEthernet0/0/1]port trunk allow-pass vlan all
[SW2—GigabitEthernet0/0/1]undo port trunk allow-pass vlan all
⑥配置环回接口:
[Huawei]interface LoopBack 0
[Huawei-LoopBack0]ip address 11.11.11.111 32
⑦查看接口的信息:
[Huawei]display ip interface brief
⑧查看设备的路由表:
[Huawei]display ip routing-table
⑨查看系统当前日期和时钟:
[Huawei]display clock
【HUAWEI之超低基础入门配置大全(包括Telnet)】⑩修改系统日期和时钟:
< Huawei >clock timezone BJ add 08:00:00设置所在的时区为北京
< Huawei >clock datetime 10:00:00 2019-5-20修改系统的日期和时间
?查看系统软件的版本和硬件的信息:
< Huawei >display version
?设备配置保存以及查看:
?< SW1 >save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
?< SW1 >display saved-configuration 查看保存的配置
?< SW1 >display current-configuration 查看设备运行的配置
?重启设备:
< SW1 >reboot 重启
< SW1 >reset saved-configuration 清除保存的配置
?远程登录的配置:
?用户名密码认证:
[sw1]telnet server enable 使能Telnet服务器功能
[sw1]user-interface vty 0 4 进入VTY0~VTY4用户界面视图
[sw1-ui-vty0-4]protocol inbound telnet 允许登录的协议类型(可以不配,默认为all
[sw1-ui-vty0-4]user privilege level 3 设置用户级别,3为管理级别,有最高权限
[sw1-ui-vty0-4]authentication-mode aaa 设置用户验证为3A
[sw1]aaa 进入认证
[sw1-aaa]local-user admin password cipher 123 设置用户名密码
[sw1-aaa]local-user admin service-type telnet 配置本地登录用户的接入方式为telnet
?密码认证:
[sw1]telnet server enable
[sw1]user-interface vty 0 4
[sw1-ui-vty0-4]user privilege level 3
[sw1-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):123
?使用Telnet登录:
< Huawei >telnet X.X.X.X

    推荐阅读