基本信息
文件名称:中兴交换机培训手册.docx
文件大小:104.07 KB
总页数:6 页
更新时间:2025-06-04
总字数:约3.12千字
文档摘要

中兴2609/2818S/2826S系列交换机常用配置〔以ZTE-2826S为例子〕

1:修改用户名和密码zte(cfg)#hostname testtest(cfg)#loginpassXXXXXXtest(cfg)#adminpassXXXXXX

2:端口具体配置

端口状态

test(cfg)#setport2-24disabletest(cfg)#setport2-24enable

端口流量掌握

test(cfg)#setport2-24flowcontroldisabletest(cfg)#setport2-24flowcontrolenable

*/将2-24号端口关闭/*

*/将2-24号端口开启/*

*/将2-24号端口的流量掌握关闭/*

*/将2-24号端口的流量掌握开启/*

端口限速

test(cfg)#setport2-24bandwidthingressonrate512test(cfg)#setport2-24bandwidthegressonrate2048

*/将2-24号端口的上传限速为512k/*

*/将2-24号端口的下载限速为2M/*

端口镜像

test(cfg)#setmirroradd/deletedest-port24ingress/egress

口/*

*/添加/删除24号端口为监控端

test(cfg)#setmirroradd/deletesource-port23ingress/egress */添加/删除23号端口接收/发送的数据包为镜像源端口/*

3:配置设备治理地址test(cfg)#configrouter

test(cfg-router)#setipport1ipaddress

test(cfg-router)#setipport1vlan11test(cfg-router)#setipport1enable

test(cfg-router)#iproute

*/将设备的治理地址和治理vlan绑定/*

4:配置端口VLANtest(cfg)#setvlan10enabletest(cfg)#setvlan11enable

test(cfg)#setvlan10addport24untag

*/业务VLANID10由技术部统一规划供给/*

*/治理VLANID11由技术部统一规划供给/*

test(cfg)#setport24pvid10 */直连pc端口除设置untag模式外,还要给端口设置pvid/*test(cfg)#setvlan10addport1-23tag

test(cfg)#setvlan11addport1-23tagtest(cfg)#setvlan11addport1

5:翻开WEB治理〔依据实际状况,看是否翻开WEB治理功能〕test(cfg)#setwebenable

6:保存配置test(cfg)#saveconfig

7:常用查看命令test(cfg)#showrunning-configtest(cfg)#showstart-configtest(cfg)#showcputest(cfg)#showmirror

*/显示交换机当前的配置/*

*/显示交换机最终一次保存时的配置/*

*/显示交换机当前的cpu使用率/*

*/显示交换机端口镜像的配置/*

test(cfg)#showfdbport2detail */显示交换机2号端口的MAC地址信息/*test(cfg)#showfdbmacxx.xx.xx.xx.xx.xx */依据mac地址查看在那个端口/*

8:系统版本升级:

系统正常时候的版本升级test(cfg)#setvlan11addport23untagtest(cfg)#setport23pvid11test(cfg)#configtffs

test(cfg-tffs)#removekernel.z

*/将23号端口设置为可以和pc直连互通的端口*/

*/删除旧版本文件/*

test(cfg-tffs)#tftp0downloadkernel.z */从tftp效劳器0上下载版本文件/*

……………….test(cfg-tffs)#

Tftp软件设置如下:将本机地址设置为0级联到交换机的23号端口翻开CiscoTFTPServer软件如以下图:

翻开View下的“Options”,