| 序号 | 脚本命令 | 命令说明 | 
| 1 | sys | 进入系统模式视图 | 
| 2 | sysname DW--xxxxxxxxxxx-xxxxx-SW | 设置设备名称 | 
| 3 | super password level 3 cipher xx.xxxxx#1 | 设置特权密码 | 
| 9 | vlan batch 2015 2659 | 创建vlan | 
| 10 | undo dhcp enable | 关闭dhcp使能 | 
| 12 | undo http server enable | 关闭http服务使能 | 
| 13 | aaa | 进入aaa视图 | 
| 14 | local-user xx.xxxxx password cipher xxxx.xxxxx | 创建用户名及密码 | 
| 15 | local-user xx.xxxxx privilege level 1 | 用户级别设定 | 
| 16 | local-user xx.xxxxx service-type telnet terminal | 用户telnet使能 | 
| 17 | undo local-user admin | 关闭admin用户 | 
| 18 | interface Vlanif 2015 | 进入vlan管理端口 | 
| 19 | ip address 172.31.14.201 255.255.255.0 | 设置管理ip 子网 | 
| 20 | interface Ethernet0/0/1 | 进入接口1 | 
| 21 | port link-type access | 配置接口模式access | 
| 23 | port default vlan 2659 | 接口所属vlan | 
| 24 | loopback-detect enable | 开启环路检测 | 
| 25 | interface Ethernet0/0/2 | 进入接口2 | 
| 26 | port link-type access | 配置接口模式access | 
| 27 | port default vlan 2659 | 接口所属vlan | 
| 28 | loopback-detect enable | 开启环路检测 | 
| 31 | interface Ethernet0/0/3 | 进入接口3 | 
| 32 | port link-type access | 配置接口模式access | 
| 33 | port default vlan 2659 | 接口所属vlan | 
| 34 | loopback-detect enable | 开启环路检测 | 
| 37 | interface Ethernet0/0/4 | 进入接口4 | 
| 38 | port link-type access | 配置接口模式access | 
| 39 | port default vlan 2659 | 接口所属vlan | 
| 40 | loopback-detect enable | 开启环路检测 | 
| 43 | interface Ethernet0/0/5 | 进入接口5 | 
| 44 | port link-type access | 配置接口模式access | 
| 45 | port default vlan 2659 | 接口所属vlan | 
| 46 | loopback-detect enable | 开启环路检测 | 
| 49 | interface Ethernet0/0/6 | 进入接口6 | 
| 50 | port link-type access | 配置接口模式access | 
| 51 | port default vlan 2659 | 接口所属vlan | 
| 52 | loopback-detect enable | 开启环路检测 | 
| 55 | interface Ethernet0/0/7 | 进入接口7 | 
| 56 | port link-type access | 配置接口模式access | 
| 57 | port default vlan 2659 | 接口所属vlan | 
| 58 | loopback-detect enable | 开启环路检测 | 
| 61 | interface Ethernet0/0/8 | 进入接口8 | 
| 62 | port link-type access | 配置接口模式access | 
| 63 | port default vlan 2659 | 接口所属vlan | 
| 64 | loopback-detect enable | 开启环路检测 | 
| 67 | interface GigabitEthernet0/0/1 | 进入接口G0/0/1 | 
| 68 | port link-type trunk | 配置接口模式trunk | 
| 69 | port trunk allow-pass vlan 2015 2659 | 配置管理vlan,业务vlan | 
| 70 | ip route-static 0.0.0.0 0.0.0.0 172.31.14.254 | 设置静态路由 | 
| 71 | snmp-agent sys-info version v2c v3 | snmp支持版本v2,v3 | 
| 72 | user-interface con 0 | console口默认权限 | 
| 73 | authentication-mode aaa | 设置登录用户验证方式aaa | 
| 75 | idle-timeout 5 0 | 超时登出时间 | 
| 78 | user-interface vty 0 4 | 设置虚拟端口 | 
| 79 | authentication-mode aaa | 设置登录用户验证方式aaa | 
| 80 | idle-timeout 5 0 | 超时登出时间 | 
| 81 | protocol inbound all | 绑定用户协议为全部 | 
| 82 | save | 保存配置 | 
| 83 | y | 确认保存 |