中兴2609/2818S/2826S系列交换机常用配置(以ZTE-2826S 为例子) 1:修改用户名和密码 zte(cfg)#hostname test test(cfg)#loginpass XXXXXX test(cfg)#adminpass XXXXXX 2:端口详细配置 端口状态 test(cfg)#set port 2-24 disable */将2-24号端口关闭/* test(cfg)#set port 2-24 enable */将2-24号端口开启/* 端口流量控制 test(cfg)#set port 2-24 flowcontrol disable */将2-24号端口的流量控制关闭/* test(cfg)#set port 2-24 flowcontrol enable */将2-24号端口的流量控制开启/* 端口限速 test(cfg)# set port 2-24 bandwidth ingress on rate 512 */将2-24号端口的上传限速为512k/* test(cfg)# set port 2-24 bandwidth egress on rate 2048 */将2-24号端口的下载限速为2M/* 端口镜像 test(cfg)#set mirror add/delete dest-port 24 ingress/egress */ 添加/删除24号端口为监控端口/* test(cfg)#set mirror add/delete source-port 23 ingress/egress */ 添加/删除23号端口接收/发送的数据包为镜像源端口/* 3:配置设备管理地址 test(cfg)#config router test (cfg-router)#set ipport 1 ipaddress 192.168.7.3 255.255.255.0 test (cfg-router)#set ipport 1 vlan 11 */将设备的管理地址和管理vlan绑定/* test (cfg-router)#set ipport 1 enable test (cfg-router)#iproute 0.0.0.0 0.0.0.0 192.168.7.1 4:配置端口VLAN test(cfg)#set vlan 10 enable */业务VLANID 10 由技术部统一规划提供/* test(cfg)#set vlan 11 enable */管理VLANID 11 由技术部统一规划提供/* test(cfg)#set vlan 10 add port 24 untag test(cfg)#set port 24 pvid 10 */直连pc端口除设置untag模式外,还要给端口设置pvid/* test(cfg)#set vlan 10 add port 1-23 tag test(cfg)#set vlan 11 add port 1-23 tag test(cfg)#set vlan 11 add port 1 5:打开WEB管理(根据实际情况,看是否打开WEB管理功能) test(cfg)# set web enable 6:保存配置 test(cfg)#saveconfig 7:常用查看命令 test(cfg)#show running-config */显示交换机当前的配置 /* test(cfg)#show start-config */显示交换机最后一次保存时的配置 /* test(cfg)#show cpu */显示交换机当前的cpu使用率 /* test(cf...