ZTE中兴交换机vlan配置参考 下载本文

telnet 10.24.3.100 Trying 10.24.3.100 ... Press CTRL+K to abort

Connected to 10.24.3.100 ...

Welcome !

ZTE Corporation.

All rights reserved. * Telnet 使用默认配置

login:admin 登录用户名:admin password:********* 初始密码:zhongxing

10.24.3.100>enable

password:********* 全局配置密码:zhongxing

10.24.3.100(cfg)#hostname 10.24.3.137 修改交换机名

10.24.3.100(cfg)#set vlan 1963 add port 1-7 untag vlan 1973下行口不打标签 10.24.3.100(cfg)#set port 1 pvid 1963 配置用户端口1 10.24.3.100(cfg)#set port 2 pvid 1973 配置用户端口2 10.24.3.100(cfg)#set port 3 pvid 1973 10.24.3.100(cfg)#set port 4 pvid 1973 10.24.3.100(cfg)#set port 5 pvid 1973 10.24.3.100(cfg)#set port 6 pvid 1973 10.24.3.100(cfg)#set port 7 pvid 1973

10.24.3.100(cfg)#set vlan 1963 add port 8-9 tag vlan 1973上行口打标签(主进线) 10.24.3.100(cfg)#set vlan 1963 enable 打开vlan 10.24.3.100(cfg)# set vlan 50 add port 9 tag 10.24.3.100(cfg)#set vlan 50 enable

10.24.3.100(cfg)#conf router router 配置模式 10.24.3.100(cfg-router)#set ipport 0 ip

10.24.3.100(cfg-router)#set ipport 0 ipaddress 10.24.3.137 255.255.255.0 配置管理地址 10.24.3.100(cfg-router)# set ipport 0 vlan 50 ip端口绑定vlan 10.24.3.100(cfg-router)# set ipport 0 enable 打开ip端口 10.24.3.100(cfg-router)#iproute 0.0.0.0/0 10.24.3.137 配置网关 10.24.3.100(cfg-router)#exit 退出配置 10.24.3.100(cfg)#saveconfig 保存 Saving file, please wait a minute... done !

10.24.3.100(cfg)#show run 查看配置 Software version: V1.1.12.U

Switch's Mac Address: 00.22.93.64.72.15 !

syslocation No.68_Zijinghua_Road,Yuhuatai_District,Nanjing,CHINA hostname 10.24.3.100 promptlen 32

create user admin admin

set user local admin login-password B612AD6F2259089A79740AD7CB5A38BF line-vty timeout 10 set loginauth local set adminauth disable ! ! ! !

set vlan 1 delete port 1-9 set vlan 1 delete trunk 1-8 set vlan 50 add port 8-9 tag

set vlan 1973 add port 1-7 untag set vlan 1973 add port 8-9 tag set vlan 50 enable

set vlan 1973 enable ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !

create community public public

create view zteView include 1.3.6.1 set community public view zteView ! !

set ipport 0 ipaddress 10.24.3.100 255.255.255.0 set ipport 0 vlan 1973 set ipport 0 enable

set ipport 1 ipaddress 192.168.123.254 255.255.255.0 set ipport 1 vlan 50 set ipport 1 enable ! ! ! ! ! !

set syslog level informational ! !

syslocation No.68_Zijinghua_Road,Yuhuatai_District,Nanjing,CHINA hostname 10.24.3.100 promptlen 32

create user admin admin

set user local admin login-password B612AD6F2259089A79740AD7CB5A38BF line-vty timeout 10 set loginauth local set adminauth disable ! ! ! !

set vlan 1 delete port 1-9 set vlan 1 delete trunk 1-8 set vlan 50 add port 8-9 tag

set vlan 1973 add port 1-7 untag set vlan 1973 add port 8-9 tag set vlan 50 enable set vlan 1973 enable !

! ! ! ! ! !

! ! ! ! ! ! ! ! !

cr