中兴配置命令
- 格式:doc
- 大小:111.00 KB
- 文档页数:16
中兴EPON常用的一些命令汇总1. `enable` –进入特权模式,获得更高的权限级别。
2. `configure terminal` –进入全局配置模式,进行全局设置。
3. `interface gpon-onu_1/1/1:1` –进入指定的ONU接口,用于ONU的配置。
4. `display ont info` –展示ONT的详细信息。
5. `display ont capability` –展示ONT的能力信息。
6. `display ont optical-info` –展示ONT的光学信息。
7. `display ont alarm-summary` –展示ONT的报警摘要信息。
8. `display ont alarm-history` –展示ONT的报警历史记录。
9. `display ont port state` –展示ONT端口的状态信息。
10. `display ont topology-info` –展示ONT的拓扑信息。
11. `display gpon ont-lineprofile` –展示ONT线路配置文件信息。
12. `display gpon ont-srvprofile` –展示ONT业务配置文件信息。
13. `display alarm active all` –展示当前所有的报警信息。
14. `display alarm history all` –展示所有历史报警信息。
15. `display ontport summary` –展示ONT端口的摘要信息。
16. `display ontport state` –展示ONT端口的状态信息。
17. `display pon-optical-info` –展示PON口的光学信息。
18. `display pon-linkstate` –展示PON口的链路状态信息。
19. `display pon-onu-info` –展示PON口上的ONU信息。
中兴交换机数据配置流程图1.确定交换机管理vlan,本例子为vlan1002.确定用户vlan,本例子所有用户vlan为vlan23.确定用户vlan与端口的对应情况,本例子的所有用户端口都为vlan24.确定交换机管理地址,本例子为172.32.240.254/245.确定交换机主机名,本例子为zte6.确定交换机上行口,本例子为1口7.确定远程登陆交换机的用户名和密码,本例为zte与zte,enable密码为zte8.确定交换机的缺省网关,本例为 172.32.240.19.确定snmp团体属性子串,本例为zte10.确定snmp网管服务器地址,本例为10.40.92.105通过串口登陆交换机1.将交换机包装箱里的串口线(一头为RS232口,一头为RJ45)的RJ45口连接到中兴交换机前面板的console口2.串口线的RS232口连接到PC的串口3.打开PC的超级终端,COM端口属性请点击“还原为默认值”。
中兴交换机的COM属性为:每秒位数9600,数据位8,奇偶校验位无,停止位为1,数据流控制为无4.设置完毕敲回车连接5.输入用户名admin,密码zhongxing,再输入enable后回车,再输入密码zhongxing后进入全局配置模式,提示为zte(cfg)#。
中兴交换机缺省用户名和密码为admin和zhongxing,enable密码为zhongxing设置主机名zte(cfg)#hostname zte远程登陆设置zte(cfg)#create user zte //远程登录用户名zte(cfg)#loginpass zte //远程登录密码zte(cfg)#adminpass zte //enable密码端口协商配置一般需要将上行口配置成强制100M或者1000M全双工模式,对端设备也需要这么配置,此时如果端口起不来,可尝试更改回自适应模式zte(cfg)#set port 1 duplex full //上行口配置为强制全双工zte(cfg)#set port 1 speed 100 //上行口配置为强制100M(可选)zte(cfg)#set port 1 auto enable //上行口配置更改为自适应配置vlanzte(cfg)#set vlan 2 enable //创建vlan2 zte(cfg)#set vlan 100 enable //创建vlan100上行端口vlan配置本系列的交换机端口模式为混合模式,上行口一般配置为tag方式zte(cfg)#set vlan 100 add port 1 tag //将交换机管理vlan100绑定到上行口,以tag方式zte(cfg)#set vlan 2 add port 1 tag //将用户vlan2绑定到上行端口,以tag方式用户端口vlan配置用户端口一般以untag方式绑定到指定的vlan,这时候需要配置端口的pvid,该pvid与用户端口所绑定的vlan id一致zte(cfg)#set vlan 2 add port 2-24 untag //将用户vlan2绑定到用户端口zte(cfg)#set port 2-24 pvid 2 //配置用户端口的pvid交换机管理IP配置zte(cfg-router)#config router //进入交换机三层配置模式zte(cfg-router)#set ipport 0 ipaddress 172.32.240.254 255.255.255.0 //配置管理IPzte(cfg-router)#set ipport 0 vlan 100 //将管理IP绑定到管理vlan100zte(cfg-router)#set ipport 0 enable //启用该管理zte(cfg-router)#iproute 0.0.0.0 0.0.0.0 172.32.240.1 //配置缺省路由zte(cfg-router)#exit //退出三层配置模式Snmp属性配置说明:配置团体属性时 private表示相应的字串有读写权限,public 则只有只有读权限zte(cfg)#config snmp //进入交换机snmp配置模式zte(cfg-snmp)#create community zte private //创建团体字串,配置为private,表示该子串zte有读写权限zte(cfg-snmp)#create view zteview //创建视图zte(cfg-snmp)#set community zte view AllView //将团体字串与视图对应起来zte(cfg-snmp)#set traphost 10.40.92.105 zte //trap信息上告网管服务器zte(cfg-snmp)#exit //退出snmp配置模式端口隔离配置zte(cfg)#set pvlan session 1 add promiscuous-port 1 //上行口1配置为共享端口zte(cfg)#set pvlan session 1 add isolated-port 2-24 //用户端口配置为隔离端口二层组播配置zte(cfg)#set igmp snooping enable //启用igmpzte(cfg)#set igmp snooping add vlan 2 //设置igmp监听的vlan 为用户vlan用户端口速率限制zte(cfg)#set port 2-24 bandwidth egress on rate 1000 //设置用户端口的下行速率为1M,以1k为单位用户端口广播包限制zte(cfg)# set port 2-24 bandwidth ingress on rate 500 //配置上行广播包速率zte(cfg)# set port 2-24 ingess_limit_mode broadcast //设置上行速率限制模式为广播包用户端口mac学习限制zte(cfg)#set port 2-24 macaddress 1 //限制用户端口的mac地址学习数量为1个配置端口描述zte(cfg)#set port 1 description uplink-to-XXX //端口注释Vlan描述zte(cfg)#create vlan 100 name guanli //vlan描述保存交换机数据配置zte(cfg)#save //保存交换机数据配置zte(cfg)#exit //退出交换机。
中兴路由器配置用黄色显示的是配置过的命令,其他的都为系统默认。
ZXR10#sh runBuilding configuration...! ZXR10>en!passward:zxr10ZXR10#conf terip dhcp enable #开启dhcp功能#ip dhcp server dns 211.138.151.161 202.101.107.98 #设置分配给客户的dns地址#ip dhcp server leasetime 18000ip dhcp server update arp!ip dhcp-client disable!urpf log off!ip local pool conflict-ip 10ip local pool dhcp 192.168.1.2 192.168.1.254 255.255.255.0 #配置地址池,地址池名字为dhcp,等下在接口下引用这个名字#!!interface null1!interface fei_0/1 #连接公网的接口#ip address 211.138.142.170 255.255.255.252 #配置公网口ip地址#negotiation autoip nat outside #做为nat的outside口#ipv6 nat enable!interface fei_0/2 #连接内网的接口#ip address 192.168.1.1 255.255.255.0 #配置内网接口ip地址#peer default ip pool dhcp #确定内网pc机使用哪个地址池,地址名字为dhcp#negotiation autoexitip dhcp mode server #在接口下使能dhcp功能#ip dhcp server gateway 192.168.1.1 #配置分配的默认网关地址#ip nat inside #座位nat的insdie接口#!interface fei_0/3negotiation auto!!reference clock local!ip nat max-entry-number 64ip nat start #启用nat功能#ip nat inside source list 1 interface fei_0/1 #配置允许内网地址进行nat转换,并且转换后的地址为外网口接口fei_0/1地址#ip nat translation timeout class a 20ip nat translation timeout class b 60ip nat translation timeout class c 150ip nat translation timeout class d 300ip nat translation timeout class e 1200ip nat translation timeout protocol icmp aip nat translation timeout protocol ip dip nat translation timeout protocol tcp port 80 aip nat translation timeout protocol tcp dip nat translation timeout protocol udp port 4000 dip nat translation timeout protocol udp port 4001 dip nat translation timeout protocol udp port 4002 dip nat translation timeout protocol udp port 4003 dip nat translation timeout protocol udp port 8000 dip nat translation timeout protocol udp port 8001 dip nat translation timeout protocol udp cip nat translation maximal default 65535!ip route 0.0.0.0 0.0.0.0 211.138.142.169 #添加一条默认出口路由(公网网关)#!voice class service 20100510!!ipv6 nat enableipv6 nat translation tcp-time-out 300ipv6 nat translation udp-time-out 300ipv6 nat translation icmp-time-out 60ipv6 nat translation max-dynamic-entries 32773!!!acl standard number 1 #配置访问列表,用于允许哪些地址进行nat转换,在上面被引用#rule 1 permit 192.168.1.0 0.0.0.255acl standard number 2rule 1 permit any!!!ip tcp intercept mode interceptip tcp intercept drop-mode oldestip tcp intercept watch-timeout 30ip tcp intercept finrst-timeout 5ip tcp intercept connection-timeout 86400ip tcp intercept max-incomplete high 1100ip tcp intercept max-incomplete low 900ip tcp intercept one-minute high 1100ip tcp intercept one-minute low 900!nas!version V4.8.01.B.01!nvram mng-ip-address 10.40.88.173 255.255.0.0!nvram boot-username target!nvram boot-password target!nvram boot-server 10.40.88.172!nvram imgfile-location local!hostname ZXR10!forward re-fragment time 6!enable secret level 15 5 bDo8dPdlz3ZwZrNNt7F+kA==!username zxr10 password zsrusername quanyou password quanyou privilege 15 #配置一个远程管理用户#!user-authentication-type localuser-authorization-type local!line console 0no login authenticationbanner incoming @*****************************************************Welcome to ZXR10 ZSR Serial Router of ZTE Corporation***************************************************** @!!lfap disablelfap max-send-fun-size 100lfap update-interval 60lfap server-retry-interval 60lfap message-response-interval 60lfap ka-interval 60lfap flow-expired-time 600!!!snmp-server location No.68 Zijinghua Rd. Y uhuatai District, Nanjing, China snmp-server contact +86-25-52870000snmp-server packetsize 1400snmp-server engine-id 830900020300010289d64401snmp-server view AllView internet includedsnmp-server view DefaultView system included!!logging onlogging buffer 200logging mode fullcyclelogging console notificationslogging level notificationslogging cmdlog-interval 2880logging timestamps datetime localtimealarm cpuload-onalarm cpuload-interval 30alarm cpuload-threshold high-grade 95 middle-grade 85 low-grade 75syslog-server facility local0!line console idle-timeout 120line console absolute-timeout 1440line telnet idle-timeout 120line telnet absolute-timeout 1440line telnet access-class 2!ssh server authentication ispgroup 1 201005111141 ssh server authentication mode localssh server authentication type chapno ssh server onlyssh server version 2!!radius auto-change off!!tacacs disabletacacs-server timeout 5tacacs-server packet 1024!!amat disable!endZXR10#。
中兴交换机清配置步骤和命令1.登录交换机首先需要通过串口或Telnet等方式登录交换机,并输入正确的用户名和密码。
登录成功后,便可以开始进行后续的操作。
2.备份配置在清除配置之前,强烈建议备份交换机的配置文件,以便在需要的时候能够快速恢复原有的配置。
备份命令如下:```save configuration to tftp IP地址文件名.cfg```其中,IP地址为用于保存配置文件的TFTP服务器的地址,文件名.cfg为保存的配置文件名。
示例:```save configuration to tftp 192.168.1.100 backup.cfg```3.清除配置清除配置是指将交换机的所有配置信息恢复到出厂设置状态。
清除配置的命令如下:```erase configuration```示例:```erase configuration```执行该命令后,交换机将会提示用户确认是否继续,输入y后回车即可。
4.恢复出厂设置清除配置后,可以选择恢复出厂设置,将交换机的配置恢复到出厂默认状态。
恢复出厂设置的命令如下:```load factory-default```示例:```load factory-default```执行该命令后,交换机将会提示用户确认是否继续,输入y后回车即可。
5.保存并重启交换机执行以上步骤后,需要将交换机的当前配置保存并重启,以使修改生效。
保存配置的命令如下:```save configuration```示例:```save configuration```保存配置后,可以执行如下命令重启交换机:```reboot```示例:```reboot```执行该命令后,交换机将会重启,并应用新的配置。
以上就是中兴交换机清配置的基本步骤和命令。
需要注意的是,清除配置和恢复出厂设置是危险操作,应谨慎使用,并在确认无误后再执行。
另外,为了防止数据丢失,建议在执行清除配置和恢复出厂设置之前先备份重要的配置文件。
中兴交换机简明配置教程一、登录交换机二、基本配置3. 配置 VLAN。
在交换机配置界面中,找到 "VLAN Management" 或类似的选项,在其中创建需要的 VLAN 号,并将相应的端口加入到 VLAN 中,实现不同 VLAN 间的隔离和通信。
三、常用命令1. 查看交换机的基本信息。
使用命令 "show system" 可以查看交换机的型号、版本、序列号等基本信息。
2. 查看端口状态。
使用命令 "show interface brief" 可以查看交换机各个端口的状态,包括端口编号、状态、协商状态等。
3. 查看 VLAN 配置。
使用命令 "show vlan" 可以查看交换机的VLAN 配置信息,包括 VLAN 号、名称、端口等。
4. 配置端口的 VLAN。
使用命令 "config vlan vlan-id add tagged,untagged interface interface-id" 可以将指定端口加入到指定的 VLAN 中,其中 "vlan-id" 是 VLAN 号,"interface-id" 是端口编号。
5. 配置端口的速率和双工模式。
使用命令 "config interface ethernet interface-id speed-mode {10M_HALF,10M_FULL,100M_HALF,100M_FULL,1000M_FULL,AUTO}" 可以配置指定端口的速率和双工模式。
6. 配置端口的描述。
使用命令 "config interface ethernet interface-id description description" 可以为指定端口设置描述,方便管理和区分。
四、保存配置在设置完成后,为了保证配置的持久化,在命令行界面输入 "save"命令保存配置文件。
中兴交换机配置流程和配置命令配置流程:1.连接中兴交换机:使用网线连接中兴交换机的管理端口与电脑的网口,确保网络通畅。
2.设置电脑IP地址:将电脑的IP地址设置为与交换机的管理口在同一个网段,例如交换机管理口的IP地址是192.168.1.1,电脑IP地址可以设置为192.168.1.23.打开浏览器:打开电脑上的浏览器,通过输入交换机管理口的IP 地址进入交换机管理页面。
4. 登录交换机:输入交换机的默认用户名和密码进行登录,通常为admin/admin。
5.进入系统配置:登录成功后,进入系统配置界面,配置交换机的基本信息,例如主机名、域名等。
6.配置接口:配置交换机的各个接口,包括端口的状态、速率、双工模式等。
可以配置端口的VLAN、IP地址等信息。
7.配置VLAN:根据网络需求,配置交换机的VLAN信息,包括创建VLAN、配置VLAN端口等。
8.配置静态路由:配置交换机的静态路由,将需要进行转发的目的网络与对应的出口接口进行关联。
9.配置访问控制列表(ACL):根据网络安全需求,配置ACL来限制特定流量的通过或禁止。
10.配置QoS:配置交换机的QoS策略,用于对网络流量进行调度和优化,以满足不同应用的需求。
11.保存配置:完成以上配置后,通过保存配置将配置信息应用到交换机中,确保配置生效。
常用的配置命令:1. system-view:进入系统视图,进行全局配置。
2. interface interface-type interface-number:进入接口视图,配置接口相关信息。
3. ip address ip-address {mask , mask-length}:配置接口IP 地址。
4. vlan 10:创建VLAN10。
5. vlan-interface vlan 10:进入VLAN10的接口视图,进行VLAN 的相关配置。
6. vlan 10 to 20:创建VLAN10至VLAN20的VLAN。
中兴交换机数据配置流程图1. 2. 3.为vlan2确定交换机管理vlan,本例子为vlan100 确定用户vlan,本例子所有用户vlan 为vlan2 确定用户vlan与端口的对应情况,本例子的所有用户端口都确定交换机管理地址,本例子为172.32.240.254/24 确定交换机主机名,本例子为zte 确定交换机上行口,本例子为1口确定远程登陆交换机的用户名和密码, 本例为zte与zte,确定交换机的缺省网关,本例为 172.32.240.1 确定snmp团体属性子串,本例为zte 确定snmp网管服务器地址,本例为10.40.92.1054. 5. 6. 7. 8. 9. 10.enable密码为zte通过串口登陆交换机1. 2. 3.将交换机包装箱里的串口线(一头为RS232口,一头为RJ45) 串口线的RS232口连接到PC的串口打开PC的超级终端,COM端口属性请点击“还原为默认值” 。
的RJ45口连接到中兴交换机前面板的console口中兴交换机的COM属性为:每秒位数9600,数据位8,奇偶校验位无,停止位为1,数据流控制为无4. 5.设置完毕敲回车连接输入用户名admin,密码zhongxing,再输入enable后回车,再输入密码zhongxing后进入全局配置模式,提示为zte(cfg)#。
中兴交换机缺省用户名和密码为admin和zhongxing,enable密码为zhongxing设置主机名zte(cfg)#hostname zte远程登陆设置zte(cfg)#create user zte//远程登录用户名zte(cfg)#loginpass zte zte(cfg)#adminpass zte//远程登录密码 //enable密码端口协商配置一般需要将上行口配置成强制100M或者1000M全双工模式,对端设备也需要这么配置,此时如果端口起不来,可尝试更改回自适应模式zte(cfg)#set port 1 duplex full zte(cfg)#set port 1 speed 100//上行口配置为强制全双工 //上行口配置为强制100M(可选)zte(cfg)#set port 1 auto enable //上行口配置更改为自适应配置vlanzte(cfg)#set vlan 2 enable zte(cfg)#set vlan 100 enable//创建vlan2 //创建vlan100上行端口vlan配置本系列的交换机端口模式为混合模式,上行口一般配置为tag方式zte(cfg)#set vlan 100 add port 1 tag //将交换机管理vlan100绑定到上行口,以tag方式zte(cfg)#set vlan 2 add port 1 tag //将用户vlan2绑定到上行端口,以tag方式用户端口vlan配置用户端口一般以untag方式绑定到指定的vlan,这时候需要配置端口的pvid,该pvid与用户端口所绑定的vlan id一致zte(cfg)#set vlan 2 add port 2-24 untag //将用户vlan2绑定到用户端口zte(cfg)#set port 2-24 pvid 2 //配置用户端口的pvid交换机管理IP配置zte(cfg-router)#config router //进入交换机三层配置模式zte(cfg-router)#set ipport 0 ipaddress 172.32.240.254 255.255.255.0// 配置管理IP zte(cfg-router)#set ipport 0 vlan 100 //将管理IP绑定到管理vlan100 zte(cfg-router)#set ipport 0 enable //启用该管理zte(cfg-router)#iproute 0.0.0.0 0.0.0.0 172.32.240.1 //配置缺省路由zte(cfg-router)#exit //退出三层配置模式Snmp属性配置说明:配置团体属性时 private表示相应的字串有读写权限,public则只有只有读权限zte(cfg)#config snmp //进入交换机snmp配置模式 zte(cfg-snmp)#create community zte private //创建团体字串,配置为private,表示该子串zte有读写权限zte(cfg-snmp)#create view zteview //创建视图 zte(cfg-snmp)#set community zte view AllView //将团体字串与视图对应起来zte(cfg-snmp)#set traphost 10.40.92.105 zte //trap信息上告网管服务器zte(cfg-snmp)#exit //退出snmp配置模式端口隔离配置zte(cfg)#set pvlan session 1 add promiscuous-port 1 //上行口1配置为共享端口zte(cfg)#set pvlan session 1 add isolated-port 2-24 //用户端口配置为隔离端口二层组播配置zte(cfg)#set igmp snooping enable //启用igmp zte(cfg)#set igmp snooping add vlan 2 //设置igmp监听的vlan为用户vlan用户端口速率限制zte(cfg)#set port 2-24 bandwidth egress on rate 1000 //设置用户端口的下行速率为1M,以1k为单位用户端口广播包限制zte(cfg)# set port 2-24 bandwidth ingress on rate 500 //配置上行广播包速率zte(cfg)# set port 2-24 ingess_limit_mode broadcast //设置上行速率限制模式为广播包用户端口mac学习限制zte(cfg)#set port 2-24 macaddress 1 //限制用户端口的mac地址学习数量为1个配置端口描述zte(cfg)#set port 1 description uplink-to-XXX //端口注释Vlan描述zte(cfg)#create vlan 100 name guanli //vlan描述保存交换机数据配置zte(cfg)#save //保存交换机数据配置 zte(cfg)#exit //退出交换机。
show vlan 查看vlan状态show running-config 查看当前配置状态由于交换机版本不同,有的修改密码命令不成功,两种不同的命令是:一种交换机命令是:creat user adminset login-pass 000set admin-pass ok (设置全局模式密码,如果密码为空,web页不能进入全局配置模式)另一种交换机命令是:creat user adminloginpass 000adminpass ok清除配置文件running.cfgzte(cfg)#conf tffszte(cfg-tffs)#lsr (查看配置文件running.cfg)KERNEL 2,090,884 bytesRUNNING.CFG 121,198 bytes1,710,080 bytes freezte(cfg-tffs)#remove running.cfgzte(cfg-tffs)#ls (再次查看,running.cfg被删除)KERNEL 2,090,884 bytes1,832,960 bytes freezte(cfg)#reboot使用clear iproute 命令可以用来删除一条或多条静态路由用户可以通过show iproute 命令对交换机上的直连路由和静态路由进行查看忘记密码进boot模式清除配置文件Press any key to stop auto-boot...76倒计时的时候,按任意键进入BOOT模式。
[ZXR10 Boot]: zte输入ZTE,系统将加载wbdEndLoad wbdEnd BeginW90N740 MAC0: 10MB - Half Duplex[PASSWORD]:输入密码zxr10进入BOOTMANAGER模式。
[BootManager]:lskernel.z 1203948snmpboots.v3 35startcfg.txt 667running.cfg 198723删除running.cfg文件,即可恢复默认配置。
[BootManager]:del running.cfg[BootManager]:rebootReboot...重启,重启后,恢复默认配置,账号:admin,密码:zhongxing。
在更改一个ip 端口的设置时,先要将端口设置为disable 状态,然后设置需要修改的项,新的设置将覆盖原来的设置。
可以用以下命令清除端口的某个参数或全部参数,在清除之前同样要将端口设置为disable 状态。
set ipport [0-63] {enable|disable}配置完成后,可以使用show ipport [[0-63]]命令对ip 端口的配置进行查看。
设置pvlan命令set pvlan session [id] {add|delete} {promiscuous {port[portname]}在pvlan 中增加/删除共享端口set pvlan session [id] {add|delete} {isolated-port [portlist] } 在pvlan 中增加/删除隔离端口show pvlan 查看pvlan状态交换机上vlan 的配置包括以下内容。
1.使能/关闭vlanset vlan [vlanlist] {enable|disable}2.在vlan 中加入指定的端口set vlan [vlanlist] add port [portlist] [tag|untag]3.删除vlan 中指定的端口set vlan [vlanlist] delete port [portlist]4.在vlan 中加入指定的trunkset vlan [vlanlist] add trunk [trunklist] [tag|untag]5.删除vlan 中指定的trunkset vlan [vlanlist] delete trunk [trunklist]6.设置端口的pvidset port [portlist] pvid [1-4094]7.设置trunk 的pvidset trunk [ trunklist ] pvid [1-4094]8.设置vlan 的优先级set vlan [vlanlist] priority {off|on [0-7]}中兴ZXR10配置说明一、配置基础1、进入[BootManager]的密码为zte2、默认登陆用户:admin 密码(loginpass):zhongxing默认Enable密码(adminpass):zhongxing3、配置模式:序号模式命令提示符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)#4、VLAN划分:256个VLAN为一个段,红色字体的表示我们使用的VLAN段。
序号VLAN范围序号VLAN范围1 0-255 9 2048-23032 256-511 10 2304-25593 512-767 11 2560-28154 768-1023 12 2816-30715 1024-1279 13 3072-33276 1280-1535 14 3328-35837 1536-1791 15 3584-38398 1792-2047 16 3840-40945、采用Telnet用户远程认证后,交换机的管理用户和Radius服务器中设置的用户都可以登陆交换机。
二、配置规范举例:1、用户2#202接入Port 1,速率10M,全双工模式,用户vlan2500;2、上行端口为Port 25,速率100M,全双工模式,上行潜山路第二台MA5200的第18口(QSL-MA5200(2)-E18);3、管理vlan为981,管理ip为61.133.186.172/24;4、设置广播风暴抑制门限为24000-72000bytes;5、SNMP的只读团体名为share,目标主机为218.22.16.5和202.102.198.62;6、Telnet采用远程Radius认证方式,域名:domain_jrw Radius服务器218.22.16.2 认证端口UDP 1812;7、启用SSH功能。
1、系统名称、时间设置交换机名称的命名方式为:上行局向_小区名称_交换机位置。
如:上行潜山路的新西南花庭小区的中心交换机的编号为:QSL_XXNHT_CS。
zte(cfg)#hostname QSL_XXNHT_CS //设置交换机名称为QSL_XXNHT_CSQSL_XXNHT_CS(cfg)#set date 2005-11-08 time 22:00:00 //设置系统日期和时间QSL_XXNHT_CS(cfg)# saveconfig //将当前配置文件保存到Flash Memory中2、VLAN设置VLAN的描述暂时规定为:管理VLAN的描述是[ManagerVlan],用户VLAN的描述为[UserVlan]。
QSL_XXNHT_CS(cfg)#set vlan 2500 enable //使能管理vlan 2500 QSL_XXNHT_CS(cfg)#set vlan 2500 add port 1 untag //设置vlan2500包含端口1QSL_XXNHT_CS(cfg)#set vlan 2500 add port 25 tag //vlan 2500通过上行口25口透传QSL_XXNHT_CS(cfg)#create vlan 2500 name [UserVlan] //创建vlan描述为[UserVlan]QSL_XXNHT_CS(cfg)#set vlan 981 enable ///使能管理vlan 981 QSL_XXNHT_CS(cfg)#set vlan 981 add port 25 tag //vlan 981通过上行口25口透传QSL_XXNHT_CS(cfg)#create vlan 981 name [ManagerVlan] //创建vlan描述为[ManagerVlan]3、用户端口配置用户端口采用强制10M全双工的配置;端口的描述为方括号“[ ]”中加入用户楼室的编号,例如2幢202室的用户端口描述为:[2#202]。
QSL_XXNHT_CS(cfg)#set port 1 enable //开启用户端口QSL_XXNHT_CS(cfg)#set port 1 speed 10 //设置端口速率为10Mbps QSL_XXNHT_CS(cfg)#set port 1 duplex full //设置端口的双工模式为full 全双工QSL_XXNHT_CS(cfg)#set port 1 pvid 2500 //设置端口的默认VLAN为2500 QSL_XXNHT_CS(cfg)#set port 1 description [2#202] //描述端口为[2#202] 4、级联端口配置级联端口采用强制100M全双工的配置;端口的描述为方括号“[Uplink/Downlink_交换机编号]”,例如中心交换机的25口上行局端,则描述为:[Uplink_QSL_MA5200(2)-E18]。
QSL_XXNHT_CS(cfg)#set port 25 enable //开启上行端口QSL_XXNHT_CS(cfg)#set port 25 speed 100 //设置端口速率为100Mbps QSL_XXNHT_CS(cfg)#set port 25 duplex full //设置端口的双工模式为full 全双工QSL_XXNHT_CS(cfg)#set port 25 description [Uplink_QSL-MA5200(2)-E18] //描述上行端口为[Uplink_QSL-MA5200(2)-E18]//描述下行端口示范[Downlink_ QSL_XXNHT_1#1]5、设置广播风暴抑制QSL_XXNHT_CS(cfg)#set stormcontrol enable //开启广播风暴抑制功能QSL_XXNHT_CS(cfg)#set stormcontrol xon 24000 //设置结束广播风暴抑制的门限QSL_XXNHT_CS(cfg)#set stormcontrol xoff 72000 //设置开始广播风暴抑制的门限6、三层接口(管理接口)配置QSL_XXNHT_CS(cfg)#config router //进入三层配置模式QSL_XXNHT_CS(cfg-router)#set ipport 0 ipaddress 61.133.186.172255.255.255.0//设置三层端口的IP地址和子网掩码QSL_XXNHT_CS(cfg-router)#iproute 0.0.0.0 0.0.0.0 61.133.186.1 //设置默认路由(网关)QSL_XXNHT_CS(cfg-router)#set ipport 0 vlan 981 //为三层端口绑定VLAN QSL_XXNHT_CS(cfg-router)#set ipport 0 enable //使能三层端口7、SNMP配置SNMP的团体名目前只设置只读属性的share,SNMP的目标主机为两个:218.22.16.5和202.102.198.62。