华为 S5700 常用基本配置命令
以下配置中,红字体是需要自定义的.
#清除设备配置
<Quidway>reset saved-configuration
Warning: The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:
Y
<Quidway>reboot
Warning: All the configuration will be saved to the configuration file for the ne
xt startup:flash:/vrpcfg.zip, Continue?[Y/N]:
N
System will reboot! Continue?[Y/N]:
Y
# 设置设备的名称为 GSH-FZ-Front
<Quidway> system-view
[Quidway] sysname Quidway
# 设置查看设备的时区,时间
<Quidway> clock timezone BJ add 8
<Quidway> clock datetime 18:20:30 2012-02-08
<Quidway> display clock
#telnet 远程登录
<Quidway> system-view
[Quidway] aaa
//////[Quidway-aaa] local-user huawei password cipher p@ssw0rd privilege level 15
[Quidway-aaa] local-user huawei password simple huawei
[Quidway-aaa] local-user huawei service-type telnet
[Quidway-aaa] local-user huawei privilege level 15
[Quidway-aaa] quit
[Quidway]user-interface vty 0 4 //设置5个虚拟终端,也就是说最多有5个终端同时连接
[Quidway - vty0-4]authentication-mode aaa
[Quidway -ui-vty0-4]quit
#添加 VLAN
<Quidway> system-view
[Quidway] vlan 10
[Quidway-vlan10] quit
#设定端口模式
<Quidway> system-view
[Quidway] int gigabitethernet 0/0/1
[Quidway-GigabitEthernet0/0/1] port link-type access
[Quidway-GigabitEthernet0/0/1]quit
#将端口加入 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 (Network Time Protocol
<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
#相关查看命令
[Quidway] display version //显示 VRP 版本号
[Quidway] display current-configuration //显示系统运行配置信息
[Quidway] display saved-configuration //显示保存的配置信息
[Quidway] display interfaces brief //显示接口配置信息
[Quidway]display ip routing-table //显示路由表
[Quidway]display systname //命令用来显示路由器的名称
#删除 vlan,先删除 3 层口,再删除 2 层 vlan
[Quidway] undo interface Vlanif 20
[Quidway] undo vlan 20
#增加/删除静态路由
[Quidway]ip route-static 0.0.0.0 0.0.0.0 192.168.0.254 //命令用来配置静态路由,
[Quidway]undo ip route-static 0.0.0.0 0.0.0.0 192.168.0.254 //命令用来删除静态路由
#开启 http 服务
< Quidway >dir
Directory of flash:/
Idx
Attrcipher命令
Size(Byte)
Date
Time
FileName
0
-rw-
955
Feb 09 2012
16:16:09
1
-rw-
1089840
Jan 01 1970
00:02:05
S5700SI-V100R005C01SPC100.web
2
-rw-
10215068
Oct 01 2008
00:02:28
3
-rw-
626426
Jan 01 1970
00:03:17
s27_37_57-v100r005sph008.pat
4
-rw-
12240
Jan 01 1970
00:03:19
$_patchstate_reboot
5
-rw-
706
Feb 09 2012
17:33:05
vrpcfg.zip
31,620 KB total (19,928 KB free)
< Quidway >system-view
[Quidway]http server load S5700SI-V100R005C01SPC100.web.zip
[Quidway]http server enable 检测方法:浏览器打开133.160.70.1/view/login.html
User:admin  Pwd:admin
#重启
[Quidway] reboot

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。