思科哪个命令可以show stp根桥是主还是次
show spanning-tree 、show spanning-tree detail是查看生成树的命令。按照生成树的规定,根桥上面的所有的端口均为指定端口,非根桥连接根桥的端口为根端口,或者是阻塞端口。

华为交换机怎么打开端口
使用命令“showinterfacef0/1”即可查看端信息。华为交换机查看端口状态命令及说明:1、current state 端口当前状态:向下表示端口关闭,向上表示端口打开;2、Last 300 seconds input rate:前5分钟端口接收到的字节率和消息率;3、Port Mode端口的工作模式:公共铜线为电端口模式,公共光纤为光端口模式;4、Last 300 seconds output rate:前5分钟端口发送的字节率和消息率;5、Line protocol current state端口的链路协议状态:Down表示端口链路协议层出现故障或端口未配置IP地址,Up表示端口链路协议处于正常启动状态。扩展资料因为交换机有带宽很高的内部交换矩阵和背部总线,并且这个背部总线上挂接了所有的端口。通过内部交换矩阵,就能够把数据包直接而迅速地传送到目的节点而非所有节点。 这样就不会浪费网络资源,从而产生非常高的效率。同时在此过程中,数据传输的安全程度非常高。和集线器每个端口共享同样带宽不同的是,交换机的数据带宽具有独享性。在这样的前提下,在同一个时间段内,交换机就可以将数据传输到多个节点之间,并且每个节点都可 以当作独立网段而独自享有固定的部分带宽。
连接开关、可以远程登录交换机、查找本地计算机的MAC地址、可以在命令行上输入“ipconfig/all”进行查询、在交换机中输入disMACaddress448a-5be2-5800命令、就可以找到这个MAC地址对应的端口详细步骤如下:1、连接开关、可以远程登录交换机。2、查找本地计算机的MAC地址、可以在命令行上输入“ipconfig/all”进行查询、查找当前网卡地址。3、然后在交换机中输入disMACaddress448a-5be2-5800命令、就可以找到这个MAC地址对应的端口。4、我们很容易看出,结果是计算机对应于交换机的第八个端口。5、如果你想找到与那台计算机对应的接口、或者IP地址、使用此命令“disMACaddressgig0/0/8”或“disIPinterfacegig0/0/8”。6、这样我们就可以很容易地找到端口和计算机之间的对应情况。扩展资料终端、服务器都不支持STP协议、这些设备和交换机连接、在交换机的端口上执行命令stpedged-portenable开启边缘端口属性或执行命令stpdisable去使能STP。POE(PowerOverEthernet)指的是在现有的以太网Cat、布线基础架构不作做何改动的情况下、在为一些基于IP的终端传输数据信号的同时、还能为此类设备提供直流供电的技术。POE技术能在确保现有结构化布线安全的同时保证现有网络的正常运作,最大限度地降低成本。
使用命令“showinterfacef0/1”即可查看端信息。华为交换机查看端口状态命令及说明:1、current state 端口当前状态:向下表示端口关闭,向上表示端口打开;2、Last 300 seconds input rate:前5分钟端口接收到的字节率和消息率;3、Port Mode端口的工作模式:公共铜线为电端口模式,公共光纤为光端口模式;4、Last 300 seconds output rate:前5分钟端口发送的字节率和消息率;5、Line protocol current state端口的链路协议状态:Down表示端口链路协议层出现故障或端口未配置IP地址,Up表示端口链路协议处于正常启动状态。扩展资料:交换机可以同时在多个端口对之间传输数据,每个端口都可以看作一个独立的物理网段(注:非IP网段),与之相连的网络设备可以独立地享受所有的带宽,而不必与其他设备竞争,当节点a向节点D发送数据时,节点B可以同时向节点C发送数据,他们都享受着网络的全部带宽,拥有自己的虚拟连接,如果这里使用10Mbps以太网交换机,那么交换机的总流量等于2×10Mbps=20MBps,使用10Mbps共享集线器时,集线器的总流量不会超过10Mbps。
可以按一下步骤进行: 首先登录进交换机进入系统视图,命令为:system-view进入以太网端口视图:命令格式: interface interface-type interface-number参考一下例子: system-view[Switch] interface fastethernet0/1Switch[fastethernet0/1]在此情况下,可对此端口进行配置,显示。 如:portaccess vlan 100; fastethernet0/1是vlan100的一个端口
华为交换机端口默认都是打开的。 通过shutdown 来关闭端口通过undo shutdown 来开启端口例,关闭端口1inter eth0/0/1shutdownquit打开端口1inter eth0/0/1undo shutdown quit

华为交换机基础配置命令
1、开始 建立本地配置环境,将主机的串口通过配置电缆与以太网交换机的Console口连接。在主机上运行终端仿真程序(如Windows的超级终端等),设置终端通信参数为:波特率为9600bit/s、8位数据位、1位停止位、无校验和无流控,并选择终端类型为VT100。以太网交换机上电,终端上显示以太网交换机自检信息,自检结束后提示用户键入回车,之后将出现命令行提示符(如)。键入命令,配置以太网交换机或查看以太网交换机运行状态。需要帮助可以随时键入"?"2、命令视图(1)用户视图(查看交换机的简单运行状态和统计信息):与交换机建立连接即进入(2)系统视图(配置系统参数)[Quidway]:在用户视图下键入system-view(3)以太网端口视图(配置以太网端口参数)[Quidway-Ethernet0/1]:在系统视图下键入interface ethernet 0/1(4)VLAN视图(配置VLAN参数)[Quidway-Vlan1]:在系统视图下键入vlan 1(5)VLAN接口视图(配置VLAN和VLAN汇聚对应的IP接口参数)[Quidway-Vlan-interface1]:在系统视图下键入interface vlan-interface 1(6)本地用户视图(配置本地用户参数)[Quidway-luser-user1]:在系统视图下键入local-user user1(7)用户界面视图(配置用户界面参数)[Quidway-ui0]:在系统视图下键入user-interface3、其他命令设置系统时间和时区clock time Beijing add 8clock datetime 12:00:00 2005/01/23设置交换机的名称[Quidway]sysname TRAIN-3026-1[TRAIN-3026-1]配置用户登录[Quidway]user-interface vty 0 4[Quidway-ui-vty0]authentication-mode scheme创建本地用户[Quidway]local-user huawei[Quidway-luser-huawei]password simple huawei[Quidway-luser-huawei] service-type telnet level 34、VLAN配置方法『配置环境参数』SwitchA端口E0/1属于VLAN2,E0/2属于VLAN3『组网需求』把交换机端口E0/1加入到VLAN2 ,E0/2加入到VLAN3数据配置步骤『VLAN配置流程』(1)缺省情况下所有端口都属于VLAN 1,并且端口是access端口,一个access端口只能属于一个vlan;(2)如果端口是access端口,则把端口加入到另外一个vlan的同时,系统自动把该端口从原来的vlan中删除掉;(3)除了VLAN1,如果VLAN XX不存在,在系统视图下键入VLAN XX,则创建VLAN XX并进入VLAN视图;如果VLAN XX已经存在,则进入VLAN视图。【SwitchA相关配置】方法一:(1)创建(进入)vlan2[SwitchA]vlan 2(2)将端口E0/1加入到vlan2[SwitchA-vlan2]port ethernet 0/1(3)创建(进入)vlan3[SwitchA-vlan2]vlan 3(4)将端口E0/2加入到vlan3[SwitchA-vlan3]port ethernet 0/2方法二:(1)创建(进入)vlan2[SwitchA]vlan 2(2)进入端口E0/1视图[SwitchA]interface ethernet 0/1(3)指定端口E0/1属于vlan2[SwitchA-Ethernet1]port access vlan 2(4)创建(进入)vlan3[SwitchA]vlan 3(5)进入端口E0/2视图[SwitchA]interface ethernet 0/2(6)指定端口E0/2属于vlan3[SwitchA-Ethernet2]port access vlan 3测试验证(1)使用命令disp cur可以看到端口E0/1属于vlan2,E0/2属于vlan3;(2)使用display interface Ethernet 0/1可以看到端口为access端口,PVID为2;(3)使用display interface Ethernet 0/2可以看到端口为access端口,PVID为35、交换机IP地址配置功能需求及组网说明『配置环境参数』三层交换机SwitchA有两个端口ethetnet 0/1、ethernet 0/2,分别属于vlan 2、vlan 3;以vlan 2的三层接口地址分别是1.0.0.1/24作为PC1的网关;以vlan 3的三层接口地址分别是2.0.0.1/24作为PC2的网关;『组网需求』PC1和PC2通过三层接口互通【SwitchA相关配置】(1)创建(进入)vlan2[Quidway]vlan 2(2)将端口E0/1加入到vlan2[Quidway-vlan2]port ethernet 0/1(3)进入vlan2的虚接口[Quidway-vlan2]interface vlan 2(4)在vlan2的虚接口上配置IP地址[Quidway-Vlan-interface2]ip address 1.0.0.1 255.255.255.0(5)创建(进入)vlan3[Quidway]vlan 3(6)将E0/2加入到vlan3[Quidway-vlan3]port ethernet 0/2(7)进入vlan3的虚接口[Quidway-vlan3]interface vlan 3(8)在vlan3的虚接口上配置IP地址[Quidway-Vlan-interface3]ip address 2.0.0.1 255.255.255.0测试验证(1)PC1和PC2都可以PING通自己的网关(2)PC1和PC2可以相互PING通6、端口的trunk配置『配置环境参数』(1)SwitchA 端口E0/1属于vlan10,E0/2属于vlan20,E0/3与SwitchB端口E0/3互连(2)SwitchB 端口E0/1属于vlan10,E0/2属于vlan20,E0/3与SwitchA端口E0/3互连『组网需求』(1)要求SwitchA的vlan10的PC与SwitchB的vlan10的PC互通(2)要求SwitchA的vlan20的PC与SwitchB的vlan20的PC互通数据配置步骤【SwitchA相关配置】(1)创建(进入)vlan10[SwitchA] vlan 10(2)将E0/1加入到vlan10[SwitchA-vlan10]port Ethernet 0/1(3)创建(进入)vlan20[SwitchA]vlan 20(4)将E0/2加入到vlan20[SwitchA-vlan20]port Ethernet 0/2(5)实际当中一般将上行端口设置成trunk属性,允许vlan透传[SwitchA-Ethernet0/3]port link-type trunk(6)允许所有的vlan从E0/3端口透传通过,也可以指定具体的vlan值[SwitchA-Ethernet0/3]port trunk permit vlan all【SwitchB相关配置】(1)创建(进入)vlan10[SwitchB] vlan 10(2)将E0/1加入到vlan10[SwitchB-vlan10]port Ethernet 0/1(3)创建(进入)vlan20[SwitchB]vlan 20(4)将E0/2加入到vlan20[SwitchB-vlan20]port Ethernet 0/2(5)实际当中一般将上行端口设置成trunk属性,允许vlan透传[SwitchB-Ethernet0/3]port link-type trunk(7)允许所有的vlan从E0/3端口透传通过,也可以指定具体的vlan值[SwitchB-Ethernet0/3]port trunk permit vlan all【补充说明】(1)如果一个端口是trunk端口,则该端口可以属于多个vlan;(2)缺省情况下trunk端口的PVID为1,可以在端口模式下通过命令port trunk pvid vlan vlanid 来修改端口的PVID;(3)如果从trunk转发出去的数据报文的vlan id和端口的PVID一致,则该报文的VLAN信息会被剥去,这点在配置trunk端口时需要注意。(4)一台交换机上如果已经设置了某个端口为hybrid端口,则不可以再把另外的端口设置为trunk端口。(5)一般情况下最好指定端口允许通过哪些具体的VLAN,不要设置允许所有的VLAN通过。测试验证(1)SwitchA vlan10内的PC可以与SwitchB vlan10内的PC互通(2)SwitchA vlan20内的PC可以与SwitchB vlan20内的PC互通(3)SwitchA vlan10内的PC不能与SwitchB vlan20内的PC互通(4)SwitchA vlan20内的PC不能与SwitchB vlan10内的PC互通7、端口汇聚配置『配置环境参数』(1)交换机SwitchA和SwitchB通过以太网口实现互连。(2)SwitchA用于互连的端口为e0/1和e0/2,SwitchB用于互连的端口为e0/1和e0/2。『组网需求』增加SwitchA的SwitchB的互连链路的带宽,并且能够实现链路备份,使用端口汇聚数据配置步骤【SwitchA交换机配置】(1)进入端口E0/1[SwitchA]interface Ethernet 0/1(2)汇聚端口必须工作在全双工模式[SwitchA-Ethernet0/1]duplex full(3)汇聚的端口速率要求相同,但不能是自适应[SwitchA-Ethernet0/1]speed 100(4)进入端口E0/2[SwitchA]interface Ethernet 0/2(5)汇聚端口必须工作在全双工模式[SwitchA-Ethernet0/2]duplex full(6)汇聚的端口速率要求相同,但不能是自适应[SwitchA-Ethernet0/2]speed 100(7)根据源和目的MAC进行端口选择汇聚[SwitchA]link-aggregation Ethernet 0/1 to Ethernet 0/2 both【SwitchB交换机配置】[SwitchB]interface Ethernet 0/1[SwitchB-Ethernet0/1]duplex full[SwitchB-Ethernet0/1]speed 100[SwitchB]interface Ethernet 0/2[SwitchB-Ethernet0/2]duplex full[SwitchB-Ethernet0/2]speed 100[SwitchB]link-aggregation Ethernet 0/1 to Ethernet 0/2 both【补充说明】(1)同一个汇聚组中成员端口的链路类型与主端口的链路类型保持一致,即如果主端口为Trunk端口,则成员端口也为Trunk端口;如主端口的链路类型改为Access端口,则成员端口的链路类型也变为Access端口。(2)不同的产品对端口汇聚时的起始端口号要求各有不同,请对照《操作手册》进行配置。8、端口镜像配置『环境配置参数』(1)PC1接在交换机E0/1端口,IP地址1.1.1.1/24(2)PC2接在交换机E0/2端口,IP地址2.2.2.2/24(3)E0/24为交换机上行端口(4)Server接在交换机E0/8端口,该端口作为镜像端口『组网需求』(1)通过交换机端口镜像的功能使用server对两台pc的业务报文进行监控。根据Quidway交换机不同型号,镜像有不同方式进行配置:基于端口的镜像 ——基于端口的镜像是把被镜像端口的进出数据报文完全拷贝一份到镜像端口,这样来进行流量观测或者故障定位。基于流的镜像 ——基于流镜像的交换机针对某些流进行镜像,每个连接都有两个方向的数据流,对于交换机来说这两个数据流是要分开镜像的。S2008/S2016/S2026/S2403H/S3026等交换机支持的都是基于端口的镜像8016交换机支持基于端口的镜像3500/3026E/3026F/3050支持基于流的镜像5516/6506/6503/6506R支持对入端口流量进行镜像数据配置步骤以Quidway S3026C为例,通过基于二层流的镜像进行配置:(1)定义一个ACL[SwitchA]acl num 200(2)定义一个规则从E0/1发送至其它所有端口的数据包[SwitchA]rule 0 permit ingress interface Ethernet0/1 egress interface Ethernet0/2(3)定义一个规则从其它所有端口到E0/1端口的数据包[SwitchA]rule 1 permit ingress interface Ethernet0/2 egress interface Ethernet0/1(4)将符合上述ACL的数据包镜像到E0/8[SwitchA]mirrored-to link-group 200 interface e0/89、生成树STP配置『配置环境参数』(1)交换机SwitchA、SwitchB和SwitchC都通过GE接口互连(2)SwitchB和SwitchC交换机是核心交换机,要求主备。『组网需求』要求整个网络运行STP协议数据配置步骤(1)【SwitchA交换机配置】启动生成树协议: [SwitchA]stp enable(1)【SwitchB交换机配置】启动生成树协议:[SwitchB]stp enable(3)配置本桥为根桥[SwitchB]stp root primary(4)【SwitchC交换机配置】a 启动生成树协议[SwitchC]stp enableb 配置本桥为备份根桥[SwitchC]stp root secondary(5)【SwitchD交换机配置】a 启动生成树协议[SwitchD]stp enable【补充说明】(1)缺省情况下交换机的优先级都是32768,如果想人为指定某一台交换机为根交换机,也可以通过修改优先级来实现;(2)缺省情况下打开生成树后,所有端口都会开启生成树协议,请把接PC的端口改为边缘端口模式;(3)如果要控制某条链路的状态可以通过设置端口的cost值来实现。测试验证(1)使用display stp查看交换机STP运行状态(2)查看端口STP状态display stp interface Ethernet XX是否正确10、Quidway交换机维护显示系统版本信息:display version显示诊断信息:display diagnostic-information显示系统当前配置:display current-configuration显示系统保存配置: display saved-configuration显示接口信息:display interface显示路由信息:display ip routing-table显示VLAN信息:display vlan显示生成树信息:display stp显示MAC地址表:display mac-address显示ARP表信息:display arp显示系统CPU使用率:display cpu显示系统内存使用率:display memory显示系统日志:display log显示系统时钟:display clock验证配置正确后,使用保存配置命令:save 删除某条命令,一般使用命令: undo

两台H3C 交换机 e1/0/23 和 e1/0/24 连接 做个stp 实验 怎么启用 怎么查看根桥 根端口
super password:*******sys[H3C]stp root priority 0 //将该交换机设置为根桥,优先级为0,非根桥的交换机不用设置优先级,采用默认的即可,H3C的默认优先级为32768[H3C]stp enable//交换机上启用STP协议[H3C]display stp brief//查看所有端口下的STP状态,status项为ALTE的是blocking端口,端口角色为root的为根端口差不多就这些,很简单的。一般只要确定根桥就行了,根端口会自己计算出来,甚至根桥都不用确定,因为会自己竞选出根桥(默认优先级都一样,所以MAC地址小的为根桥)。一定要修改根端口的话,打个比方,假如你将某端口的速率设置为speed 10(10M),其他端口均为speed 100,这样速率为100的端口很有可能成为根端口,因为链路的速率较大,带宽较大,相应的去往根桥的cost就越小,当然只是可能而已,因为要考虑到整个拓扑中其他交换机到根桥的cost,较为繁杂,你可以根据自己的实际情况适当修改端口下的速率来决定根端口。 手打很累啊。
修改交换机的优先级就可以了

思科 华为 华为3COM和锐捷之间的命令比较
CISCO 和锐捷基本上是一样的 思科和H3C是完全不一样的 Cisco 华为 解释show display 显示noundo删除/取消user local-user新建用户endreturn退回到系统视图exitquit 返回上级视图exitlogouttelnetr的退出router riprip 启动riprouter ospf ospf启动ospfrouter bgp bgp 启动bgphostnamesysneme 设置主机名字access-list acl 控制访问列表writesave保存配置erasedelete删除配置0simple明文7cipher密文host ip host host名字和ip地址对应logginginfo-center 日志信息encapslution link-pro封装链路层协议show version disp version显示版本show rundisp显示当前配置current-configurationshow disp base-information 显示全面的信息tech-supportshow start disp saved-configuration 显示已保存的配置ctrl+zctrl+z 退回到系统视图ctrl+p ctrl+p上一条命令ctrl+nctrl+n下一条命令-ctrl+adisplay cur-ctrl+r display ip routig-tableundebug all ctrl+d取消所有debug命令cisco和华为命令2008-04-09 13:27CISCO交换机配置命令大全2006-2-28 14:33:001.在基于IOS的交换机上设置主机名/系统名:switch(config)# hostname hostname在基于CLI的交换机上设置主机名/系统名:switch(enable) set system name name-string2.在基于IOS的交换机上设置登录口令:switch(config)# enable password level 1 password在基于CLI的交换机上设置登录口令:switch(enable) set passwordswitch(enable) set enalbepass3.在基于IOS的交换机上设置远程访问:switch(config)# interface vlan 1switch(config-if)# ip address ip-address netmaskswitch(config-if)# ip default-gateway ip-address在基于CLI的交换机上设置远程访问:switch(enable) set interface sc0 ip-address netmask broadcast-addressswitch(enable) set interface sc0 vlanswitch(enable) set ip route default gateway4.在基于IOS的交换机上启用和浏览CDP信息:switch(config-if)# cdp enableswitch(config-if)# no cdp enable为了查看Cisco邻接设备的CDP通告信息:switch# show cdp interface [type modle/port]switch# show cdp neighbors [type module/port] [detail]在基于CLI的交换机上启用和浏览CDP信息:switch(enable) set cdp {enable|disable} module/port为了查看Cisco邻接设备的CDP通告信息:switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail]5.基于IOS的交换机的端口描述:switch(config-if)# description description-string基于CLI的交换机的端口描述:switch(enable)set port name module/number description-string6.在基于IOS的交换机上设置端口速度:switch(config-if)# speed{10|100|auto}在基于CLI的交换机上设置端口速度:switch(enable) set port speed moudle/number {10|100|auto}switch(enable) set port speed moudle/number {4|16|auto}7.在基于IOS的交换机上设置以太网的链路模式:switch(config-if)# duplex {auto|full|half}在基于CLI的交换机上设置以太网的链路模式:switch(enable) set port duplex module/number {full|half}8.在基于IOS的交换机上配置静态VLAN:switch# vlan databaseswitch(vlan)# vlan vlan-num name vlaswitch(vlan)# exitswitch# configure teriminalswitch(config)# interface interface module/numberswitch(config-if)# switchport mode accessswitch(config-if)# switchport access vlan vlan-numswitch(config-if)# end在基于CLI的交换机上配置静态VLAN:switch(enable) set vlan vlan-num [name name]switch(enable) set vlan vlan-num mod-num/port-list9. 在基于IOS的交换机上配置VLAN中继线:switch(config)# interface interface mod/portswitch(config-if)# switchport mode trunkswitch(config-if)# switchport trunk encapsulation {isl|dotlq}switch(config-if)# switchport trunk allowed vlan remove vlan-listswitch(config-if)# switchport trunk allowed vlan add vlan-list在基于CLI的交换机上配置VLAN中继线:switch(enable) set trunk module/port [on|off|desirable|auto|nonegotiate]Vlan-range [isl|dotlq|dotl0|lane|negotiate]10.在基于IOS的交换机上配置VTP管理域:switch# vlan databaseswitch(vlan)# vtp domain domain-name在基于CLI的交换机上配置VTP管理域:switch(enable) set vtp [domain domain-name]11.在基于IOS的交换机上配置VTP 模式:switch# vlan databaseswitch(vlan)# vtp domain domain-nameswitch(vlan)# vtp {sever|cilent|transparent}switch(vlan)# vtp password password在基于CLI的交换机上配置VTP 模式:switch(enable) set vtp [domain domain-name] [mode{ sever|cilent|transparent }][password password]12. 在基于IOS的交换机上配置VTP版本:switch# vlan databaseswitch(vlan)# vtp v2-mode在基于CLI的交换机上配置VTP版本:switch(enable) set vtp v2 enable13. 在基于IOS的交换机上启动VTP剪裁:switch# vlan databaseswitch(vlan)# vtp pruning在基于CL I 的交换机上启动VTP剪裁:switch(enable) set vtp pruning enable14.在基于IOS的交换机上配置以太信道:switch(config-if)# port group group-number [distribution {source|destination}]在基于CLI的交换机上配置以太信道:switch(enable) set port channel moudle/port-range mode{on|off|desirable|auto}15.在基于IOS的交换机上调整根路径成本:switch(config-if)# spanning-tree [vlan vlan-list] cost cost在基于CLI的交换机上调整根路径成本:switch(enable) set spantree portcost moudle/port costswitch(enable) set spantree portvlancost moudle/port [cost cost][vlan-list]16.在基于IOS的交换机上调整端口ID:switch(config-if)# spanning-tree[vlan vlan-list]port-priority port-priority在基于CLI的交换机上调整端口ID:switch(enable) set spantree portpri {mldule/port}priorityswitch(enable) set spantree portvlanpri {module/port}priority [vlans]17. 在基于IOS的交换机上修改STP时钟:switch(config)# spanning-tree [vlan vlan-list] hello-time secondsswitch(config)# spanning-tree [vlan vlan-list] forward-time seconds` switch(config)# spanning-tree [vlan vlan-list] max-age seconds在基于CLI的交换机上修改STP时钟:switch(enable) set spantree hello interval[vlan]switch(enable) set spantree fwddelay delay [vlan]switch(enable) set spantree maxage agingtiame[vlan]18. 在基于IOS的交换机端口上启用或禁用Port Fast 特征:switch(config-if)#spanning-tree portfast在基于CLI的交换机端口上启用或禁用Port Fast 特征:switch(enable) set spantree portfast {module/port}{enable|disable}19. 在基于IOS的交换机端口上启用或禁用UplinkFast 特征:switch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-second]在基于CLI的交换机端口上启用或禁用UplinkFast 特征:switch(enable) set spantree uplinkfast {enable|disable}[rate update-rate] [all-protocols off|on]20. 为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个IP地址,然后使用下列命令: switch(config)# cluster enable cluster-name21. 为了从一条中继链路上删除VLAN,可使用下列命令:switch(enable) clear trunk module/port vlan-range22. 用show vtp domain 显示管理域的VTP参数.23. 用show vtp statistics显示管理域的VTP参数.24. 在Catalyst交换机上定义TrBRF的命令如下:switch(enable) set vlan vlan-name [name name] type trbrf bridge bridge-num[stp {ieee|ibm}]25. 在Catalyst交换机上定义TrCRF的命令如下:switch (enable) set vlan vlan-num [name name] type trcrf{ring hex-ring-num|decring decimal-ring-num} parent vlan-num26. 在创建好TrBRF VLAN之后,就可以给它分配交换机端口.对于以太网交换,可以采用如下命令给VLAN分配端口:switch(enable) set vlan vlan-num mod-num/port-num27. 命令show spantree显示一个交换机端口的STP状态.28. 配置一个ELAN的LES和BUS,可以使用下列命令:ATM (config)# interface atm number.subint multiointATM(config-subif)# lane serber-bus ethernet elan-name29. 配置LECS:ATM(config)# lane database database-nameATM(lane-config-databade)# name elan1-name server-atm-address les1-nsap-addressATM(lane-config-databade)# name elan2-name server-atm-address les2-nsap-addressATM(lane-config-databade)# name …30. 创建完数据库后,必须在主接口上启动LECS.命令如下:ATM(config)# interface atm numberATM(config-if)# lane config database database-nameATM(config-if)# lane config auto-config-atm-address31. 将每个LEC配置到一个不同的ATM子接口上.命令如下:ATM(config)# interface atm number.subint multipointATM(config)# lane client ethernet vlan-num elan-num32. 用show lane server 显示LES的状态.33. 用show lane bus显示bus的状态.34. 用show lane database显示LECS数据库可内容.35. 用show lane client显示LEC的状态.36. 用show module显示已安装的模块列表.37. 用物理接口建立与VLAN的连接:router# configure terminalrouter(config)# interface media module/portrouter(config-if)# description description-stringrouter(config-if)# ip address ip-addr subnet-maskrouter(config-if)# no shutdown38. 用中继链路来建立与VLAN的连接:router(config)# interface module/port.subinterfacerouter(config-ig)# encapsulation[isl|dotlq] vlan-numberrouter(config-if)# ip address ip-address subnet-mask39. 用LANE 来建立与VLAN的连接:router(config)# interface atm module/portrouter(config-if)# no ip addressrouter(config-if)# atm pvc 1 0 5 qsaalrouter(config-if)# atm pvc 2 0 16 ilnirouter(config-if)# interface atm module/port.subinterface multipointrouter(config-if)# ip address ip-address subnet-maskrouter(config-if)# lane client ethernet elan-numrouter(config-if)# interface atm module/port.subinterface multipointrouter(config-if)# ip address ip-address subnet-namerouter(config-if)# lane client ethernet elan-namerouter(config-if)# …40. 为了在路由处理器上进行动态路由配置,可以用下列IOS命令来进行:router(config)# ip routingrouter(config)# router ip-routing-protocolrouter(config-router)# network ip-network-numberrouter(config-router)# network ip-network-number41. 配置默认路由:switch(enable) set ip route default gateway42. 为一个路由处理器分配VLANID,可在接口模式下使用下列命令:router(config)# interface interface numberrouter(config-if)# mls rp vlan-id vlan-id-num43. 在路由处理器启用MLSP:router(config)# mls rp ip44. 为了把一个外置的路由处理器接口和交换机安置在同一个VTP域中:router(config)# interface interface numberrouter(config-if)# mls rp vtp-domain domain-name45. 查看指定的VTP域的信息:router# show mls rp vtp-domain vtp domain name46. 要确定RSM或路由器上的管理接口,可以在接口模式下输入下列命令:router(config-if)#mls rp management-interface47. 要检验MLS-RP的配置情况:router# show mls rp48. 检验特定接口上的MLS配置:router# show mls rp interface interface number49. 为了在MLS-SE上设置流掩码而又不想在任一个路由处理器接口上设置访问列表:set mls flow [destination|destination-source|full]50. 为使MLS和输入访问列表可以兼容,可以在全局模式下使用下列命令:router(config)# mls rp ip input-acl51. 当某个交换机的第3层交换失效时,可在交换机的特权模式下输入下列命令:switch(enable) set mls enable52. 若想改变老化时间的值,可在特权模式下输入以下命令:switch(enable) set mls agingtime agingtime53. 设置快速老化:switch(enable) set mls agingtime fast fastagingtime pkt_threshold54. 确定那些MLS-RP和MLS-SE参与了MLS,可先显示交换机引用列表中的内容再确定:switch(enable) show mls include55. 显示MLS高速缓存记录:switch(enable) show mls entry56. 用命令show in arp显示ARP高速缓存区的内容。57. 要把路由器配置为HSRP备份组的成员,可以在接口配置模式下使用下面的命令:router(config-if)# standby group-number ip ip-address58. 为了使一个路由器重新恢复转发路由器的角色,在接口配置模式下:router(config-if)# standy group-number preempt59. 访问时间和保持时间参数是可配置的:router(config-if)# standy group-number timers hellotime holdtime60. 配置HSRP跟踪:router(config-if)# standy group-number track type-number interface-priority61. 要显示HSRP路由器的状态:router# show standby type-number group brief62. 用命令show ip igmp确定当选的查询器。63. 启动IP组播路由选择:router(config)# ip muticast-routing64. 启动接口上的PIM:dalllasr1>(config-if)# ip pim {dense-mode|sparse-mode|sparse-dense-mode}65. 启动稀疏-稠密模式下的PIM:router# ip multicast-routingrouter# interface type numberrouter# ip pim sparse-dense-mode66. 核实PIM的配置:dallasr1># show ip pim interface[type number] [count]67. 显示PIM邻居:dallasr1># show ip neighbor type number68. 为了配置RP的地址,命令如下:dallasr1># ip pim rp-address ip-address [group-access-list-number][override]69. 选择一个默认的RP:dallasr1># ip pim rp-address通告RP和它所服务的组范围:dallasr1># ip pim send-rp-announce type number scope ttl group-list access-list-number为管理范围组通告RP的地址:dallasr1># ip pim send-rp-announce ethernet0 scope 16 group-list1dallasr1># access-list 1 permit 266.0.0.0 0.255.255.255设定一个RP映像代理:dallasr1># ip pim send-rp-discovery scope ttl核实组到RP的映像:dallasr1># show ip pim rp mappingdallasr1># show ip pim rp [group-name|group-address] [mapping]70. 在路由器接口上用命令ip multicast ttl-threshold ttl-value设定TTL阀值:dallasr1>(config-if)# ip multicast ttl-threshold ttl-value71. 用show ip pim neighbor显示PIM邻居表。72. 显示组播通信路由表中的各条记录:dallasr1>show ip mroute [group-name|group-address][scoure][summary][count][active kbps]73. 要记录一个路由器接受和发送的全部IP组播包: dallasr1> #debug ip mpacket [detail] [access-list][group]
cisco和锐捷的命令基本一样,只是有些功能的实现时的命令不太一样。华为和华三:以前华为老设备和华三的命令一样,但现在的华为的有些命令变了,所以现在算基本一样了。
思科是 show命令的 保存write 华为是display的保存 save配置起来差不多 锐捷没玩过
这几种设备数Cisco和华为的最为流行,它们俩的命令差别不大,你可以从华为的命令开始,然后Cisco,因为华为是中文内核,你看帮助信息也可以看懂,Cisco是英文内核,帮助信息作用就不是很大了,华为的命令跟Cisco的很像,学懂华为的之后再看Cisco就简单的多了,3COM的和锐捷的我接触很少,就不献丑了,希望对楼主有帮助。

本文由 在线网速测试 整理编辑,转载请注明出处。