以下配置中,红色字体是需要自定义的. # 设置设备的名称为 GSH-FZ-Front //////[Quidway-aaa]local-userccssoftpasswordcipher p@ssw0rd privilege level 15 [Quidway-aaa] local-user ccssoft password simple ccssoft [Quidway-aaa] local-user ccssoftservice-type telnet [Quidway-aaa] local-user ccssoftprivilege 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] int gigabitethernet 0/0/1 [Quidway-GigabitEthernet0/0/1] port link-type access [Quidway-GigabitEthernet0/0/1]quit #将端口加入 Vlan [Quidway-vlan131] port gigabitethernet 0/0/21 to 0/0/22 [Quidway-Vlan131] quit #设置 Trunk [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 #access模式变成trunk Port default vlan 1 #设置 VLAN IP(管理 IP) [Quidway-Vlanif131] ip address 192.168.0.253 255.255.255.0 [Quidway-Vlanif131] shutdown [Quidway-Vlanif131] undo shutdown #设置默认路由 [Quidway] ip route-static 0.0.0.0 0.0.0.0 192.168.0.2 #设定 NTP (Network Time Protocol) [Quidway] ntp-service unicast-peer 192.168.0.2 #关闭 WEB Server,dhcp [Quidway] undo http server enable [Quidway] undo dhcp enable #保存配置 [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.2 //命令用来配置静态路由, [Quidway]undo ip route-static 0.0.0.0 0.0.0.0 192.168.0.2//命令用来删除静态路由 #开启 http 服务 < Quidway >dir Directory of flash:/ Idx Attr Size(Byte) Date 0 1 -rw- 955 -rw- 10840 Time FileName privat-data.txt S5700SI-V100R005C01SPC100.web 2 -rw- 10215068 Oct 01 2008 00:02:28 S5700SI-V100R005C01SPC100.cc Feb 09 2012 16:16:09 Jan 01 1970 00:02:05 3 -rw- 6226 Jan 01 1970 00:03:17 s27_37_57-v100r005sph008.pat 4 5 -rw- 12240 -rw- 706 Jan 01 1970 00:03:19 Feb 09 2012 17:33:05 $_patchstate_reboot vrpcfg.zip 31,620 KB total (19,928 KB free) < Quidway >system-view [Quidway]httpserverload S5700SI-V100R005C01SPC100.web.zip [Quidway]http server enable 检测方法:浏览器打开http://133.160.70.1/view/login.html User:admin Pwd:admin #重启 [Quidway] reboot 因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- igbc.cn 版权所有 湘ICP备2023023988号-5
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务