中兴交换机基本配置
中兴交换机基本配置
1、中兴ZXR10-2826S系列交换机基本配置
login:admin //缺省用户名:admin 密码:zhongxing password:*********
zte>en //缺省ENABLE密码为空
password:
zte(cfg)#conf tffs //进入文件配置模式
zte(cfg-tffs)#ls //显示文件列表
kernel.z 1,216,924 bytes
snmpboots.v3 35 bytes
startcfg.txt 714 bytes
running.cfg 198,859 bytes
zte(cfg-tffs)#remove running.cfg //删除配置文件
Sure to remove ? [Yes|No]:y
zte(cfg-tffs)#ls //查看系统文件
kernel.z 1,216,924 bytes
snmpboots.v3 35 bytes
startcfg.txt 714 bytes
zte(cfg-tffs)#exit //退出
zte(cfg)#reboot //重新启动设备
Sure to reboot ? [Yes|No]:y
上述操作为恢复出厂设置
2、设备VLAN配置(802.1Q配置方式)、网管IP地址配置、PVLAN配置、三网合一配置 上网vlan 100 电话vlan 2103 IPTV vlan2104
login:admin
password:*********
zte>en
password:
zte(cfg)#set vlan 1 del port 1-24 //删除VLAN1中的所有端口,为了防止广播 zte(cfg)#set vlan 100enable //激活上网业务VLAN100
zte(cfg)#set vlan 100 add port 1 tag //将上联端口以TAG的方式加入到VLAN100中 zte(cfg)#set vlan 100 add port 2 untag //将端口2以UNTAG的方式加入到VLAN100中 zte(cfg)#set port 2 pvid 100 //设置端口2的PVID为100 zte(cfg)#set vlan 2103 enable //激活电话业务VLAN2103
zte(cfg)#set vlan 2103 add port 1 tag //将上联端口以TAG的方式加入到VLAN2103中
zte(cfg)#set vlan 2103 add port 2 untag //将端口2以UNTAG的方式加入到VLAN2103中
zte(cfg)#set port 2 pvid 2103 //设置端口2的PVID为2103 zte(cfg)#set vlan 2104 enable //激活IPTV业务VLAN2104
zte(cfg)#set vlan 2104 add port 1 tag //将上联端口以TAG的方式加入到VLAN2104中
zte(cfg)#set vlan 2104 add port 2 untag //将端口2以UNTAG的方式加入到VLAN2104
中
zte(cfg)#set port 2 pvid 2104 //设置端口2的PVID为2104
zte(cfg)#set vlan 200 add port 1 tag
zte(cfg)#set vlan 200 enable //激活网管VLAN200并添加上联端口1 zte(cfg)#conf router //进入网管配置模式
zte(cfg-router)#set ipport 1 ipaddress 192.168.0.1 255.255.255.0 //配置网管IP地址
zte(cfg-router)#set ipport 1 vlan 200 //绑定网管配置VLAN 1-256
zte(cfg-router)#set ipport 1 enable //激活网管虚拟端口
zte(cfg-router)#exit //退出
zte(cfg)#set pvlan session 1 add promiscuous port 1 //设置PVLAN共享端口1 zte(cfg)#set pvlan session 1 add isolated-port 2-10 //设置PVLAN隔离端口2-10
3、端口限速配置、端口速率配置
zte(cfg)#set port 2 bandwidth ingress on rate 30000 // 设置端口入向限速3M % Set port 2 bandwidth ingress on rate 30303 kbps succeed!
zte(cfg)#set port 2 bandwidth egress on rate 3000 //设置端口出向限速3M % Set port 2 bandwidth egress on rate 3000 kbps succeed!
zte(cfg)#set port 2 speed 100
zte(cfg)#set port 2 duplex full //设置端口2为强制100M全双工端口
zte(cfg)#set port 2 auto enable //设置端口2为自协商端口
4、设备开通单端口环路检测
zte(cfg)#set loopdetect port 2 enable //设置端口2为单端口环路检测
zte(cfg)#set loopdetect port 2 protect enable //打开单端口环路检测保护 zte(cfg)#show loopDetect
The block-delay interval of loopback detection is 5 minutes.
The send loopdetect packet interval of loopback detection is 15 seconds. PortId Stp Trunk Link Loop Protect VlanId Status Extend ------ ---- ----- ----- ----- ------- ------ ------ ------- 2 No No Up No Yes N/A N/A No
THU JUL 01 00:17:50 2004 Port : 2 Single Loopback //发现单端口环路
5、设备开通IPTV必配
zte(cfg)#set igmp snooping enable //IPTV采用的IGMP功能开通
zte(cfg)#set igmp snooping add vlan 2104 //在VLAN2104中激活IGMP SNOOPING功能 zte(cfg)#set igmp snooping fastleave enable //增加IGMP SNOOPING快速离开功能