华为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 xtstartup: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 datetime18:20:30 2012-02-08  <Quidway> display clock    #telnet 远程登录  <Quidway> system-view  [Quidway] aaa //////[Quidway-aaa]local-user ccssoft passwordcipher p@ssw0rd privilege level 15  [Quidway-aaa] local-user ccssoft password simple ccssoft [Quidway-aaa] local-user ccssoft service-type telnet [Quidway-aaa] local-user ccssoft privilege level 15 //特权等级设置[Quidway-aaa] quit  [Quidway]user-interface vty0 4 //设置5个虚拟终端,也就是说最多有5个终端同时连接[Quidway - vty0-4]authentication-mode aaa        //验证方式设置  [Quidway -ui-vty0-4]quit  #ssh远程登录步骤 1 在服务器端生成本地密钥对  <Quidway> system-view  [Quidway] sysname SSH Server [SSH Server] rsa local-key-pair create  The key name will be: Quidway_Host  The range of public key
size is (512 ~ 2048).  NOTES: If the key modulus is greater than 512,  It will take a few minutes. Input the bits in the modulus[default = 512]: 768   .......++++++++++++  ..........++++++++++++  .......................... .........++++++++
......++++++++ 步骤 2 在服务器端配置 VTY 用户界面  [SSH Server] user-interface vty 0 4  [SSH Server-ui-vty0-4] authentication-mode aaa  [SSH Server-ui-vty0-4] protocol inbound ssh  [SSH Server-ui-vty0-4] quit 说明若配置登录协议为SSH,则S5700 设备将自动禁止 Telnet 功能。步骤 3 在服务器端配置 SSH 用户的用户名和密码[SSH Server] aaa [SSH Server-aaa] local-user client001 password cipher huawei  [SSH Server-aaa] local-user client001 privilege level 3  [SSH Server-aaa] local-user client001 service-type ssh  [SSH Server-aaa] quit 步骤  4 使能STelent功能,并配置用户的服务类型为STelnet [SSH Server] stelnet server enable [SSH Server] ssh authentication-type default password #添加VLAN <Quidway> system-view  [Quidway] vlan10  [Quidway-vlan10] quit    #改Vlan1 IP:<Quidway> system-view [Quidway]interfacevlanif    1  [Quidway]ip address 192.168.1.200 255.255.255.0#设定端口模式<Quidway> system-view [Quidway] intgigabitethernet0/0/1 [Quidway-GigabitEthernet0/0/1] port link-type access[Quidway-GigabitEthernet0/0/1]quit  #将端口加入Vlan  <Quidway> system-
view [Quidway] vlan131[Quidway-vlan131] port gigabitethernet0/0/21to 0/0/22[Quidway-Vlan131] quit #设置Trunk <Quidway> system-view [Quidway] interface GigabitEthernet0/0/23[Quidway-GigabitEthernet0/0/23] port link-type trunk[Quidway-GigabitEthernet0/0/23] port trunk allow-pass vlan128 131 #设置STP|RSTP|MSTP <Quidway> system-view  [Quidway] stp mode {stp | rstp | mstp}
cipher命令
[Quidway] stp enable #设置VLAN IP(管理IP) <Quidway> system-view  [Quidway] interface vlanif131  [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 systname //显示设备名称<Quidway> display current-configuration //显示系统运行配置信息<Quidway>display saved-configuration //显示保存的配置信息<Quidway> display interface gigabitethernet 0/0/1 //查看接口配置是否正确<Quidway>display interfaces brief //显示接口配置信息
<Quidway>display mac-address //查看设备上学习到的MAC表项以及MAC学习的源物理端口的对应关系<Quidway>display ip routing-table [X.X.X.X] //显示路由表<Quidway>display arp [| include X.X.X.X] //查看设备上的arp信息<Quidway>display stp brief //查看物理端口的二层协议状态<Quidway>displaytraffic policy statistics interface GigabitEthernet X/X/X inbound  //查看物理端口X/X/X上入方向的流量统计信息结果  <Quidway>display traffic policy statistics interface GigabitEthernet X/X/X outbound 查看物理端口X/X/X上出方向的流量统计信息结果  #清除端口统计信
息的命令是  <Quidway>reset counters interface gigabitethernet 0/0/1  1、执行reset counters interface [ interface-type [ interface-number ] ]命令,清除指定接口的统计信息。2、执行reset counters if-mib interface [ interface-type [ interface-number ] ]命令,清除网管的接口流量统计信息。3、执行reset statistics-peak interface interface-type interface-number命令,清除接口的速率峰值记录。4、执行reset virtual-cable-test { interface-type interface-number | all }命令,清除接口的电缆检测结果。
#删除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 Attr Size(Byte) Date Time FileName    0 -rw- 955 Feb 09 2012 16:16:    1 -rw- 1089840 Jan 01 1970 00:02:05 S5700SI-V100R005C01SPC100.web    2 -rw- 10215068 Oct 01 2008 00:02:28 S5700SI-
<    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.zi
p  31,620 KB total (19,928 KB free)  <Quidway>system-view  [Quidway]httpserverload S5700SI-V100R005C01SPC100.web.zip  [Quidway]http server enable 检测方法:浏览器打开133.160.70.1/view/login.html User:adminPwd:admin #重启[Quidway] reboot #流控自适应:<Quidway>system-view  [Quidway]interface g0/0/13 [Quidway-GigabitEthernet0/0/13]flow-control negotiation打开千兆以太网接口的流量控制自协商功能[Quidway-GigabitEthernet0/0/13]display interface g0/0/13查看pause #端口使能、去使能<Quidway>system-view  [Quidway]interface g0/0/13 [Quidway-GigabitEthernet0/0/13]shutdown 关闭端口[Quidway-GigabitEthernet0/0/13]undo shutdown    使能端口  #端口双工状态<Quidway>system-view [Quidway]interface g0/0/13 [Quidway-GigabitEthernet0/0/13]undo negotiation auto关闭自协商 [Quidway-GigabitEthernet0/0/13]duplex { full | half }更改双工状态  [Quidway-

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