配置
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
在配置前,可以通过show run命令查看现有设备的配置,如果有数据,则需要清空,操作如下:
用户名默认为zte,一般根据需要作修改,这样会便于记忆,能更好的区分设备。
zte(cfg)#hostname 2826E_2F 在全局模式下修改
然后修改系统时间,set date xx time xx
配置模式:
序号模式命令提示符
1 用户模式无zte>
2 全局配置模式enable zte(cfg)#
3 SNMP配置模式config snmp zte(cfg-snmp)#
4 三层配置模式config router zte(cfg-router)#
5 文件系统配置模式config tffs zte(cfg-tffs)#
6 NAS配置模式config nas zte(cfg-nas)#
7 集群管理配置模式config group zte(cfg-group)# 端口参数配置:
1、对于untag端口,PVID要和所属VLAN的VID一致;
2、对于tag端口,PVID要不同于所有所属VLAN的VID;(这可使它原样发送);
3、两台设备互联时,两端接口的PVID保持一致。
例如:交换机A和交换机B通过端口16相连,交换机A的端口1与交换机B的端口2是VLAN2的成员,交换机A的端口3与交换机B 的端口4是VLAN3的成员,相同VLAN的成员之间能够互相通信。
交换机A:
zte(cfg)#set vlan 2 add port 16 tag
zte(cfg)#set vlan 2 add port 1 untag
zte(cfg)#set vlan 3 add port 16 tag
zte(cfg)#set vlan 3 add port 3 untag
zte(cfg)#set port 1 pvid 2
zte(cfg)#set port 3 pvid 3
zte(cfg)#set vlan 2-3 enable
交换机B:
zte(cfg)#set vlan 2 add port 16 tag
zte(cfg)#set vlan 2 add port 2 untag
zte(cfg)#set vlan 3 add port 16 tag
zte(cfg)#set vlan 3 add port 4 untag
zte(cfg)#set port 2 pvid 2
zte(cfg)#set port 4 pvid 3
zte(cfg)#set vlan 2-3 enable
清空
zte(cfg)#cfg tffs
% Command not found (0x40000034)
zte(cfg)#config tffs
zte(cfg-tffs)#ls
/
.
254,332,928 bytes free
zte(cfg-tffs)#cd config
% No such file or directory (0x2)
zte(cfg-tffs)#ls
/
.
254,332,928 bytes free
zte(cfg-tffs)#remove startrun.dat
Enter [Yes] to remove (other keys are [No]):
zte(cfg-tffs)#remove startrun.dat
Enter [Yes] to remove (other keys are [No]):yes
zte(cfg-tffs)#exit
zte(cfg)#reboot
Enter [Yes] to reboot (other keys are [No]):yes
zte(cfg)#UART TEST OK
DDR TEST OK
配置三层管理或业务地址:
Configrouter ///进入config router模式
set ipport 0 ipaddress 10.20.20.1 255.255.255.0 ///设置三层接口ip地址及掩码
setipport0vlan10 ///三层端口绑定vlan
setipport0enable ///启用三层端口
iproute 0.0.0.0 0.0.0.0 10.20.20.1///设置默认路由指向网关
set ipport vlan 20 add ipaddres
设置以太网端口的native VLAN(PVID)
Access 端口只属于 1 个VLAN,所以它的native VLAN 就是它所在的
VLAN,不用设置。
Trunk端口和Hybrid端口属于多个VLAN,需要设置native VLAN。如果
设置了端口的native VLAN,当端口接收到不带VLAN标签的帧时,则将
该帧转发到属于这个native VLAN的端口。默认情况下Trunk端口和Hybrid
端口的native VLAN为VLAN 1
设置trunk端口的native VLAN
ZXR10(config)# interface
{
链路聚合的维护与诊断
为了方便链路聚合的维护与诊断,ZXR10 8900系列交换机提供了以下命令。show lacp {[
zxr10 (config)#acl standard number 80 //定义acl