华为S5700基础配置命令
# 设置设备的名称为SW00
<Quidway> system-view
[Quidway] sysname SW00
# 设置查看设备的时区,时间
<Quidway> clock timezone BJ add 8
<Quidway> clock datetime 18:20:30 2015-11-11
<Quidway> display clock
#telnet远程登录
<Quidway> system-view
[Quidway] aaa
[Quidway-aaa] local-user testadmin password cipher p@ssw0rd privilege level 15
[Quidway-aaa] quit
[Quidway]user-interface vty 0 4
[Quidway-vty0-4]authentication-mode aaa
#添加VLAN
<Quidway> system-view
[Quidway] vlan 128
[Quidway-vlan128] quit
#设定端口模式
<Quidway> system-view
[Quidway] int gigabitethernet 0/0/1
[Quidway-GigabitEthernet0/0/1] port link-type access
#将端口加入Vlan
<Quidway> system-view
[Quidway] vlan 131
[Quidway-vlan131] port gigabitethernet 0/0/21 to 0/0/22
[Quidway-Vlan131] quit
#设置Trunk
<Quidway> system-view
[Quidway] interface GigabitEthernet 0/0/23
[Quidway-GigabitEthernet0/0/23] port link-type trunk
[Quidway-GigabitEthernet0/0/23] port trunk allow-pass vlan 128 131
#设置VLAN IP(管理IP)
<Quidway> system-view
[Quidway] interface vlanif 131
[Quidway-Vlanif131] ip address 192.168.0.253 255.255.255.0
[Quidway-Vlanif131] shutdown
[Quidway-Vlanif131] undo shutdown
#设置默认路由
<Quidway> system-view
[Quidway] ip route-static 0.0.0.0 0.0.0.0 192.168.0.254
#设定NTP
<Quidway> system-view
[Quidway] ntp-service unicast-peer 192.168.0.254
# 关闭WEB Server,dhcp
<Quidway> system-view
[Quidway] undo http server enable
[Quidway] undo dhcp enable
#保存配置
<Quidway> save
#交换机WEB配置
#注:要开启WEB服务,需要先上传WEB管理文件s5700si-v200r003c00.001.web.7z
#开启HTTP服务
[SW00]http server load flash:/s5700si-v200r003c00.001.web.7z
[SW00]http server enable
#设置WEB用户(注:也可以把以存的用户设置为WEB登录方式)
[SW00]aaa
[SW00-aaa]local-user webuser password cipher password (用户名webuser 密码(密文方式)password)
[SW00-aaa]local-user webuser service-type http (设置这个用户用于WEB登录)
[SW00-aaa]quit
#客户端电脑做WEB登录测试 打开浏览器输入http://172.16.10.1/
#相关查看命令
[Quidway] display version 显示VRP版本号
[Quidway] display current-configuration 显示系统运行配置信息
[Quidway] display saved-configuration 显示保存的配置信息
[Quidway] display interface brief 显示接口配置信息
VLAN配置IP/MAC绑定
[HUAWEI100] user-bind static ip-add 192.168.20.221 mac-add 40f2-e996-d11a vlan 20
[HUAWEI100-vlan20] ip source check user-bind enable
[HUAWEI100] undo user-bind static ip-add 192.168.20.221 mac-add 40f2-e996-d11a vlan 20
共有 0 条评论