命令手册《神州数码交换机5950》端口操作命令
- 格式:pdf
- 大小:205.91 KB
- 文档页数:19
端口操作目录目录第1章端口配置..................................................................................1-11.1 端口介绍........................................................................................................................1-11.2 端口配置........................................................................................................................1-11.2.1 业务端口配置.....................................................................................................1-11.2.2 VLAN接口配置..................................................................................................1-21.3 端口配置举例................................................................................................................1-31.4 端口排错帮助................................................................................................................1-41.5 镜像................................................................................................................................1-41.5.1 镜像介绍.............................................................................................................1-41.5.2 镜像配置任务序列.............................................................................................1-41.5.3 镜像举例.............................................................................................................1-51.5.4 镜像排错帮助.....................................................................................................1-6第2章 Port Channel配置...................................................................2-12.1 Port Channel介绍..........................................................................................................2-12.2 Port Channel配置..........................................................................................................2-22.3 Port Channel举例..........................................................................................................2-22.4 Port Channel排错帮助..................................................................................................2-5第1章 端口配置1.1 端口介绍DCRS-5900系列交换机端口包括电口和Combo端口,Combo端口可以选择配置为千兆电口,也可以选择配置为千兆SFP光口,两者只能选择其中之一。
端口操作命令目录目录第1章端口配置命令...........................................................1-11.1 以太网端口配置命令.....................................................................................1-11.1.1 bandwidth...................................................................................................................1-11.1.2 combo-forced-mode....................................................................................................1-11.1.3 clear counters..............................................................................................................1-21.1.4 flow control.................................................................................................................1-21.1.5 interface Ethernet......................................................................................................1-31.1.6 loopback......................................................................................................................1-31.1.7 mdi...............................................................................................................................1-31.1.8 name............................................................................................................................1-41.1.9 negotiation...................................................................................................................1-41.1.10 rate-suppression.......................................................................................................1-41.1.11 show interface...........................................................................................................1-51.1.12 shutdown...................................................................................................................1-81.1.13 speed-duplex.............................................................................................................1-9 1.2 vlan接口配置命令...........................................................................................1-91.2.1 interface vlan..............................................................................................................1-91.2.2 ip address..................................................................................................................1-101.2.3 shutdown...................................................................................................................1-10 1.3 镜像命令.......................................................................................................1-101.3.1 monitor session source interface.............................................................................1-101.3.2 monitor session source interface access-group.......................................................1-111.3.3 monitor session destination interface......................................................................1-111.3.4 show monitor............................................................................................................1-12第2章 Port Channel配置命令............................................2-12.1 debug lacp.......................................................................................................2-1 2.2 port-group.......................................................................................................2-1 2.3 port-group mode.............................................................................................2-1 2.4 interface port-channel....................................................................................2-2 2.5 show port-group..............................................................................................2-2第1章 端口配置命令1.1 以太网端口配置命令1.1.1 bandwidth命令:bandwidth control <bandwidth> [both | receive | transmit]no bandwidth control功能:打开端口的带宽限制功能;本命令的no操作为关闭端口的带宽限制功能。
DCRS-9800系列高端多业务IPv6核心路由交换机产品概述DCRS-9800系列高端多业务IPv6 核心路由交换机是由神州数码网络公司自主研发的新一代核心路由交换机设备,为电子政务网络、企业网络、电信网络提供支持高性能、高可靠性、多业务完美融合、精细化能耗管理、高伸缩性的N*100G核心平台;DCRS-9800系列路由交换机率先通过国际IPv6 Ready第二阶段增强版认证,神州数码网络是国内第一家通过该认证的厂商。
同时DCRS-9800系列路由交换机通过IPv6 Ready Dhcpv6认证,神州数码是全球第一家通过该认证的厂商。
DCRS-9800系列高端多业务IPv6路由交换机提供了12槽到20槽的多种产品,单卡最大可支持96*1000M 端口或16*10G端口;具备N*T比特的背板带宽,并支持将来更高带宽的扩展能力,系统设计将支持N*十万兆以太网接口;具备全方位的IPv4/IPv6安全防范体系;具备稳定的核心保障机制和运营商级别的可靠性;具备业界最领先的多业务IPv6、组播、MPLS等技术;具备绿色的节能环保设计理念;为您构建“四高(高密度、高性能、高安全性、高稳定性)一多(多业务性)一绿(绿色的节能环保性)”的数据网络处理平台提供了强有力的保障。
主要特色超高密度,卓越性能DCRS-9800具备N*T比特的背板带宽,支持将来更高带宽的扩展能力;拥有着先进的十万兆以太网技术;每槽最大可支持96*1000M端口或16*10G端口。
具备硬件可伸缩性设计,可根据需要可灵活配置普通长度的标准模块和长度加倍的超级模块,满足核心层设备高密度、高吞吐量的要求,为城域和广域的应用提供了针对性的解决措施,可以简化网络结构、降低网络建设成本。
同时通过智能灵活的性能资源调度机制Flex-Resource来提供更高的性能资源:影响交换机性能的因素有很多:CPU、内存、MAC表、IP地址表、路由表、ACL表等等。
神州数码交换机基本管理命令.word目录第1章交换机基本配置命令 ...................................................... 1-11.1 基本配置命令 ................................................................................... 1-11.1.1 authentication line login ......................................................................... 1-11.1.2banner ...................................................................................................... 1-11.1.3 boot img ................................................................................................... 1-11.1.4 boot startup-config ................................................................................. 1-21.1.5 clock set ................................................................................................... 1-21.1.6config ........................................................................................................ 1-21.1.7 debug ssh-server .................................................................................... 1-21.1.8disable ...................................................................................................... 1-21.1.9enable ....................................................................................................... 1-31.1.10 enable password ................................................................................... 1-31.1.11end .......................................................................................................... 1-31.1.12 exec-timeout .......................................................................................... 1-3exit .......................................................................................................... 1-41.1.14help ......................................................................................................... 1-41.1.15hostname ............................................................................................... 1-41.1.16 ip host ..................................................................................................... 1-41.1.17 ipv6 host................................................................................................. 1-51.1.18 ip http server ......................................................................................... 1-51.1.19 language................................................................................................. 1-51.1.20login ........................................................................................................ 1-51.1.21password ................................................................................................ 1-51.1.22reload ...................................................................................................... 1-61.1.23 service password-encryption .............................................................. 1-61.1.24 service terminal-length ......................................................................... 1-61.1.25sysContact ............................................................................................. 1-61.1.26sysLocation ........................................................................................... 1-61.1.27 set default .............................................................................................. 1-7setup ....................................................................................................... 1-71.1.29 show clock ............................................................................................. 1-71.1.30 show cpu usage .................................................................................... 1-71.1.31 show memory usage ............................................................................ 1-71.1.32 show privilege ....................................................................................... 1-81.1.33 show temperature ................................................................................. 1-81.1.34 show tech-support ................................................................................ 1-81.1.35 show version ......................................................................................... 1-81.1.36username ............................................................................................... 1-81.1.37 web language ........................................................................................ 1-91.1.38write ........................................................................................................ 1-9 1.2 远程管理 .......................................................................................... 1-91.2.1 authentication ip access-class .............................................................. 1-91.2.2 authentication ipv6 access-class ........................................................1-101.2.3 authentication line login .......................................................................1-101.2.4 authenticationsecurityip .....................................................................1-101.2.5 authentication securityipv6 ................................................................. 1-111.2.6authorization .......................................................................................... 1-111.2.7 terminal length ...................................................................................... 1-111.2.8 terminal monitor .................................................................................... 1-111.2.9telnet .......................................................................................................1-121.2.10 telnet-server enable ............................................................................1-121.2.11 telnet-server max-connection ............................................................1-121.2.12 ssh-server authentication-retries ......................................................1-131.2.13 ssh-server enable................................................................................1-131.2.14 ssh-server host-key create rsa ..........................................................1-131.2.15 ssh-server max-connection ...............................................................1-131.2.16 ssh-server timeout ..............................................................................1-131.2.17 show ssh-server ..................................................................................1-141.2.18 show telnet login .................................................................................1-141.2.19who .......................................................................................................1-14 1.3 配置交换机的IP地址..................................................................... 1-141.3.1 interface vlan .........................................................................................1-141.3.2 interface ethernet0 ...............................................................................1-151.3.3 ip address ..............................................................................................1-151.3.4 ipv6 address ..........................................................................................1-151.3.5 ip bootp-client enable ...........................................................................1-151.3.6 ip dhcp-client enable ............................................................................1-16 1.4 SNMP命令 ..................................................................................... 1-161.4.1 debug snmp mib ...................................................................................1-161.4.2 debug snmp kernel ...............................................................................1-161.4.3 rmon enable ...........................................................................................1-161.4.4 show private-mib oid ............................................................................1-161.4.5 show snmp.............................................................................................1-171.4.6 show snmp engineid ............................................................................1-171.4.7 show snmp group .................................................................................1-181.4.8 show snmpmib .....................................................................................1-181.4.9 show snmp status .................................................................................1-181.4.10 show snmp user ..................................................................................1-181.4.11 show snmp view ..................................................................................1-191.4.12 snmp-server community ....................................................................1-191.4.13 snmp-server enable ............................................................................1-201.4.14 snmp-server enable traps ..................................................................1-201.4.15 snmp-server engineid .........................................................................1-201.4.16 snmp-server group .............................................................................1-201.4.17 snmp-server host ................................................................................1-211.4.18 snmp-server securityip ......................................................................1-221.4.19 snmp-server securityip ......................................................................1-221.4.20 snmp-server trap-source ....................................................................1-221.4.21 snmp-server user ................................................................................1-221.4.22 snmp-server view ................................................................................1-231.5 交换机升级命令.............................................................................. 1-231.5.1 copy (FTP)..........................................................................................1-231.5.2 copy (TFTP)........................................................................................1-241.5.3 ftp-dir ......................................................................................................1-251.5.4 ftp-server enable ...................................................................................1-251.5.5 ftp-server timeout ..................................................................................1-261.5.6 ip ftp ........................................................................................................1-261.5.7 show ftp ..................................................................................................1-261.5.8 show tftp .................................................................................................1-261.5.9 tftp-server enable ..................................................................................1-261.5.10 tftp-server retransmission-number ...................................................1-271.5.11 tftp-server transmission-timeout .......................................................1-27第2章文件系统操作命令.......................................................... 2-12.1 cd ..................................................................................................... 2-12.2 copy ................................................................................................. 2-12.3 delete ............................................................................................... 2-12.4 dir ..................................................................................................... 2-22.5 format .............................................................................................. 2-22.6 mkdir ................................................................................................ 2-22.7 mount ............................................................................................... 2-22.8 pwd .................................................................................................. 2-22.9 rename ............................................................................................. 2-22.10 rmdir .............................................................................................. 2-32.11 unmount ........................................................................................ 2-3第3章集群配置命令................................................................. 3-13.1 clear cluster nodes ......................................................................... 3-13.2 cluster auto-add .............................................................................. 3-13.3 cluster commander ......................................................................... 3-1 3.4 cluster ip-pool ................................................................................. 3-1 3.5 cluster keepalive interval ............................................................... 3-2 3.6 cluster keepalive loss-count .......................................................... 3-2 3.7 cluster member ............................................................................... 3-2 3.8 cluster member auto-to-user ......................................................... 3-3 3.9 cluster reset member ..................................................................... 3-3 3.10 cluster run ..................................................................................... 3-3 3.11 cluster update member ................................................................. 3-4 3.12debug cluster ................................................................................ 3-4 3.13 debug cluster packets .................................................................. 3-5 3.14 show cluster .................................................................................. 3-5 3.15 show cluster members ................................................................. 3-5 3.16 show cluster candidates .............................................................. 3-6 3.17 show cluster topology .................................................................. 3-7 3.18 rcommand commander ................................................................ 3-8 3.19 rcommand member ...................................................................... 3-8第1章交换机基本配置命令1.1 基本配置命令1.1.1 authentication line login命令:authentication line {console | vty | web} login {local | radius| tacacs} no authentication line {console | vty | web} login 功能:配置VTY(即指Telnet和ssh登录方式)、Web和Console方式对登录用户的验证方式和验证选择优先级;该命令的no 命令恢复缺省验证方式。
DCRS-5950系列交换机手册手册版本:v1.7.0神州数码网络(北京)有限公司地址:北京市海淀区上地九街9号 100085 网址: 手册简介本手册由三本分手册组成:《DCRS-5950系列交换机安装手册》、《DCRS-5950系列交换机操作手册》、《DCRS-5950系列交换机命令手册》。
手册内容简介《DCRS-5950系列交换机安装手册》介绍DCRS-5950系列交换机硬件结构、功能特点、安装方法。
《DCRS-5950系列交换机操作手册》01_基本管理操作交换机的配置管理方式和对应的基本配置,包括带外管理、SNMP管理、telnet管理、web管理,软件升级方法,集群网管配置。
02_端口操作以太网端口、端口隔离、端口汇聚的操作、ULDP、LLDP以及JUMBO的配置。
03_VLAN和MAC地址操作VLAN、private VLAN、GVRP、QinQ、VLAN-translation、动态VLAN、Voice VLAN的配置。
MAC地址表配置,包括MAC地址绑定和MAC地址过滤。
04_MSTP操作STP、MSTP的配置。
05_Qos、PBR及基于流的重定向操作COS、TOS、DSCP优先级配置,数据分类和转发策略的配置、IPv6QOS、PBR、ipv6 PBR的配置和使用,基于流的重定向操作。
06_三层转发及ARP操作IPv4/v6接口配置,IPv6各种隧道配置,URPF和ARP配置,ARP、ND绑定配置,防ARP扫描配置,arp local proxy操作,免费ARP功能配置,IPv6 URPF配置。
07_DHCP及相关操作DHCP、DHCPv6的配置,DHCP option82配置以及DHCPSnooping配置。
08_路由协议操作IPv4/v6的各种路由协议,包括RIP、RIPng、OSPF、OSPFv3、BGP、MBGP4+、RIP路由聚合、IPv4/v6黑洞路由以及静态路由配置。
目录第1章 VLAN配置.......................................................................1-11.1 VLAN配置.........................................................................................1-11.1.1 VLAN介绍...............................................................................................1-11.1.2 VLAN的配置任务序列.............................................................................1-21.1.3 VLAN典型应用........................................................................................1-41.2 GVRP配置........................................................................................1-51.2.1 GVRP介绍..............................................................................................1-51.2.2 GVRP配置任务序列................................................................................1-61.2.3 GVRP典型应用.......................................................................................1-71.2.4 VLAN排错帮助........................................................................................1-81.3 Dot1q-tunnel配置............................................................................1-91.3.1 Dot1q-tunnel介绍..................................................................................1-91.3.2 Dot1q-tunnel配置................................................................................1-101.3.3 Dot1q-tunnel典型应用.........................................................................1-101.3.4 Dot1q-tunnel排错帮助.........................................................................1-111.4 VLAN-translation配置...................................................................1-111.4.1 VLAN-translation介绍.........................................................................1-111.4.2 VLAN-translation配置.........................................................................1-121.4.3 VLAN-translation典型应用..................................................................1-121.4.4 VLAN-translation排错帮助..................................................................1-131.5.1 动态VLAN介绍.....................................................................................1-131.5.2 动态VLAN配置.....................................................................................1-141.5.3 动态VLAN典型应用..............................................................................1-161.5.4 动态VLAN排错帮助..............................................................................1-171.6 Voice VLAN配置............................................................................1-171.6.1 Voice VLAN介绍...................................................................................1-171.6.2 Voice VLAN配置...................................................................................1-181.6.3 Voice VLAN典型应用...........................................................................1-181.6.4 Voice VLAN排错帮助...........................................................................1-19第2章 MAC地址表配置.............................................................2-12.1 MAC地址表介绍...............................................................................2-12.1.1 MAC地址表的获取..................................................................................2-12.1.2 转发或过滤.............................................................................................2-22.2 MAC地址表配置...............................................................................2-3 2.3 典型配置举例...................................................................................2-4 2.4 排错帮助..........................................................................................2-4 2.5 MAC地址功能扩展............................................................................2-52.5.1 MAC地址绑定.........................................................................................2-52.5.1.1 MAC地址绑定介绍........................................................................2-52.5.1.2 MAC地址绑定配置任务序列..........................................................2-52.5.1.3 MAC地址绑定排错帮助.................................................................2-6第1章 VLAN配置1.1 VLAN配置1.1.1 VLAN介绍VLAN(Virtual Local Area Network)即虚拟局域网,这项技术可以根据功能、应用或者管理的需要将局域网内部的设备逻辑地划分为一个个网段,从而形成一个个虚拟的工作组,并且不需要考虑设备的实际物理位置。
神州数码交换机配置命令交换机基本状态:hostname> ;⽤户模式hostname# ;特权模式hostname(config)# ;全局配置模式hostname(config-if)# ;接⼝状态交换机⼝令设置:switch>enable ;进⼊特权模式switch#config terminal ;进⼊全局配置模式switch(config)#hostname ;设置交换机的主机名switch(config)#enable secret xxx ;设置特权加密⼝令switch(config)#enable password xxa ;设置特权⾮密⼝令switch(config)#line console 0 ;进⼊控制台⼝switch(config-line)#line vty 0 4 ;进⼊虚拟终端switch(config-line)#login ;允许登录switch(config-line)#password xx ;设置登录⼝令xxswitch#exit ;返回命令交换机VLAN设置:switch#vlan database ;进⼊VLAN设置switch(vlan)#vlan 2 ;建VLAN 2switch(vlan)#no vlan 2 ;删vlan 2switch(config)#int f0/1 ;进⼊端⼝1switch(config-if)#switchport access vlan 2 ;当前端⼝加⼊vlan 2switch(config-if)#switchport mode trunk ;设置为⼲线switch(config-if)#switchport trunk allowed vlan 1,2 ;设置允许的vlanswitch(config-if)#switchport trunk encap dot1q ;设置vlan 中继switch(config)#vtp domain ;设置发vtp域名switch(config)#vtp password ;设置发vtp密码switch(config)#vtp mode server ;设置发vtp模式switch(config)#vtp mode client ;设置发vtp模式交换机设置IP地址:switch(config)#interface vlan 1 ;进⼊vlan 1switch(config-if)#ip address ;设置IP地址switch(config)#ip default-gateway ;设置默认⽹关switch#dir Flash: ;查看闪存交换机显⽰命令:switch#write ;保存配置信息switch#show vtp ;查看vtp配置信息switch#show run ;查看当前配置信息switch#show vlan ;查看vlan配置信息switch#show interface ;查看端⼝信息switch#show int f0/0 ;查看指定端⼝信息完了最最要的⼀步。
可靠性命令目录目录第1章 VRRP命令·················································································1-11.1 advertisement-interval················································································1-11.2 circuit-failover·····························································································1-11.3 debug vrrp···································································································1-21.4 disable···········································································································1-21.5 enable···········································································································1-21.6 interface·······································································································1-31.7 preempt-mode·····························································································1-31.8 priority·········································································································1-31.9 router vrrp···································································································1-41.10 show vrrp···································································································1-41.11 virtual-ip·····································································································1-5第2章 MRPP命令·················································································2-12.1 mrpp enable·································································································2-12.2 mrpp ring·····································································································2-12.3 control-vlan··································································································2-12.4 primary-port································································································2-22.5 secondary-port·····························································································2-22.6 hello-timer····································································································2-22.7 fail-timer······································································································2-32.8 node-mode····································································································2-32.9 enable···········································································································2-32.10 show mrpp·································································································2-42.11 show mrpp statistics··················································································2-42.12 clear mrpp statistics··················································································2-42.13 debug mrpp································································································2-5第1章 VRRP命令1.1 advertisement-interval命令:advertisement-interval<adver_interva l>功能:配置vrrp定时器时间值参数:<adver_interval>发送VRRP报文的间隔时间,单位为秒,取值范围为1~10缺省情况:<adver_interva>缺省值为1秒命令模式:VRRP协议配置模式使用指南:每隔一段时间,VRRP备份组中的Master都会发送VRRP报文来向组内的路由器(或三层以太网交换机)通知自己工作正常,这个间隔时间就是adver_interval。
交换机的命令一、交换机基本配置1、使用交换机的命令行管理界面①切换交换机的模式:用户模式、特权模式、全局配置模式、端口模式②命令帮助:?③命令简写:可识别该命令的前几个字母④命令自动补齐:按TAB键,在可识别的情况下自动补齐⑤命令的快捷键:ctrl+z返回到特权模式,ctrl+c终止当前操作2、交换机的全局配置①进入全局配置模式switch#configure terminalswitch(config)#②配置交换机的设备名称switch(config)#hostname s123s123(config)#③配置交换机的每日提示信息s123(config)#banner motd & !&为终止符,有效字符为22个字节3、交换机端口的基本配置①进入端口配置模式switch#configure terminalswitch(config)#interface fastethernet 0/3switch(config-if)#②配置端口速率(100、10、auto)switch(config-if)#speed 10③配置双工模式(full、half、auto)switch(config-if)#duplex half④开启端口⑤查看端口配置信息switch#show interface fastethernet 0/3 AdminStatus:up 交换机端口开启OperStatus:up 交换机端口连接设备正常AdminDuplex:half 双工模式AdminSpeed:10 端口速度4、查看交换机的系统和配置信息①进入特权模式switch>enableswitch#②查看交换机的版本信息switch#show version③查看交换机的MAC地址表switch#show mac-address-table④查看交换机当前生效的配置信息switch#show running-config二、虚拟局域网VLAN--交换机端口隔离1、配置前测试连通性①给每台PC配置IP地址等信息②用ping命令测试可以连通2、创建VLAN①进入交换机全局配置模式switch#configure terminalswitch(config)#②建立VLANswitch(config)#vlan 10switch(config-vlan)#name test10 switch(config-vlan)#exitswitch(config)#vlan 20switch(config-vlan)#exit③查看已配置的VLAN信息3、将接口分配到VLAN①进入端口配置模式switch#configure terminalswitch(config)#interface fastethernet 0/1 switch(config-if)#②端口加入VLANswitch(config-if)#switchport access vlan 10 switch(config-if)#exitswitch(config)#interface fastethernet 0/3 switch(config-if)#switchport access vlan 20 switch(config-if)#exit4、配置后测试连通性加入不同vlan的端口所连接的PC间逻辑上不再连通三、跨交换机实现VLANSwitch(config)#vlan 10Switch(config-vlan)#exitSwitch(config)#interface fastEthernet 0/3 Switch(config-if)#switchport access vlan 10Switch(config)#interface fastEthernet 0/1 Switch(config-if)#switchport mode trunk四、交换机的冗余链接--不能形成环路链路聚合Switch(config)#interface aggregateport 1 Switch(config-if)#switchport mode trunk Switch(config-if)#exitSwitch(config)#interface range fastethernet 0/1-2Switch(config-if-range)#port-group 1生成树步骤1:交换机A上的配置Switch(config)#hostname SASA(config)#VLAN 10SA(config-if)#name salesSA(config-if)#exitSA(config)#interface fastethernet 0/3SA(config-if)#switchport access vlan 10SA(config-if)#exitSA(config)#interface range fastethernet 0/1 - 2SA(config-if-range)#switchport mode trunk步骤2: 交换机B上的配置Switch(config)#hostname SBSB(config)#VLAN 10SB(config-if)#name salesSB(config-if)#exitSB(config)#interface fastethernet 0/3SB(config-if)#switchport access vlan 10SB(config-if)#exitSB(config)#interface range fastethernet 0/1 - 2SB(config-if-range)#switchport mode trunk步骤3: 配置快速生成树协议SA(config)#spanning-tree !开启生成树协议SA(config)#spanning-tree mode rstp !指定生成树协议的类型为RSTPSB(config)#spanning-tree !开启生成树协议SB(config)#spanning-tree mode rstp !指定生成树协议的类型为RSTP步骤4: 设置交换机的优先级,指定交换机A为根交换机SA(config)#spanning-tree priority 4096五、利用三层交换机实现不同VLAN间的通信步骤1: 在交换机A(三层交换机)上创建VLAN 10,并将0/1端口划分到VLAN 10中在交换机A(三层交换机)上创建VLAN 20,并将0/2端口划分到VLAN 20中步骤2: 把交换机A与交换机B相连端口(设为0/24端口)定义为tag vlan模式步骤3: 在交换机B上创建VLAN 10,并将0/1端口划分到VLAN 10中步骤4: 把交换机B与交换机A相连端口(设为0/24端口)定义为tag vlan模式步骤5: 设置三层交换机VLAN间通信。
端口操作命令目录目录第1章端口配置命令...........................................................1-11.1 以太网端口配置命令.....................................................................................1-11.1.1 bandwidth...................................................................................................................1-11.1.2 combo-forced-mode....................................................................................................1-11.1.3 clear counters..............................................................................................................1-21.1.4 flow control.................................................................................................................1-21.1.5 interface Ethernet......................................................................................................1-31.1.6 loopback......................................................................................................................1-31.1.7 mdi...............................................................................................................................1-31.1.8 name............................................................................................................................1-41.1.9 negotiation...................................................................................................................1-41.1.10 rate-suppression.......................................................................................................1-41.1.11 show interface...........................................................................................................1-51.1.12 shutdown...................................................................................................................1-81.1.13 speed-duplex.............................................................................................................1-9 1.2 vlan接口配置命令...........................................................................................1-91.2.1 interface vlan..............................................................................................................1-91.2.2 ip address..................................................................................................................1-101.2.3 shutdown...................................................................................................................1-10 1.3 镜像命令.......................................................................................................1-101.3.1 monitor session source interface.............................................................................1-101.3.2 monitor session source interface access-group.......................................................1-111.3.3 monitor session destination interface......................................................................1-111.3.4 show monitor............................................................................................................1-12第2章 Port Channel配置命令............................................2-12.1 debug lacp.......................................................................................................2-1 2.2 port-group.......................................................................................................2-1 2.3 port-group mode.............................................................................................2-1 2.4 interface port-channel....................................................................................2-2 2.5 show port-group..............................................................................................2-2第1章 端口配置命令1.1 以太网端口配置命令1.1.1 bandwidth命令:bandwidth control <bandwidth> [both | receive | transmit]no bandwidth control功能:打开端口的带宽限制功能;本命令的no操作为关闭端口的带宽限制功能。
参数:<bandwidth>为限制带宽,单位为Kbps,若为千兆带宽,取值范围为1-1000000K,若为百兆带宽1-100000K;取值范围为both为端口收发时均进行带宽控制;receive为仅在端口从交换机外接收数据时进行带宽控制;transmit为仅在端口向交换机外发送数据时进行带宽控制。
命令模式:端口配置模式缺省情况:端口缺省关闭带宽限制功能。
使用指南:当端口设置了带宽限制功能,并且指定了限制带宽的大小,那么端口的最大带宽就被确定,而不以10/100/1000M为最大带宽。
如果不指定[both | receive | transmit]关键字,缺省为both。
注意:设置端口带宽限制值不能超过端口可能的物理连接最大速度。
例如一个10/100M以太网端口不能设置为限制101000K(或101000K以上)的带宽。
但是当一个10/100/1000M 端口工作在100M速度时,可以设置101000K(或101000K以上)流量限制。
举例:设置1槽板卡1-8号端口限制带宽为40000K。
Switch(Config)#interface ethernet 1/1-8Switch(Config-If-Port-Range)#bandwidth control 40000 both1.1.2 combo-forced-mode命令:combo-forced-mode {copper-forced | copper-preferred-auto | sfp-forced | sfp-preferred-auto }功能:设置组合端口的组合模式(只对组合端口有效)。