通过串口线配置S5700 的管理IP地址,串口线接在交换机的console口,ip设置完成后网线接在ETH口:
system-view
[Quidway] interface MEth 0/0/1
[Quidway] interface MEth 0/0/1
[Quidway-MEth0/0/1]ip address x.x.x.x 255.255.255.0
[Quidway-MEth0/0/1]quit
[Quidway]ip route-static 0.0.0.0 0.0.0.0 x.x.x.x(gateway)
[Quidway-MEth0/0/1]display ip interface MEth 0/0/1
[Quidway]quit
添加用户,设置ssh telent远程登录
system-view
[Quidway]aaa
[Quidway-aaa]local-user chy password cipher qaz123456
[Quidway-aaa]local-user chy service-type ssh telnet
[Quidway-aaa]display ssh server status
[Quidway-aaa]display telnet server status
[Quidway-aaa]local-user chy privilege level 15
[Quidway-aaa]quit
设置vty 0 4远程登陆的虚拟端口
[Quidway]user-interface vty 0 4
[Quidway-ui-vty0-4]authentication-mode aaa
[Quidway-ui-vty0-4]user privilege level 15
[Quidway-ui-vty0-4]protocol inbound all
[Quidway-ui-vty0-4]protocol inbound telnet
[Quidway-ui-vty0-4]protocol inbound ssh
[Quidway]ssh user chy authentication-type password
[Quidway]ssh authentication-type default password
[Quidway]ssh user chy service-type stelnet
[Quidway]display ssh user-information chy
[Quidway]quit
save
配置登陆IP地址
system-view
[Quidway]interface Vlanif 1
[Quidway-Vlanif1]ip address 192.168.0.1 255.255.255.0
创建web登录管理账号
[Quidway]http server enable
[Quidway]http secure-server enable
[Quidway]aaa
[Quidway-aaa]local-user admin privilege level 15
[Quidway-aaa]local-user admin service-type http
[Quidway-aaa]quit
创建vlan
system-view
[Quidway]vlan 10
[Quidway-vlan10]quit
[Quidway]interface Vlanif 10
[Quidway-Vlanif10]ip address 192.168.0.1 255.255.255.0
[Quidway-vlan10]quit
[Quidway-GigabitEthernet0/0/2]
[Quidway-GigabitEthernet0/0/2]port link-type access
[Quidway-GigabitEthernet0/0/2]port default vlan 10
[Quidway-GigabitEthernet0/0/2]display vlan
[Quidway]quit
批量创建vlan
system-view
[Quidway]vlan batch 2 to 19
[Quidway]display vlan
[Quidway]quit
批量删除vlan
system-view
[Quidway]undo vlan batch 2 to 19
[Quidway]display vlan
[Quidway]quit
批量把端口加入到vlan 10
system-view
[Quidway]interface range GigabitEthernet 0/0/1 to GigabitEthernet 0/0/6
[Quidway-port-group]port link-type access
[Quidway-port-group]port default vlan 10
[Quidway]quit
或者先创建一个端口组,再添加到vlan中
system-view
[Quidway]port-group 1
[Quidway-port-group-1]group-member GigabitEthernet 0/0/7 to GigabitEthernet 0/0/17
[Quidway-port-group-1]port link-type access
[Quidway-port-group-1]port default vlan 20
[Quidway-port-group-1]display vlan
删除vlan----需要先删除vlanif信息---再删vlan
system-view
[Quidway]undo interface Vlanif 10
[Quidway]display vlan
[Quidway]display current-configuration
[Quidway]undo vlan 10
[Quidway]display vlan
[Quidway]display current-configuration
批量删除port信息
对于上面我们已经把vlanif信息删除,vlan删除,但是display current-configuration发现之前创建的port信息还是在的,一个一个删太慢,这里我们还创建组去删
system-view
[Quidway]port-group 2
[Quidway-port-group-2]group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/6
[Quidway-port-group-2]undo port default vlan
[Quidway-port-group-2]undo port link-type
[Quidway-port-group-2]display current-configuration
版权说明:如非注明,本站文章均为 扬州驻场服务-网络设备调试-监控维修-南京泽同信息科技有限公司 原创,转载请注明出处和附带本文链接。
请在这里放置你的在线分享代码