1、TiNet S2024EI-S 千兆以太网交换机用户手册命令行参考手册1. 访问交换机命令2. 端口配置命令3. VLAN配置命令4. ARP配置命令5. DHCP功能配置6. 组播协议配置命令7. QOS配置命令8. STP配置命令9. 802.1x配置10. SNTP客户端配置命令11. Syslog配置命令12. 交换机管理和维护命令13. LLDP配置命令14. PPPoE Plus配置命令目录第1章 访问交换机命令1-11.1 访问交换机命令1-11.1.1 cls1-11.1.2 configure terminal1-21.1.3 enable1-21.1.4 end1-31.1
2、.5 exit1-41.1.6 help1-41.1.7 hostname1-51.1.8 interface1-61.1.9 muser1-61.1.10 quit1-71.1.11 show muser1-71.1.12 show username1-81.1.13 stop1-81.1.14 timeout1-91.1.15 username username privilege1-101.1.16 username change-password1-11第2章 端口配置命令2-12.1 以太网端口配置命令2-12.1.1 clear interface2-22.1.2 descript
3、ion2-22.1.3 duplex2-32.1.4 flow-control2-42.1.5 ingress acceptable-frame2-52.1.6 ingress filtering2-62.1.7 priority2-62.1.8 show description2-72.1.9 show interface2-82.1.10 show statistics interface2-92.1.11 shutdown2-102.1.12 speed2-102.1.13 bandwidth-control2-112.1.14 show bandwidth-control2-122.1
4、.15 switchport access2-122.1.16 switchport mode2-132.1.17 switchport trunk allowed vlan2-142.1.18 switchport trunk native vlan2-152.1.19 tag2-162.1.20 show statistics dynamic interface2-172.1.21 show utilization interface2-172.2 端口镜像配置命令2-182.2.1 mirror destination-interface2-182.2.2 mirror source-i
5、nterface2-182.2.3 show mirror2-192.3 端口CAR配置命令2-202.3.1 port-car2-202.3.2 port-car-open-time2-212.3.3 port-car-rate2-212.3.4 show port-car2-222.4 端口LACP汇聚配置命令2-232.4.1 channel-group2-232.4.2 channel-group mode2-242.4.3 channel-group load-balance2-242.4.4 lacp system-priority2-252.4.5 lacp port-prior
6、ity2-262.4.6 show lacp sys-id2-262.4.7 show lacp internal2-272.4.8 show lacp neighbor2-282.5 端口利用率告警配置命令2-282.5.1 alarm all-packets2-292.5.2 alarm all-packets threshold2-292.5.3 show alarm all-packets2-302.5.4 show alarm all-packets interface2-302.6 端口shutdown-control配置命令2-312.6.1 shutdown-control2-
7、322.6.2 shutdown-control-recover2-322.6.3 show shutdown-control2-332.6.4 no shutdown-control-recover2-1第3章 VLAN配置命令3-13.1 VLAN 配置命令3-13.1.1 description3-13.1.2 show vlan3-23.1.3 switchport3-23.1.4 vlan3-33.2 GVRP配置命令3-43.2.1 gvrp3-53.2.2 show gvrp3-53.2.3 show gvrp interface3-63.2.4 garp permit vlan
8、3-73.2.5 show garp permit vlan3-73.3 QinQ命令3-83.3.1 dtag3-83.3.2 dtag mode3-93.3.3 dtag insert3-103.3.4 dtag pass-through3-103.3.5 rewrite-outer-vlan3-113.3.6 vlan-swap3-123.3.7 show dtag3-133.3.8 show rewrite-outer-vlan3-143.3.9 show vlan-swap3-14第4章 ARP配置命令4-154.1 ARP配置命令4-154.1.1 no arp4-154.1.2
9、show arp4-15第5章 DHCP功能配置命令5-175.1 DHCP功能配置命令5-175.1.1 dhcp-relay5-175.1.2 dhcpserver5-185.1.3 dhcp-snooping5-195.1.4 dhcp-snooping trust5-195.1.5 dhcp-snooping max-clients5-205.1.6 ip-source-guard5-205.1.7 show dhcp-relay5-215.1.8 show dhcp-snooping interface5-215.1.9 show dhcp-snooping vlan5-225.1.
10、10 show dhcp-snooping clients5-22第6章 组播协议配置命令6-16.1 静态组播配置命令6-16.1.1 multicast mac-address6-16.1.2 multicast mac-address vlan interface6-26.1.3 show multicast6-36.2 IGMP snooping和GMRP配置命令6-36.2.1 gmrp6-46.2.2 igmp-snooping6-56.2.3 igmp-snooping host-aging-time6-56.2.4 igmp-snooping max-response-time
11、6-66.2.5 igmp-snooping fast-leave6-66.2.6 igmp-snooping group-limit6-76.2.7 igmp-snooping permit/deny group6-76.2.8 igmp-snooping route-port forward6-86.2.9 show gmrp6-96.2.10 show gmrp interface6-96.2.11 garp permit multicast mac-address6-106.2.12 show garp permit multicast6-116.2.13 show igmp-snoo
12、ping6-116.2.14 igmp-snooping route-port vlan interface6-116.2.15 no igmp-snooping router-port-age6-126.2.16 igmp-snooping general-query source-ip6-136.2.17 igmp-snooping query-max-respon6-136.2.18 igmp-snooping querier-vlan6-146.2.19 igmp-snooping query-interval6-146.2.20 igmp-snooping querier6-156.
13、3 跨vlan组播配置6-156.3.1 cross-vlan multicast6-166.3.2 cross-vlan multicast6-166.3.3 show cross-vlan multicast6-17第7章 ACL配置命令7-17.1 ACL 配置命令列表7-17.1.1 absolute7-17.1.2 access-group7-37.1.3 access-list7-47.1.4 access-list extended7-77.1.5 access-list link7-97.1.6 access-list match-order7-107.1.7 access-l
14、ist standard7-117.1.8 access-list user7-137.1.9 permit | deny 7-147.1.10 periodic7-187.1.11 show access-list config7-207.1.12 show access-list config statistic7-217.1.13 show access-list runtime7-227.1.14 show access-list runtime statistic7-227.1.15 show time-range7-237.1.16 time-range7-24第8章 QOS配置命
15、令8-18.1 QoS 配置命令8-18.1.1 clear traffic-statistic8-28.1.2 mirrored-to8-38.1.3 queue-scheduler8-48.1.4 queue-scheduler cos-map8-58.1.5 show qos-info all8-68.1.6 show qos-info mirrored-to8-78.1.7 show qos-info statistic8-88.1.8 show qos-info traffic-priority8-108.1.9 show qos-info traffic-redirect8-108
16、.1.10 show qos-info traffic-rewrite-vlan8-118.1.11 show qos-info traffic-statistic8-118.1.12 show qos-info traffic-insert-vlan8-128.1.13 show queue-scheduler8-138.1.14 show queue-scheduler cos-map8-138.1.15 traffic-priority8-148.1.16 traffic-redirect8-158.1.17 traffic-rewrite-vlan8-178.1.18 traffic-
17、statistic8-188.1.19 traffic-insert-vlan8-208.1.20 port-isolation8-218.1.21 show port-isolation8-228.1.22 storm-control8-22第9章 STP配置命令9-19.1 STP配置命令9-19.1.1 show spanning-tree interface9-19.1.2 spanning-tree9-29.1.3 spanning-tree cost9-39.1.4 spanning-tree root-guard9-49.1.5 spanning-tree forward-tim
18、e9-49.1.6 spanning-tree hello-time9-59.1.7 spanning-tree max-age9-69.1.8 spanning-tree port-priority9-79.1.9 spanning-tree mcheck9-89.1.10 spanning-tree point-to-point9-89.1.11 spanning-tree portfast9-99.1.12 spanning-tree transit-limit9-99.1.13 spanning-tree priority9-109.1.14 spanning-tree mode9-1
19、19.1.15 spanning-tree remote-loop-detect9-119.1.16 clear spanning-tree9-129.2 MSTP配置命令9-139.2.1 spanning-tree mst max-hops9-149.2.2 spanning-tree mst name9-159.2.3 spanning-tree mst revision9-159.2.4 spanning-tree mst instance vlan9-169.2.5 spanning-tree mst instance instance-num priority9-169.2.6 s
20、panning-tree mst external cost9-179.2.7 spanning-tree mst instance cost9-189.2.8 spanning-tree mst instance port-priority9-189.2.9 spanning-tree mst root-guard9-199.2.10 show spanning-tree mst config-id9-209.2.11 show spanning-tree mst instance interface9-209.2.12 spanning-tree mst config-digest-sno
21、oping9-219.2.13 spanning-tree mst disable instance9-219.2.14 show spanning-tree mst disabled-instance9-22第10章 802.1X配置命令10-110.1 域配置命令10-110.1.1 aaa10-110.1.2 access-limit10-210.1.3 default domain-name enbale10-210.1.4 domain10-310.1.5 show domain10-410.1.6 radius host10-510.1.7 state10-510.2 RADIUS
22、服务器配置命令10-610.2.1 client-ip10-710.2.2 primary-ip10-710.2.3 radius host10-810.2.4 realtime-account10-910.2.5 second-ip10-1010.2.6 secret-key10-1110.2.7 show radius host10-1210.2.8 username-format10-1210.3 802.1X配置相关命令10-1310.3.1 dot1x10-1410.3.2 dot1x daemon10-1410.3.3 dot1x eap-finish10-1510.3.4 dot
23、1x eap-transfer10-1610.3.5 dot1x max-user10-1710.3.6 dot1x port-control10-1810.3.7 dot1x re-authenticate10-1910.3.8 dot1x re-authentication10-2010.3.9 dot1x timeout re-authperiod10-2110.3.10 dot1x user cut10-2210.3.11 show dot1x10-2210.3.12 show dot1x daemon10-2310.3.13 show dot1x interface10-2310.3
24、.14 show dot1x session10-24第11章 SNTP客户端配置命令11-111.1 SNTP客户端配置命令列表11-111.1.1 show sntp client11-111.1.2 sntp client11-211.1.3 sntp client authenticate11-211.1.4 sntp client authentication-key11-311.1.5 sntp client broadcastdelay11-311.1.6 sntp client mode11-411.1.7 sntp client multicast ttl11-511.1.8
25、 sntp client poll-interval11-611.1.9 sntp client retransmit11-711.1.10 sntp client retransmit-interval11-711.1.11 sntp client valid-server11-811.1.12 sntp server11-911.1.13 sntp trusted-key11-10第12章 Syslog配置命令12-112.1 Syslog配置命令列表12-112.1.1 show logging12-212.1.2 show logging buffered12-212.1.3 show
26、 logging flash12-312.1.4 show logging filter12-312.1.5 show debug12-412.1.6 logging12-412.1.7 logging sequence-numbers12-512.1.8 logging timestamps12-512.1.9 logging monitor12-612.1.10 terminal monitor12-712.1.11 logging buffered12-812.1.12 clear logging buffered12-912.1.13 logging flash12-912.1.14
27、clear logging flash12-1012.1.15 logging host12-1112.1.16 logging facility12-1212.1.17 logging source12-1312.1.18 logging snmp-agent12-1312.1.19 debug12-1512.1.20 upload logging12-15第13章 SSH配置命令13-113.1 SSH配置命令列表13-113.1.1 show ssh13-113.1.2 show keyfile13-213.1.3 ssh13-213.1.4 crypto key generate rs
28、a13-213.1.5 crypto key zeroize rsa13-313.1.6 crypto key refresh13-313.1.7 load keyfile13-313.1.8 upload keyfile13-4第14章 交换机管理和维护命令14-114.1 配置文件管理14-114.1.1 buildrun mode continue14-114.1.2 buildrun mode stop14-114.1.3 clear startup-config14-214.1.4 copy running-config startup-config14-214.1.5 copy s
29、tartup-config running-config14-314.1.6 show running-config14-314.1.7 show startup-config14-414.2 在线加载升级程序14-414.2.1 load application ftp14-514.2.2 load application tftp14-614.2.3 load application xmodem14-614.2.4 load configuration ftp14-714.2.5 load configuration tftp14-714.2.6 load configuration x
30、modem14-814.2.7 load whole-bootrom ftp14-914.2.8 load whole-bootrom tftp14-914.2.9 load whole-bootrom xmodem14-1014.2.10 upload alarm ftp14-1014.2.11 upload alarm tftp14-1114.2.12 upload configuration ftp14-1214.2.13 upload configuration tftp14-1314.2.14 upload logging ftp14-1314.2.15 upload logging
31、 tftp14-1414.3 重启交换机14-1514.3.1 reboot14-1514.4 设备基本配置和维护14-1514.4.1 bootp14-1614.4.2 clock set14-1714.4.3 dhcp14-1814.4.4 dlf-forward14-1914.4.5 ipaddress14-2014.4.6 ipaddress vlan14-2114.4.7 loopback14-2114.4.8 mac-address-table14-2214.4.9 mac-address-table age-time14-2314.4.10 mac-address-table l
32、earning14-2414.4.11 mac-address-table learning mode14-2414.4.12 ping14-2514.4.13 show broadcast-suppression14-2514.4.14 show clock14-2614.4.15 show cpu- utilization14-2614.4.16 show dlf-forward14-2714.4.17 show ip14-2714.4.18 show mac-address-table14-2814.4.19 show mac-address-table age-time14-2914.
33、4.20 show mac-address-table learning14-2914.4.21 show memory14-2914.4.22 show system14-3014.4.23 show users14-3014.4.24 show version14-3014.4.25 login-access-list telnet-limit14-3114.4.26 tracert14-3114.4.27 cpu-car14-3214.4.28 show cpu-car14-3314.4.29 show cpu- statistics14-3314.4.30 clear cpu- sta
34、tistics14-3414.5 SNMP配置14-3414.5.1 show snmp community14-3514.5.2 show snmp contact14-3514.5.3 show snmp host14-3614.5.4 show snmp notify14-3614.5.5 show snmp location14-3714.5.6 show snmp engineID14-3714.5.7 show snmp group14-3814.5.8 show snmp user14-3814.5.9 show snmp view14-3814.5.10 snmp-server
35、 community14-3914.5.11 snmp-server contact14-4014.5.12 snmp-server host14-4114.5.13 snmp-server location14-4214.5.14 snmp-server name14-4214.5.15 snmp-server enable traps14-4314.5.16 snmp-server trap-source14-4414.5.17 snmp-server engineID14-4514.5.18 snmp-server view14-4614.5.19 snmp-server group14
36、-4714.5.20 snmp-server user14-4814.6 管理IP限制配置14-5014.6.1 login-access-list14-5014.6.2 show login-access-list14-5114.7 CPU使用率告警配置命令14-5114.7.1 alarm cpu14-5214.7.2 alarm cpu threshold14-5214.7.3 show alarm cpu14-5314.8 防DOS攻击14-5314.8.1 anti-dos ip fragment14-5314.8.2 show anti-dos14-54第15章 LLDP配置命令1
37、5-5615.1 LLDP配置命令15-5615.1.1 lldp15-5615.1.2 lldp hello-time15-5715.1.3 lldp hold-time15-5715.1.4 lldp rx | tx | rxtx 15-5815.1.5 show lldp interface 15-58第16章 GERP配置命令16-116.1 GERP配置命令16-116.1.1 gerp16-116.1.2 gerp hello-timer16-216.1.3 gerp fail-timer16-216.1.4 gerp domain16-316.1.5 control-vlan16
38、-316.1.6 ring role primary-port secondary-port level16-416.1.7 ring role common-port edge-port16-516.1.8 ring enable | disable 16-616.1.9 show gerp16-6第17章 PPPoE Plus功能配置命令17-817.1 PPPoE Plus功能配置命令17-817.1.1 pppoeplus17-817.1.2 pppoeplus type17-817.1.3 show pppoeplus17-9第18章 CFM配置命令18-918.1.1 cfm do
39、main18-1018.1.2 cfm mep18-1018.1.3 cfm mip18-1118.1.4 cfm rmep18-1218.1.5 cfm cc interval18-1218.1.6 cfm cc enable18-1318.1.7 cfm ping18-1418.1.8 cfm traceroute18-1518.1.9 show cfm domain18-1518.1.10 show cfm maintenance-points local18-1618.1.11 show cfm maintenance-points remote18-1618.1.12 show cf
40、m cc database18-1618.1.13 show cfm errors18-17第1章 访问交换机命令1.1 访问交换机命令访问交换机的命令包括: cls configure terminal enable end exit help hostname interface muser quit show muser show username stop timeout username username change-password1.1.1 cls该命令用来清空当前屏幕显示。cls【命令模式】所有命令模式【举例】!清空当前屏幕显示TiNetcls1.1.2 configure
41、terminal该命令用来使用户从特权用户模式进入全局配置模式。configure terminal【命令模式】特权用户模式【举例】TiNet#configure terminalTiNet(config)#【相关命令】exit,end1.1.3 enable该命令用来使用户从普通用户模式进入特权用户模式。enable 【命令模式】普通用户模式【举例】!从普通用户模式进入到特权用户模式TiNetenableTiNet#【相关命令】exit,end1.1.4 end该命令用来使用户从全局模式或级别更高模式退回特权用户模式。end【命令模式】除普通用户、特权用户模式以外的所有命令模式【使用指南】全
42、部命令模式分为5个级别,由低到高分别为: 普通用户模式 特权用户模式 全局配置模式 以太网端口配置模式、VLAN配置模式和AAA配置模式 域配置模式、RADIUS服务器配置模式执行end命令可从全局配置模式和级别更高模式直接退回到特权用户模式。【举例】!从以太网端口配置模式返回到特权用户模式TiNet(config-if-ethernet-0/1)#endTiNet#【相关命令】exit1.1.5 exit该命令用来使用户从当前模式退回到较低级别模式。如果是普通用户模式,则退出登录。exit【命令模式】所有命令模式【使用指南】执行exit命令即可从高级别的命令模式返回到低级别的用户模式。【举例
43、】!从以太网端口配置模式返回到全局配置模式TiNet(config-if-ethernet-0/1)#exitTiNet(config)#【相关命令】end1.1.6 help该命令用来显示命令行帮助信息。help【命令模式】所有命令模式【使用指南】help命令可以显示在当前模式下所有支持的命令,另外用户也可以随时随地键入“?”获取当前模式下的命令信息。【举例】 TiNet(config)#help1.1.7 hostname该命令用来设置系统命令行接口提示符,此命令的no形式用来恢复系统命令行接口提示符为默认值。hostname hostnameno hostname【参数说明】hostna
44、me:字符串,字符长度为132,必须是可打印字符且不能包含/、:、*、?、|、 等字符。【缺省情况】缺省的系统命令行接口提示符为TiNet【命令模式】 全局配置模式【使用指南】 修改系统命令行接口的提示符,如交换机的提示符为TiNet,全局配置模式下的提示符为TiNet(config)#。【举例】!设置系统命令行接口提示符为TiNetS2024EI-STiNet(config)#hostname TiNetS2024EI-STiNetS2024EI-S (config)#1.1.8 interface该命令用来使用户进入到以太网端口配置模式。interface ethernet interface-num【参数说明】interface-num:端口号【命令模式】全局配置模式【使用指南】interface-num表达形式为slot-num/port-num,slot-num是槽号,取值范围为02,port-num是槽中的端口号,取值范围是124【举例】 !从全局配置模式进入到以太网端口配置模式TiNet(