交换机的端口操作命令.word
- 格式:doc
- 大小:827.50 KB
- 文档页数:75
华为路由器交换机常用命令一、设备管理命令1.登录管理命令- ssh [ip地质] -p [端口号]:通过SSH协议登录设备。
- telnet [ip地质]:通过Telnet协议登录设备。
- logout:退出设备。
2.用户管理命令- display current-configuration:显示当前设备配置信息。
- save:保存当前配置。
- undo save:取消保存的配置。
- super:切换到超级用户模式。
- user-interface console 0:配置控制台终端的参数。
- user-interface vty 0 4:配置远程登录终端的参数。
3.设备操作命令- reboot:重启设备。
- reset saved-configuration:恢复出厂配置。
- display version:显示设备的硬件和软件版本信息。
- display device:显示设备的基本信息。
- display interface[接口名称]:显示指定接口信息。
- display ip routing-table:显示IP路由表信息。
二、网络配置命令1.IP配置命令- interface [接口名称]:进入指定接口。
- ip address [IP地质] [子网掩码]:配置接口IP地质。
- undo ip address:取消接口IP地质配置。
- ip route-static [目标网络] [子网掩码] [下一跳地质]:配置静态路由。
- undo ip route-static [目标网络] [子网掩码] [下一跳地质]:取消静态路由配置。
2.VLAN配置命令- vlan [VLAN ID]:创建指定VLAN。
- quit:退出VLAN配置模式。
- interface vlan [VLAN ID]:进入指定VLAN接口。
- ip address [IP地质] [子网掩码]:为VLAN接口配置IP地质。
浪潮以太网交换机命令手册系统分册前言 (13)1配置基础命令 (16)1.1访问命令行接口命令 (16)1.1.1clearscrn (16)1.1.2telnet (16)1.1.3terminal length (17)1.1.4terminal monitor (17)1.2使用命令行接口命令 (18)1.2.1config (18)1.2.2exit (19)1.2.3help (20)1.2.4history (21)1.2.5interface (22)1.3基本配置命令 (25)1.3.1banner motd (25)1.3.2clock set (25)1.3.3timezone (26)1.3.4disable (27)1.3.5enable (28)1.3.6enable password (28)1.3.7hostname (29)1.3.8line (30)1.3.9login (30)1.3.10【缺省情况】 (31)1.3.11password (31)1.3.12show privilege (32)1.3.13timeout (32)1.3.14username privilege (33)1.3.15who (33)1.3.16max-session (34)2系统管理命令 (36)2.1文件管理命令 (36)2.1.1COPY (36)2.1.2delete (37)2.1.3dir (37)2.1.4erase (37)2.1.5hash (38)2.1.6reload (39)2.1.7rename (39)2.1.8show running-config (40)2.1.9show startup-config (42)2.1.10verify (44)2.1.11write (45)2.2系统维护命令 (45)2.2.4logging cli (48)2.2.5logging facility (49)2.2.6logging filed (49)2.2.7logging monitor (50)2.2.8logging on (51)2.2.9logging rate-limit (51)2.2.10logging trap (52)2.2.11ping (52)2.2.12service sequence-numbers (54)2.2.13service timestamps (55)2.2.14show debugging (56)2.2.15show clock (56)2.2.16show logging (56)2.2.17show logging filed (57)2.2.18show memory (58)2.2.19show slab (59)2.2.20show process (59)2.2.21show version (60)2.2.22show chassis (60)2.2.23traceroute (61)2.3SNMP命令 (62)2.3.1debug snmp (62)2.3.2set snmp access (63)2.3.3set snmp context (63)2.3.4set snmp group (64)2.3.5set snmp ip-filter enable (64)2.3.6set snmp ip-filter host (65)2.3.7set snmp notify enable (66)2.3.8set snmp notify trap (66)2.3.9set snmp sys-info (67)2.3.10set snmp user (67)2.3.11set snmp view (68)2.3.12show snmp (69)2.3.13show snmp access (70)2.3.14show snmp community (71)2.3.15show snmp context (72)2.3.16show snmp engineID (72)2.3.17show snmp groups (72)2.3.18show snmp ip-filter (73)2.3.19show snmp notify-target (74)2.3.20show snmp sys-info (74)2.3.21show snmp trap-target (75)2.3.22show snmp user (75)2.3.26snmp-server traps enable (78)2.3.27snmp-server traps host (78)2.3.28snmp-server trap-source loopback (79)3接口命令 (80)3.1概述部分命令 (80)3.1.1rate-limit (80)3.1.2clear counters (80)3.1.3description (81)3.1.4show interfaces (81)3.1.5show rate-limit (83)3.1.6shutdown (84)3.1.7flow-control (85)3.2以太网接口配置命令 (85)3.2.1duplex (85)3.2.2medium (86)3.2.3speed (87)3.2.4auto-negotiation (87)3.3Loopback接口配置命令 (88)3.3.1interface loopback (88)4IP寻址与服务命令 (89)4.1IP基本配置命令 (89)4.1.1clear host (89)4.1.2ip address (89)4.1.3ip unnumbered (90)4.1.4ip host (90)4.1.5show hosts (91)4.1.6show ip route (92)4.1.7show ip route summary (93)4.1.8show ip-statistics (94)4.1.9show net-memory (94)4.2ARP配置命令 (95)4.2.1arp (95)4.2.2arpreq src-ip (96)4.2.3arpreq period time (97)4.2.4clear arp-cache (97)4.2.5ip arp time-out (98)4.2.6ip proxy-arp (98)4.2.7show arp (99)4.2.8show ip arp (100)4.3DHCP配置命令 (101)4.3.1DHCP服务端命令 (101)4.3.2DHCP中继命令 (113)4.3.3DHCP其他命令 (116)4.4.3ip dns transparent-proxy enable (118)4.4.4ip domain lookup (119)4.4.5ip domain name (119)4.4.6ip domain retry (120)4.4.7ip domain timeout (121)4.4.8ip name-server (121)4.4.9show ip dns config (122)4.4.10show ip dns querying (123)4.4.11show ip dns statistics (123)4.4.12debug ipcls debug-level dns (124)4.5IP SLA配置命令 (124)4.5.1IP SLA ENTRY的配置命令 (124)4.5.2IP SLA RESPONDER的配置命令 (128)4.5.3IP SLA SCHEDULE的配置命令 (129)4.5.4IP SLA UDP-ECHO的配置命令 (132)4.5.5IP SLA UDP-JITTER的配置命令 (137)4.5.6IP SLA其他命令 (143)5IP路由协议命令 (145)5.1静态路由命令 (145)5.1.1ip default-network (145)5.1.2ip route (145)5.1.3ip route vrf (146)5.2RIP路由协议命令 (147)5.2.1debug ip rip (147)5.2.2default-metric (147)5.2.3ip rip poison-reverse (148)5.2.4ip rip authentication-key (148)5.2.5ip rip message-digest-key (149)5.2.6ip rip receive version (150)5.2.7ip rip send version (151)5.2.8ip rip split-horizon (151)5.2.9network (152)5.2.10passive-interface (153)5.2.11redistribute (153)5.2.12router rip (154)5.2.13show ip rip (155)5.2.14timer basic (156)5.2.15version (156)5.3OSPF路由协议命令 (157)5.3.1area authentication (157)5.3.2area default-cost (158)5.3.3area filter-list prefix (159)5.3.4area nssa (159)5.3.8area virtual-link (162)5.3.9auto-cost reference-bandwidth (164)5.3.10clear ip ospf (165)5.3.11debug ip ospf (165)5.3.12default-information (166)5.3.13default-metric (167)5.3.14distance (168)5.3.15distance ospf (168)5.3.16distribute-list (169)5.3.17domain-id (170)5.3.18domain-tag (171)5.3.19fast-spf-calculate (171)5.3.20graceful-restart (172)5.3.21graceful-restart help (173)5.3.22ip ospf authentication (173)5.3.23ip ospf authentication-key (174)5.3.24ip ospf cost (175)5.3.25ip ospf database-filter (175)5.3.26ip ospf demand-circuit (176)5.3.27ip ospf dead-interval (176)5.3.28ip ospf hello-interval (177)5.3.29ip ospf message-digest-key (178)5.3.30ip ospf mtu-ignore (179)5.3.31ip ospf priority (179)5.3.32ip ospf network (180)5.3.33ip ospf retransmit-interval (181)5.3.34ip ospf transmit-delay (182)5.3.35log-adjacency-changes (182)5.3.36max-metric (183)5.3.37mpls traffic-eng area (184)5.3.38mpls traffic-eng router-id (184)5.3.39neighbor (185)5.3.40network (186)5.3.41no area (187)5.3.42passive-interface (187)5.3.43max-lsa (188)5.3.44redistribute (188)5.3.45router ospf (190)5.3.46router-id (191)5.3.47show ip ospf (192)5.3.48show ip ospf border-routers (193)5.3.49show ip ospf database (194)5.3.50show ip ospf interface (195)5.3.54timers spf (198)5.3.55topology (199)5.3.56vpn-pe-disable (200)6组播命令 (201)6.1组播公共命令 (201)6.1.1debug ip mpacket (201)6.1.2debug ip mrouting (201)6.1.3ip multicast-routing (202)6.1.4ip multicast boundary (203)6.1.5ip multicast route-limit (203)6.1.6ip multicast rpf interval (204)6.1.7show ip mroute (205)6.2IGMP命令 (205)6.2.1clear ip igmp group (205)6.2.2debug ip igmp (206)6.2.3ip igmp access-group (207)6.2.4ip igmp compatible-v2-report (208)6.2.5ip igmp helper-address (208)6.2.6ip igmp immediate-leave (209)6.2.7ip igmp join-group (210)6.2.8ip igmp last-member-query-count (211)6.2.9ip igmp last-member-query-interval (211)6.2.10ip igmp limit (212)6.2.11ip igmp mroute-proxy (213)6.2.12ip igmp proxy-service (214)6.2.13ip igmp query-interval (214)6.2.14ip igmp query-max-response-time (215)6.2.15ip igmp querier-timeout (216)6.2.16ip igmp version (217)6.2.17show ip igmp groups (217)6.2.18show ip igmp groups count (218)6.2.19show ip igmp interface (218)7IGMP SNOOPING命令 (220)7.1IGMP SNOOPING命令 (220)7.1.1ip igmp snooping vlan immediate-leave (220)7.1.2ip igmp snooping querier (220)7.1.3ip igmp snooping vlan query-interval (221)7.1.4ip igmp snooping vlan last-member-query-interval (221)7.1.5ip igmp snooping vlan mrouter (222)7.1.6show ip igmp snooping mrouter (222)7.1.7show ip igmp snooping vlan (223)7.1.8debug ip igmp snooping (223)7.1.9clear ip igmp snooping (224)8.18.1访问控制列表命令 (225)8.1.1absolute (225)8.1.2access-list(标准访问列表) (225)8.1.3access-list(扩展访问列表) (227)8.1.4deny(标准访问列表) (229)8.1.5deny(扩展访问列表) (229)8.1.6ip access-group (231)8.1.7ip local access-group (231)8.1.8ip access-list (232)8.1.9resequence access-list (233)8.1.10no sequence (234)8.1.11periodic (234)8.1.12permit(标准访问列表) (235)8.1.13permit(扩展访问列表) (236)8.1.14show ip access-list (237)8.1.15time-range (238)8.1.16ipv6 access-list (238)8.1.17deny/permit(ipv6) (239)8.1.18no sequence (240)8.1.19resequence access-list ipv6 (240)8.1.20ipv6 access-group (241)8.1.21show ipv6 access-list (242)9QoS命令 (243)9.1分类配置命令 (243)9.1.1class (243)9.1.2class class-default (243)9.1.3class-map (244)9.1.4match access-group (245)9.1.5match any (245)9.1.6match input-interface (246)9.1.7match ip dscp (246)9.1.8match ip precedence (247)9.1.9match protocol (248)9.1.10policy-map (249)9.1.11show class-map (249)9.1.12show policy-map (250)9.2模块化QoS命令行接口命令 (250)9.2.1action (250)9.2.2lls (252)9.2.3nls (252)9.2.4pbs (253)9.2.5police (254)9.2.6queue-limit (255)9.2.7service-policy input/output (256)9.2.8set ip dscp (257)9.3三层交换平台流队列管理命令 (259)9.3.1queue-map (259)9.3.2queue (260)9.3.3service-queue-map (260)9.3.4queue-set (261)9.3.5queue (261)9.3.6service-queue-set (262)9.4本地流量管理local-traffic命令 (263)9.4.1show local-traffic detail (263)10Trunk命令 (264)10.1debug switch port-trunk (264)10.2description (264)10.3port (264)10.4port-trunk (265)10.5interface port-trunk (266)10.6show port-trunk (266)10.7load-balance (267)11动态链路聚合控制协议命令 (268)11.1动态链路聚合控制协议命令 (268)11.1.1LACP (268)11.1.2lacp group-id port (268)11.1.3no lacp group-id port (269)11.1.4no lacp group-id (269)11.1.5lacp load-balance (270)11.1.6show lacp (270)11.2配置lacp group switchport命令 (271)11.2.1lacp switchport pvid (271)11.2.2lacp switchport priority (271)11.2.3lacp switchport vlan-filtering (272)11.2.4lacp switchport acceptable-frame-types (273)11.3配置lacp group mstp命令 (273)11.3.1 1 lacp group-id mstp (273)11.3.2lacp group-id mstp bpdu guard (274)11.3.3lacp group-id mstp loop guard (274)11.3.4lacp group-id mstp root guard (275)11.3.5lacp group-id mstp bpdu filter (275)11.3.6lacp group-id mstp bpdu skewing (276)11.3.7lacp group-id mstp tc guard (276)11.3.8lacp group-id mstp port-priority (277)11.3.9lacp group-id mstp edge (277)11.3.10lacp group-id mstp cost (278)12VLAN命令 (279)12.1VLAN (279)12.1.1debug switch vlan (279)12.1.4show vlan (280)12.1.5switchport acceptable-frame-types (281)12.1.6switchport access vlan (281)12.1.7switchport priority (282)12.1.8switchport pvid (282)12.1.9switchport vlan-filtering (283)12.1.10trunk (283)12.1.11vlan (284)12.1.12vlan-create (284)12.1.13vlan-destroy (285)12.1.14pvid (285)12.2VLAN间路由 (286)12.2.1interface vlan (286)12.2.2show interfaces vlan (286)12.3Super VLAN (287)12.3.1interface supervlan (287)12.3.2show supervlan (287)12.3.3subvlan (288)12.3.4supervlan (288)12.3.5supervlan arp proxy (289)13生成树协议命令 (290)13.1MSTP (290)13.1.1mstp (290)13.1.2mstp cost (290)13.1.3mstp edge (291)13.1.4mstp forward-time (292)13.1.5mstp max-age (292)13.1.6mstp hello time (293)13.1.7mstp mcheck (294)13.1.8mstp point-to-point (294)13.1.9mstp port-priority (295)13.1.10mstp priority (295)13.1.11mstp name (296)13.1.12mstp revision (297)13.1.13mstp instance (297)13.1.14mstp diameter (298)13.1.15stp max-hops (299)13.1.16debug switch mstp (299)13.1.17mstp digest-snooping (300)13.1.18show mstp (300)13.1.19show mstp region (301)13.1.20show mstp detail (302)13.1.21show mstp interface (303)14MSTP防护命令 (305)14.1.3mstp root guard (306)14.1.4mstp bpdu filter (306)14.1.5mstp bpdu skewing (306)14.1.6mstp tc guard (307)14.1.7global mstp bpdu guard (307)14.1.8global mstp bpdu filter (308)14.1.9global mstp bpdu skewing (308)14.1.10global mstp tc guard (309)14.1.11global mstp err-disable time (309)14.1.12global mstp tc-protection (310)15MAC配置命令 (311)15.1基本MAC配置 (311)15.1.1mac-address (311)15.1.2mac-address timer age-timer (311)15.1.3show mac-address (312)16交换机控制命令 (313)16.1风暴控制 (313)16.1.1show stormcontrol (313)16.1.2stormcontrol (313)16.2端口镜像命令 (314)16.2.1erspan mirror (314)16.2.2erspan enable (314)16.2.3source-port mirror-type (315)16.2.4dst-mac XX dst-ip XX (315)16.2.5src-mac XX src-ip XX (316)16.2.6tos ttl (316)16.2.7tag-header tpid (317)16.2.8untag-payload (317)16.3mac access-list命令 (317)16.3.1deny | permit (318)16.3.2mac access-group (319)16.3.3mac access-list (319)16.3.4mac access-list resequence (320)16.3.5no sequence (320)16.3.6show mac access-list (321)16.4网络接入控制(802.1x)配置命令 (321)16.4.1802.1x使能 (321)16.4.2802.1x macbind (322)16.4.3802.1x 重认证 (322)16.4.4802.1x retry (323)16.4.5802.1x timer (324)16.4.6802.1x port-control (325)16.4.7802.1x accounting (325)16.4.11802.1x 接口用户信息 (327)16.4.12802.1x多用户 (327)16.5802.1x keepalive (328)16.5.1使能/关闭keepalive (328)16.5.2配置发送keepalive间隔时间 (328)16.5.3配置发送keepalive超时重传次数 (329)16.6802.1x accounting update (329)16.6.1使能/关闭 (329)16.6.2配置发送update间隔时间 (330)16.6.3配置发送update超时重传次数 (330)16.7RADIUS配置命令 (331)16.7.1Radius-server (331)17PVLAN (332)17.1pvlan (332)17.1.1pvlan-type (332)17.1.2pvlan map (332)17.1.3show pvlan map (333)18Rmon命令 (334)18.1RMON (334)18.1.1rmon enable (334)18.1.2rmon event (334)18.1.3rmon alarm (335)18.1.4rmon statistics (336)18.1.5rmon history (337)18.1.6show rmon event (337)18.1.7show rmon alarm (338)18.1.8show rmon statistics (338)18.1.9show rmon history (339)18.1.10show rmon log (339)19安全防护命令 (341)19.1dhcp snoop命令 (341)19.1.1ip dhcp snooping (341)19.1.2ip dhcp snooping trust (341)19.1.3Show dhcpsnooping database (341)19.2ipv6 dhcp snoop命令 (342)19.2.1ipv6 dhcp snooping (342)19.2.2ipv6 dhcp snooping trust (342)19.2.3show ipv6 dhcpsnoop database (342)20动态ARP防护 (344)20.1动态ARP检测命令 (344)20.1.1arp inspection (344)20.1.2ip (344)20.1.3arp auto-bind enable (344)20.1.7show ip arp inspection (346)21ND snoop邻居发现检测 (347)21.1邻居发现检测命令 (347)21.1.1ipv6 nd-snoop enable (347)21.1.2ipv6 (347)21.1.3show ipv6 nd-snoop (347)22环回检测(loopdetection) (349)22.1debug switch loopdetection (349)22.2loopdetection使能 (349)22.3loopdetection keepalive (350)22.4Loopdetection可控制shutdown (350)22.5Loopdetection消息老化时间 (351)22.6show loop-detection (351)22.7show loop-detection msg (351)23IP、MAC绑定 (353)23.1使能/关闭ip mac bind (353)23.2配置ip mac bind关系 (353)23.3批量删除ip mac bind关系 (353)23.4查看ip mac bind关系及状态 (354)24GVRP (355)24.1gvrp enable (355)24.2gvrp disable (355)24.3gvrp timer (355)24.4gvrp dymanic-vlan-creation enable (356)24.5gvrp dymanic-vlan-creation disable (356)24.6gvrp registration (357)24.7gvrp applicant (357)24.8show gvrp configure (358)24.9show gvrp status (358)24.10show vlan dynamic (359)24.11VRRP配置命令 (360)24.11.1ip vrrp命令 (360)前言概述本文档针对浪潮以太网交换机的配置基础命令、系统管理命令、NetFlow命令进行了介绍。
第1章网络设备调试培训目标:通过学习本章内容,学员可以了解数据调试手段。
第一节东土交换机配置全程指导一、常见交换机配置(一)配置的内容常见交换机配置的内容见表1-1:(二)东土交换机菜单结构无论哪种登录方式,菜单结构都差不多,不同版本可能有增减项或菜单结构调整。
东土交换有6个主菜单,分别为设备状态、设备基础配置、设备高级配置、设备管理、保存所有修改、恢复默认配置,见图1—1.图1-1 东土交换机主菜单各主菜单功能和所含的子菜单见表1-2表1—2 东土交换机常用功能菜单介绍主菜单子菜单用途备注设备状态交换机基本运行状态信息展示基础信息交换机设备mac地址、设备序列号、IP地址掩码网关、设备名称、软件版本等多交换机级联时,用于确认连接交换机是否为目的交换机端口状态各网口管理状态、操作状态、连接状态及网络协商状态端口流量各网口流量统计、错误包统计、错误包数量统计有SV时,可查看流量是否超标(40%或50%)系统运行信息设备运行时间、CPU内存使用率、设备温度、设备系统时间设备基础配置交换机简单应用功能配置IP地址配置交换机IP地址、掩码、网关(三)登录方式常见交换机登录方式见表1—3:表1-3 常见交换机登录方式(四)配置前的准备工作交换机配置需要准备的软件工具,见表1—4:表1—4 常见交换机登录方式IE浏览器HTTP访问配置交换机的工具其他浏览器一般都做了一些功能优化和裁剪。
FTP(或TFTP)服务器端工具TELNET或HTTP访问备份还原配置ftp服务器端工具推荐wftpd32;tftp服务器端工具推荐tftpd32或思科cisco tftp server。
东土需要的是ftp服务器端工具。
Java最新版本HTTP访问配置交换机的辅助工具个别厂家需要,东土不需要二、http网页登录配置东土交换机(一)IP地址获取配置前,需要首先获取交换机的IP地址和mac地址。
初始IP地址和Mac地址可通过交换机上面板右侧底线处标签获取.如果调试过的设备,其初始IP地址可能已被修改,可通过公司rsm系统备份获取IP地址。
思科交换机管理操作文档一.使用console口本地管理交换机:首先使用console线缆连接交换机的console口:使用SecureCRT(SecureCRT.zip)软件打开,软件为绿色版,解压出来打开“SecureCRT.exe” 即可。
建立新连接:点击“快速连接”(Alt+q),弹出如下窗口,协议:选择Serial端口:根据实际端口选择,可在计算机管理设备管理器查看波特率:9600其他:按图中默认即可然后点击连接。
当用console口连接时,回车出现以下信息(也可能直接跳过这步):JXKFQ-6504 con0 is now availablePress RETURN to get started.接下来按回车键【Enter】,看到如下命令行:JXKFQ-6504>输入命令:enable然后按回车键,如下:JXKFQ-6504>enablePassword:此时输入用户密码:cisco如下:JXKFQ-6504#二.使用telnet远程管理交换机:使用局域网络连接交换机,创建Telnet会话:点击“快速连接”(Alt+q),弹出如下窗口,协议:Telnet主机名:输入交换机的管理地址其他:如上图默认即可然后点击连接。
1y18w: %IP-4-DUPADDR: Duplicate address 10.120.214.253 on Vlan213, sourced by 00ff.007b.c85d247Trying 10.120.215.247 ... OpenUser Access VerificationPassword:输入交换机Telnet密码:ciscoJXKFQ-3550-1>enablePassword:输入交换机管理密码:ciscoJXKFQ-3550-1#注:各交换机密码都为cisco三.交换机配置解析:1.配置模板:conf tenab sec ciscohostna JXKFQ-3550-1vtp mode transparentvlan 213no shint vlan 213ip add 10.120.215.247 255.255.255.0no shexitint ran f0/1 - 24swit mo accswit acc vlan 213int ran g0/1 - 2swit mo accswit acc vlan 213exitline vty 0 4pass ciscologinexitservice password-enip default-g 10.120.215.2532.操作命令解析:常用命令示例:1.关闭f0/1端口:Switch>Switch>enSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#int f0/1Switch(config-if)#shutdown%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down2.启用f0/1端口:Switch>enSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#int f0/1Switch(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up3.更改端口速率(一般默认auto即可无需更改):Switch#conf tEnter configuration commands, one per line. End with CNTL/Z. Switch(config)#int f0/1Switch(config-if)#spSwitch(config-if)#speeSwitch(config-if)#speed ?10 Force 10 Mbps operation100 Force 100 Mbps operationauto Enable AUTO speed configurationSwitch(config-if)#speed 10Switch(config-if)#4.查看mac地址表:sh mac-address-table在全局配置模式下Switch(config)#查看配置时,需要加一个do 命令,例如:do sh mac-address-table四.交换机常用命令注释:交换机的命令行操作模式主要包括:用户模式Switch>特权模式Switch#全局配置模式Switch(config)#端口模式Switch(config-if)#进入特权模式(Switch>en)进入全局配置模式(Switch#conf t)进入交换机端口视图模式(Switch(config)#int f0/1)返回到上级模式(exit)从全局以下模式返回到特权模式(end)帮助信息(如? 、co?、copy?)命令简写(如conf t)命令自动补全(Tab键)快捷键(ctrl+c 中断测试,ctrl+z 退回到特权视图)Reload重启。
目录第1章端口配置命令 (1)1.1 以太网端口配置命令 (1)1.1.1 bandwidth (1)1.1.2 combo-forced-mode (1)1.1.3 clear counters (2)1.1.4 flow control (3)1.1.5 interface ethernet (3)1.1.6 loopback (3)1.1.7 mdi (4)1.1.8 name (4)1.1.9 negotiation (5)1.1.10 rate-suppression (5)1.1.11 show interface (6)1.1.12 shutdown (10)1.1.13 speed-duplex (10)第2章端口环路检测功能命令 (12)2.1 loopback-detection control (12)2.2 loopback-detection special-vlan (12)2.3 loopback-detection interval-time (13)2.4 show loopback-detection (13)2.5 debug loopback-detection (14)第3章Port Channel配置命令 (15)3.1 debug lacp (15)3.2 port-group (15)3.3 port-group mode (16)3.4 interface port-channel (16)3.5 show port-group (17)第4章JUMBO配置命令 (21)4.1 jumbo enable (21)第1章端口配置命令1.1 以太网端口配置命令1.1.1 bandwidth命令:bandwidth control <bandwidth> [both | receive | transmit]no bandwidth control功能:打开端口的带宽限制功能;本命令的no操作为关闭端口的带宽限制功能。
H3C/HuaWei/3Com交换机端口汇聚配置指南目录第1章端口汇聚配置... 1-11.1 端口汇聚简介.. 1-11.1.1 端口汇聚概述.. 1-11.1.2 LACP协议简介.. 1-11.1.3 操作Key. 1-21.1.4 手工汇聚.. 1-21.1.5 静态LACP汇聚.. 1-31.1.6 动态LACP汇聚.. 1-41.1.7 端口汇聚组的类型.. 1-51.2 配置端口汇聚.. 1-61.2.1 配置手工汇聚组.. 1-61.2.2 配置静态LACP汇聚组.. 1-71.2.3 配置动态LACP汇聚组.. 1-81.3 端口汇聚配置显示与维护.. 1-91.4 以太网端口汇聚配置举例.. 1-9第1章端口汇聚配置1.1 端口汇聚简介1.1.1 端口汇聚概述端口汇聚是将多个物理以太网端口汇聚在一起形成一个逻辑上的汇聚组,使用汇聚服务的上层实体把同一汇聚组内的多条物理链路视为一条逻辑链路。
端口汇聚可以实现出/入负荷在汇聚组中各个成员端口之间分担,以增加带宽。
同时,同一汇聚组的各个成员端口之间彼此动态备份,提高了连接可靠性。
按照汇聚方式的不同,端口汇聚可以分为手工汇聚、静态LACP汇聚和动态LACP汇聚。
按照汇聚组类型的不同,端口汇聚组可以分为负载分担汇聚组和非负载分担汇聚组。
同一个汇聚组中端口的基本配置必须保持一致,基本配置主要包括STP、QoS、VLAN、端口属性等相关配置。
l STP配置包括:端口的STP使能/关闭、与端口相连的链路属性(如点对点或非点对点)、STP优先级、STP开销、STP标准报文格式、报文发送速率限制、是否环路保护、是否根保护、是否为边缘端口等。
l QoS配置包括:流量限速、优先级标记、缺省的802.1p优先级、带宽保证、拥塞避免、流重定向、流量统计等。
l VLAN配置包括:端口上允许通过的VLAN、端口缺省VLAN ID。
l 端口属性配置包括:端口的速率、双工模式、链路类型(即Trunk、Hybrid、Access类型)。
华为交换机基本配置命令详解1、配置文件相关命令[Quidway]display current-configuration 显示当前生效的配置[Quidway]display saved-configuration显示flash 中配置文件,即下次上电启动时所用的配置文件reset saved-configuration 檫除旧的配置文件reboot 交换机重启display version 显示系统版本信息2、基本配置[Quidway]super password 修改特权用户密码[Quidway]sysname 交换机命名[Quidway]interface ethernet 1/0/1 进入接口视图[Quidway]interface vlan 1 进入接口视图[Quidway-Vlan-interfacex]ip address 10.1.1.11 255.255.0.0 配置VLAN 的IP 地址[Quidway]ip route-static 0.0.0.0 0.0.0.0 10.1.1.1 静态路由=网关3、telnet 配置[Quidway]user-interface vty 0 4 进入虚拟终端[S3026-ui-vty0-4]authentication-mode password 设置口令模式[S3026-ui-vty0-4]set authentication-mode password simple xmws123 设置口令[S3026-ui-vty0-4]user privilege level 3 用户级别4、端口配置[Quidway-Ethernet1/0/1]duplex {half|full|auto} 配置端口工作状态[Quidway-Ethernet1/0/1]speed {10|100|auto} 配置端口工作速率[Quidway-Ethernet1/0/1]flow-control 配置端口流控[Quidway-Ethernet1/0/1]mdi {across|auto|normal} 配置端口平接扭接[Quidway-Ethernet1/0/1]port link-type {trunk|access|hybrid} 设置端口工作模式[Quidway-Ethernet1/0/1]undo shutdown 激活端口[Quidway-Ethernet1/0/2]quit 退出系统视图5、链路聚合配置[DeviceA] link-aggregation group 1 mode manual 创建手工聚合组1[Qw_A] interface ethernet 1/0/1 将以太网端口Ethernet1/0/1 加入聚合组1 [Qw_A-Ethernet1/0/1] port link-aggregation group 1[Qw_A-Ethernet1/0/1] interface ethernet 1/0/2 将以太网端口Ethernet1/0/1 加入聚合组1[Qw_A-Ethernet1/0/2] port link-aggregation group 1[Qw_A] link-aggregation group 1 service-type tunnel # 在手工聚合组的基础上创建 t unnel 业务环回组。
交换机的端⼝操作命令.word⽬录第1章端⼝配置命令..................................................... 1-11.1 以太⽹端⼝配置命令 ........................................................................ 1-11.1.1 bandwidth ................................................................................................ 1-11.1.2 clear counters interface ......................................................................... 1-11.1.3 description ............................................................................................... 1-21.1.4 flow control .............................................................................................. 1-21.1.5 interface ethernet .................................................................................... 1-21.1.6 loopback ................................................................................................... 1-31.1.7 mdi ............................................................................................................ 1-31.1.8 media-type ............................................................................................... 1-31.1.9 negotiation ............................................................................................... 1-41.1.10 port-rate-statistics interval ................................................................... 1-41.1.11 port-scan-mode ..................................................................................... 1-51.1.12 port-status query interval ..................................................................... 1-51.1.13 rate-violatoin .......................................................................................... 1-51.1.14 rate-violation control ............................................................................ 1-61.1.15 remote-statistics interval ..................................................................... 1-61.1.16 show interface ....................................................................................... 1-71.1.17 shutdown .............................................................................................1-101.1.18 speed-duplex ....................................................................................... 1-111.1.19 storm-control ....................................................................................... 1-111.1.20 virtual-cable-test .................................................................................1-121.1.21 switchport discard packet ..................................................................1-131.1.22 switchport flood-control .....................................................................1-131.2 ⽆线端⼝配置 ................................................................................. 1-141.2.1 combo-forced-mode .............................................................................1-141.2.2 name .......................................................................................................1-141.2.3 rate-suppression ...................................................................................1-15第2章端⼝环路检测功能命令...................................... 2-12.1 debug loopback-detection ............................................................. 2-12.2 loopback-detection control ............................................................ 2-12.3 loopback-detection control-recovery timeout .............................. 2-12.4 loopback-detection interval-time................................................... 2-22.5 loopback-detection specified-vlan ................................................ 2-22.6 show loopback-detection ............................................................... 2-3第3章端⼝隔离功能配置命令 ...................................... 3-13.1 isolate-port group ........................................................................... 3-13.2 isolate-port group switchport interface ........................................ 3-13.3 isolate-port apply ............................................................................ 3-23.4 show isolate-port group ................................................................. 3-2第4章ULDP命令 ........................................................ 4-14.1 debug uldp ...................................................................................... 4-14.2 debug uldp error ............................................................................. 4-14.3 debug uldp event ............................................................................ 4-14.4 debug uldp fsm interface ethernet ................................................ 4-24.5 debug uldp interface ethernet ....................................................... 4-24.6 debug uldp packet .......................................................................... 4-24.7 uldp aggressive-mode .................................................................... 4-34.8 uldp enable ...................................................................................... 4-34.9 uldp disable ..................................................................................... 4-34.10 uldp hello-interval ......................................................................... 4-34.11 uldp manual-shutdown ................................................................. 4-44.12 uldp recovery-time ........................................................................ 4-44.13 uldp reset ....................................................................................... 4-44.14 show uldp ...................................................................................... 4-5第5章LLDP功能命令.................................................. 5-15.1 clear lldp remote-table .................................................................... 5-15.2 debug lldp ........................................................................................ 5-15.3 debug lldp packets ......................................................................... 5-15.4 lldp enable ....................................................................................... 5-25.5 lldp enable(端⼝)......................................................................... 5-25.6 lldp mode ......................................................................................... 5-25.7 lldp msgTxHold ............................................................................... 5-35.8 lldp neighbors max-num ................................................................ 5-35.9 lldp notification interval ................................................................. 5-35.10 lldp tooManyNeighbors ................................................................ 5-45.11 lldp transmit delay ........................................................................ 5-45.12 lldp transmit optional tlv .............................................................. 5-45.13 lldp trap .......................................................................................... 5-55.14 lldp tx-interval ............................................................................... 5-55.17 show lldp interface ethernet ........................................................ 5-65.18 show lldp neighbors interface ethernet ...................................... 5-75.19 show lldp traffic ............................................................................ 5-7第6章Port Channel配置命令..................................... 6-16.1 debug lacp ....................................................................................... 6-16.2 debug port-channel ........................................................................ 6-16.3 interface port-channel .................................................................... 6-16.4 lacp port-priority ............................................................................. 6-26.5 lacp system-priority ........................................................................ 6-26.6 lacp timeout .................................................................................... 6-26.7 load-balance .................................................................................... 6-36.8 port-group ....................................................................................... 6-36.9 port-group mode ............................................................................. 6-46.10 show port-group ........................................................................... 6-4第7章MTU配置命令 ................................................... 7-17.1 mtu ................................................................................................... 7-1第8章EFM OAM配置命令.......................................... 8-18.1 clear ethernet-oam .......................................................................... 8-18.2 debug ethernet-oam error .............................................................. 8-18.3 debug ethernet-oam fsm ................................................................ 8-18.4 debug ethernet-oam packet ........................................................... 8-28.5 debug ethernet-oam timer ............................................................. 8-28.6 ethernet-oam ................................................................................... 8-28.7 ethernet-oam errored-frame threshold high ................................. 8-38.8 ethernet-oam errored-frame threshold low .................................. 8-38.9 ethernet-oam errored-frame window ............................................ 8-38.10 ethernet-oam errored-frame-period threshold high ................... 8-48.11 ethernet-oam errored-frame-period threshold low .................... 8-48.12 ethernet-oam errored-frame-period window .............................. 8-48.13 ethernet-oam errored-frame-seconds threshold high ............... 8-58.14 ethernet-oam errored-frame-seconds threshold low ................. 8-58.15 ethernet-oam errored-frame-seconds window ........................... 8-58.16 ethernet-oam errored-symbol-period threshold high ................ 8-68.17 ethernet-oam errored-symbol-period threshold low ................. 8-68.18 ethernet-oam errored-symbol-period window............................ 8-68.19 ethernet-oam link-monitor ........................................................... 8-78.22 ethernet-oam remote-failure ........................................................ 8-88.23 ethernet-oam remote-loopback ................................................... 8-88.24 ethernet-oam remote-loopback supported ................................. 8-98.25 ethernet-oam timeout ................................................................... 8-98.26 show ethernet-oam ....................................................................... 8-98.27 show ethernet-oam events ......................................................... 8-138.28 show ethernet-oam link-events configuration ......................... 8-148.29 show ethernet-oam loopback status ......................................... 8-15第9章DDM命令.......................................................... 9-19.1 clear transceiver threshold-violation ............................................ 9-19.2 debug transceiver ........................................................................... 9-19.3 show transceiver ............................................................................ 9-19.4 show transceiver threshold-violation ........................................... 9-29.5 transceiver-monitoring ................................................................... 9-29.6 transceiver-monitoring interval ..................................................... 9-39.7 transceiver threshold ..................................................................... 9-3第10章LLDP-MED命令............................................ 10-110.1 civic location ............................................................................... 10-110.2 {description-language | province-state | city | county | street |locationNum | location | floor | room | postal | otherInfo} ............... 10-110.3 ecs location ................................................................................. 10-210.4 lldp med fast count ..................................................................... 10-210.5 lldp med trap ............................................................................... 10-210.6 lldp transmit med tlv all .............................................................. 10-310.7 lldp transmit med tlv capability ................................................. 10-310.8 lldp transmit med tlv extendPoe ................................................ 10-410.9 lldp transmit med tlv inventory .................................................. 10-410.10 lldp transmit med tlv networkPolicy........................................ 10-410.11 network policy ........................................................................... 10-510.12 show lldp ................................................................................... 10-610.13 show lldp [interface ethernet ] ............................... 10-610.14 show lldp neighbors ................................................................. 10-7第11章bpdu-tunnel命令.......................................... 11-111.1 bpdu-tunnel dmac ....................................................................... 11-111.2 bpdu-tunnel stp ........................................................................... 11-111.5 bpdu-tunnel lacp ......................................................................... 11-211.6 bpdu-tunnel dot1x ....................................................................... 11-2第12章PORT SECURITY命令................................. 12-112.1 clear port-security ...................................................................... 12-112.2 show port-security ...................................................................... 12-112.3 switchport port-security ............................................................. 12-112.4 switchport port-security aging .................................................. 12-212.5 switchport port-security mac-address ...................................... 12-212.6 switchport port-security mac-address sticky .......................... 12-212.7 switchport port-security maximum ........................................... 12-3 12.8 switchport port-security violation ............................................. 12-3第1章端⼝配置命令1.1 以太⽹端⼝配置命令1.1.1 bandwidth命令:bandwidth control [both | receive | transmit]no bandwidth control功能:打开端⼝的带宽限制功能;本命令的no操作为关闭端⼝的带宽限制功能。
目录第1章端口配置 .................................................................................. 1-11.1 端口介绍........................................................................................................................ 1-11.2 业务端口配置................................................................................................................ 1-11.3 端口配置举例................................................................................................................ 1-31.4 端口排错帮助................................................................................................................ 1-4第2章端口环路检测功能操作配置 .................................................. 2-12.1 端口环路检测功能简介................................................................................................ 2-12.2 端口环路检测功能配置任务序列................................................................................ 2-12.3 端口环路检测典型案例................................................................................................ 2-32.4 端口环路检测排错帮助................................................................................................ 2-3第3章ULDP操作配置 ...................................................................... 3-13.1 ULDP功能简介............................................................................................................. 3-13.2 ULDP配置任务序列..................................................................................................... 3-23.3 ULDP功能典型案例..................................................................................................... 3-43.4 ULDP排错帮助............................................................................................................. 3-5第4章LLDP功能操作配置............................................................... 4-14.1 LLDP功能简介............................................................................................................. 4-14.2 LLDP功能配置任务序列............................................................................................. 4-14.3 LLDP功能典型案例..................................................................................................... 4-44.4 LLDP功能排错帮助..................................................................................................... 4-4第5章Port Channel配置 .................................................................. 5-15.1 Port Channel介绍......................................................................................................... 5-15.2 Port Channel配置任务序列......................................................................................... 5-25.3 Port Channel举例......................................................................................................... 5-25.4 Port Channel排错帮助................................................................................................. 5-5第6章JUMBO配置........................................................................... 6-16.1 JUMBO介绍 ................................................................................................................. 6-1 6.2 JUMBO配置任务序列 ................................................................................................. 6-1第1章端口配置1.1 端口介绍交换机提供线卡和主控卡,线卡提供各种类型的业务端口;主控卡提供Console口和网管端口,用于带外管理交换机。
BrocadeSAN交换机常⽤命令Brocade SAN交换机常⽤命令使⽤电脑连接Brocade SAN交换机常⽤命令使⽤电脑连接管理⽹⼝,默认IP地址为:10.77.77.77,掩码:255.255.255.0默认⽤户名:admin,默认密码password1. switchStatusShow查看交换机的总体健康状态switch:admin> switchstatusshowSwitch Health ReportSwitch Name: SWFCRIP address: 10.33.54.176SwitchState: MARGINALDuration: 863:23Power supplies monitor MARGINALTemperatures monitor HEALTHYFans monitor HEALTHYWWN servers monitor HEALTHYStandby CP monitor HEALTHYBlades monitor HEALTHYFlash monitor HEALTHYMarginal ports monitor HEALTHYFaulty ports monitor HEALTHYMissing SFPs monitor HEALTHYAll ports are healthyswitch:admin>2. switchShow查看交换机基本配置信息Enter the switchShow command, which displays the following information for a switch:- switchname - The switch name.- switchtype - The switch model and firmware version numbers.- switchstate - The switch state: Online, Offline, Testing, or Faulty.- switchrole - Displays the switch role: Principal, Subordinate, or Disabled.- switchdomain - Displays the switch Domain ID.- switchid - The embedded port D_ID of the switch.- switchwwn - The switch World Wide Name.- switchbeacon - The switch beaconing state: either ON or OFF.The switchShow command also displays the following information for ports on the specified switch:- Module type - The SFP type if an SFP is present.- Port speed - The speed of the Port (1G, 2G, 4G, N1, N2, N4, or AN). The speed can be fixed, negotiated, or auto-negotiated.- Port state - The port status.- Comment - About the port. This section may be blank or display the WWN for an F_Port or an E_Port, the trunking state, or upstream or downstream status3. portShow查看端⼝状态switch:admin> switch:user> portshow 0portName:portHealth: OFFLINEAuthentication: NoneportDisableReason: NoneportCFlags: 0x1portFlags: 0x4001 PRESENT U_PORT LEDportType: 4.1portState: 2 OfflineportPhys: 2 No_ModuleportScn: 0port generation number: 0portId: 010000portIfId: 43020020portWwn: 20:00:00:60:69:00:02:53portWwn of device(s) connected:Distance: normalportSpeed: N2GbpsLE domain: 0Interrupts: 0 Link_failure: 0 Frjt: 0Unknown: 0 Loss_of_sync: 0 Fbsy: 0Lli: 0 Loss_of_sig: 0Proc_rqrd: 0 Protocol_err: 0Timed_out: 0 Invalid_word: 0Rx_flushed: 0 Invalid_crc: 0Tx_unavail: 0 Delim_err: 0Free_buffer: 0 Address_err: 0Port part of other ADs: Yes4. fanShow查看交换机散热风扇的状态Enter the fanShow command:switch:admin> fanshowFan 1 is OK speed is 7010 RPMFan 2 is OK speed is 7180 RPMFan 3 is OK speed is 7068 RPMFan 4 is OK speed is 7116 RPMFan 5 is OK speed is 7155 RPMFan 6 is OK speed is 7001 RPMswitch:admin>5. psShow查看交换机的电源状态注:如果安装FR4-18i、FC4-16IP、FC10-6、FC8-48板,需要满配4个电源Enter the psShow command:switch:admin> psshowPower Supply #1 is OK0335,FF2Z0007161,60-0000739-02, B,,DCJ3002-01P, B,FF2Z0007161 Power Supply #2 is faulty0335,FF2Z0007176,60-0000739-02, B,,DCJ3002-01P, B,FF2Z0007176 switch:admin>6. tempShow查看交换机的环境温度Enter the tempShow command:switch:admin> tempshowIndex Status Centigrade Fahrenheit----------------------------------------------------1 OK 21 702 OK 22 723 OK 29 844 OK 24 755 OK 25 77switch:admin>7. errDump、errShow、errClear查看交换机的内部消息⽇志To display the system message log, with no page breaksEnter the errDump command.To display the system message log one at a timeEnter the errShow command.To clear the system message logEnter the errClear command.8. supportShow、supportSave、pdShow收集交换机的诊断数据supportShow显⽰诊断信息和状态信息supportSave将数据打包、上传⾄指定的FTP服务器The command prompts for an FTP server, packages the following files, and sends them to the specified server: The output of the supportShow commandThe contents of any trace dump files on the switchSystem message logs (for Brocade directors, supportSave saves the system message logsfrom both of the CP blades)pdShow显⽰panic dump⽂件的内容,帮助诊断系统panic的原因9. nsShow、nsAllShow、fabricShow检查连接到交换机的设备nsShow显⽰连接到交换机的所有设备nsAllShow显⽰连接到Fabric的所有设备fabricShow显⽰Fabric中的所有交换机10. licenseShow、wwn检查license⽂件和交换机的WWN号11. version检查Fabric OS的版本,将显⽰如下信息:- Kernel: displays the version of switch kernel operating system.- Fabric OS: displays the version of switch Fabric OS.- Made on: displays the build date of firmware running in switch.- Flash: displays the install date of firmware stored in nonvolatile memory.- BootProm: displays the version of the firmware stored in the boot PROM.12. haShow查看Control Blade的状态swDir: admin> haShowLocal CP (Slot 6, CP1): ActiveRemote CP (Slot 5, CP0): StandbyHA Enabled, Heartbeat Up, State Synchronized13. slotShow查看各个Blade的状态14. portCfgSpeed修改端⼝的速率15. portEnable或portCfgPersistentEnableReset端⼝16. 检查WWN卡状态下列命令如果不能正确执⾏,则说明WWN卡需要更换:www,chassisShow:显⽰交换机的WWN号chassisShow:显⽰chassis和WWN卡的状态ipAddrShow,ipAddrSet:显⽰CP Blades的IP地址historyShow、historyLastShow:显⽰历史⽇志信息switchName:显⽰交换机的名字修改Domain ID1. 查看当前的Domain ID输⼊命令fabricShow,输出结果中的Switch ID即包括交换机的Domain ID。
2852s和2826s配置:创建VLAN命令如下:set vlan 10 enable ///创建vlanset vlan 10 add port 1—24 untag ///在创建的vlan内添加用户端口set vlan 10 add port 25 tag ///把级联端口添加到vlan10中,需打tag标签,即为trunk端口。
set port 1—24 pvid 10 ///把添加到vlan10的用户端口,pvid至vlan10中。
交换机用户端口必须在所添加的vlan中做此项命令。
(默认的pvid为vlan10)删除vlan命令如下:set vlan 10 delete port 1—24 ///删除用户端口set vlan 10 delete port 25 ///删除级联端口set vlan 10 disable ///删除vlanset port 1—24 pvid 1 ///恢复默认设置,该项命令必须添加,不然还会在show running—config信息中显示set port 1-24 pvid 10的信息,会导致vlan用户使用不正常。
ENABLE密码配置:zte〉enable //进入全局配置模式password:***** //输入进入全局配置模式的密码,缺省没有密码zte(cfg)#adminpass zxr10 //配置进入全局配置模式的密码为zxr10TELNET 用户名密码配置(为了便于对设备的维护,有时需要修改登录用户名或密码,配置如下:)zte(cfg)#create user zxr10 //创建名为zxr10的用户zte(cfg)#loginpass zxr10 //设置登录密码为zxr10zte(cfg)#show user //显示telnet登录用户信息和当前用户名配置三层管理或业务地址:config router ///进入config router模式set ipport 0 ipaddress 10。
B24 交换机操作手册一、基本配置操作1. 连接到B241.1、SSH说明:交换机管理的最基本方法,通过命令行的方式直接登录到交换机上,通过交换机上操作系统(Fabric OS)提供的命令对交换机作管理工作.能完成对单台交换机管理的所有功能。
连接方法:用SSH工具通过B24 IP地址登陆.默认用户:admin,默认密码:password。
1。
2、Web Tools说明:图形界面的管理工具,通过浏览器对交换机完成管理工作.视觉效果比Telnet好很多,并且在性能监视时能提供多种视图.能完成对单台交换机管理的大多数功能.连接方法:在浏览器上输入B24的IP地址.默认用户:admin,默认密码:password。
1。
3、串口管理说明:通过串口线连接到B24交换机的串口上进行管理连接方法:使用串口线连接B24和笔记本/工作站的串口,打开“超级终端”,配置如下:Bits per second: 9600Data bits: 8Parity: NoneStop bits: 1Flow control: None当超级终端停止报告信息,按“Enter”显示login信息,默认用户:admin,默认密码:password.2. 设置IP地址B24默认IP地址为:10.77.77.77/24。
设置交换机IP地址:〉 ipaddrsetEthernet IP Address [10。
77.77。
77]: 192。
56。
211。
5 Ethernet Subnetmask [255.255.255.0]:Fibre Channel IP Address [none]:Fibre Channel Subnetmask [none]:Gateway IP Address [none]:DHCP [Off]:显示交换机的IP> ipaddrshow3. 设置默认账号密码B24交换机有两个默认的账号,admin和user账号。
2960>e n ;第一次密码为空2960h#co nf t;进入全局配置模式2960(conf ig)#h ostna me sw a ;设置交换机名2960(conf ig)#e nable secr et aa a ;设置特权加密口令为 aa a2960(co nfig)#enab le pa sswor d aax;设置特权非密口令为 aax2960(con fig)#lineconso le 0;进入控制台口(Rs232)2960(conf ig-li ne)#p asswo rd aa;设置登录口令aa2960(con fig-l ine)#login;登录要求口令验证2960(con fig-l ine)#linevty 0 4 ;进入虚拟终端virtu al tt y2960(co nfig-line)#pass worda ;设置登录口令a2960(con fig-l ine)#login;登录要求口令验证2960(con fig-l ine)#exit;返回上一层2960(co nfig)#exit;返回上一层2960#s h run;看配置信息2960#e xit ;返回命令配置Vl an新建一个Vla n的命令Switc h>ena ble 进入特权模式Swit ch#co nfigu re te rmina l 进入全局配置模式Swi tch (confi g)# v lan v lan-i d 创建一个Vlan或者进入Vl an配置模式Sw itch(conf ig-vl an)#namevlan-name给Vlan命名(取消设置:no name)Sw itch(conf ig-vl an)#mtu m tu-si ze 设置最大通讯量(取消设置:no m tu) Switc h (co nfig-vlan)#remo te-sp an 开启远程流量监控(关闭:no remo te-sp an) Switc h (co nfig-vlan)# end回到特权模式S witch#show vlan查看当前配置Swi tch#c opy r unnin g-con fig s tartu p con fig 保存配置删除Vla n的命令Switc h>ena ble 进入特权模式Swit ch#co nfigu re te rmina l 进入全局配置模式Swi tch (confi g)# n o vla n vla n-id删除Vl anS witch (con fig)# end回到特权模式Sw itch#showvlanbrief查看删除情况Swi tch#c opy r unnin g-con fig s tartu p con fig 保存配置端口加入特定Vlan的命令S witch>enab le 进入特权模式Switc h#con figur e ter minal进入全局配置模式Swit ch (c onfig)# in terfa ce in terfa ce-id进入端口配置Swi tch (confi g-if)# swi tchpo rt mo de ac cess将接口的模式设为访问模式Sw itch(conf ig-if)# sw itchp ort a ccess vlan vlan-id 将端口加入指定的Vla n(恢复端口默认配置:defa ult i nterf ace i nterf ace-i d)S witch (con fig-i f)# e nd 回到特权模式Swi tch#s how r unnin g-con fig i nterf ace i nterf ace-i d 查看端口模式S witch#show inte rface s int erfac e-idswitc hport查看端口详细配置Swit ch#co py ru nning-conf ig st artup-conf ig 保存配置批量端口加入特定Vla n的命令int r angefa0/1 - 10swi tchpo rt acces s V Lan V2将特定端口设为tru nk2960-01(conf ig)#d efaul t int erfac e fas tEthe rnet0/1 端口恢复默认值2960-01(co nfig)#inte rface fast ether net0/1 进入端口模式2960-01(co nfig-if)#s witch portmodetrunk设置端口为trun k模式2960-01(con fig-i f)#sw itchp ort n onego tiate将接口设置为不协商模式2960-01(confi g-if)end2960-01#wr启用sn mpS witch>enab le 进入特权模式Switc h#con figur e ter minal进入全局配置模式Swit ch (c onfig)# sn mp-se rvercommu nitystrin g [vi ew vi ew-na me] [ro |rw] [acces s-lis t-num ber](关闭snmp: no s nmp-s erver)(删除团体字符: nosnmp-serve r com munit y str ing)配置snmp团体字符并开启snmp 代理服务Stri ng: 团体口令字符(所有SN MP命令中只有设置团体口令的s nmp-s ervercomm unity是必须的,其它的都是可选的.)Vie w: vi ew 可以用于限定哪些MIB分支不能用本commu nity-strin g存取预先用snmp-serv er vi ew定义ro | rw:ro获得M IB对象信息;rw获得并可以修改MIB对象信息acces s-lis t-num ber:访问列表号Swit ch (c onfig)#acc ess-l ist a ccess-list-numb er {d eny |per mit}sourc e [so urce-wildc ard]配置拒绝或者允许访问s nmp代理服务的IP地址,访问列表号为上一步指定的列表号Switc h (co nfig)#end回到特权模式Swit ch#sh ow ru nning-conf ig 查看配置S witch#copy runn ing-c onfig star tup-c onfig保存配置cis co2960口令恢复交换机口令恢复的步骤⒈串口线连接到到交换机的conso le口。
神州数码交换机的端口操作命令本文将介绍神州数码交换机常用的端口操作命令及其用法。
神州数码交换机是一种常用的网络设备,用于连接各个网络节点,实现网络通信。
了解并掌握交换机的端口操作命令是网络管理和故障排除的重要基础。
1. 查看端口状态要查看端口的状态,可以使用以下命令:show interface brief该命令会列出交换机上所有端口的基本信息,包括端口号、速率、协议等。
通过查看端口的状态,可以判断端口是否正常工作,是否接入了其他设备。
2. 配置端口速率和双工模式可以使用以下命令来配置交换机端口的速率和双工模式:interface [端口号]speed [速率]duplex [模式]其中,[端口号]为要配置的端口号,[速率]为端口的速率(如10、100、1000等),[模式]为端口的双工模式(如半双工、全双工等)。
例如,要将端口1配置为100Mbps的全双工模式,可以使用以下命令:interface 1speed 100duplex full3. 配置端口的VLANVLAN(Virtual Local Area Network)是一种逻辑上划分网络的技术,可以将一个物理网络划分成多个逻辑网络。
神州数码交换机可以通过以下命令为端口配置所属的VLAN:interface [端口号]switchport mode accessswitchport access vlan [VLAN号]其中,[端口号]为要配置的端口号,[VLAN号]为要配置的VLAN号。
例如,将端口1配置为属于VLAN 10的端口,可以使用以下命令:interface 1switchport mode accessswitchport access vlan 104. 配置端口的安全性可以使用以下命令为端口配置安全性:interface [端口号]switchport port-securityswitchport port-security maximum [最大允许MAC地址数量]switchport port-security violation [违例处理方式]其中,[端口号]为要配置的端口号,[最大允许MAC地址数量]为该端口上允许学习的MAC地址数量的最大值,[违例处理方式]为端口出现违例时的处理方式(如关闭端口、报警等)。
烽火交换机配置常用命令一、连接方式:1.2.3.二、登陆:Username:admin------------使用着名称:adminPassword:12345------------密码:12345三、查看:S200mfb#showrun------------------查看系统运行★会看设备情况很重要showrunning-config显示当前系统配置showstartup-config显示当前配置文件信息showversion显示当前设备的版本信息showsystem显示系统配置showdynamic-macAA:BB:CC:DD:EE:FF已知某一mac地址,查找交换机连接端口号showlogginghistory显示历史记录showhistory显示之前的输入命令writefile保存配置文件showcpustatistic显示CPU统计信息。
1、设置时间clocksetHH:MM:SS<1-31><1-12><2000-2100>例:Fengine#clockset14:28:3010920092、显示文件系统dir例:Fengine#dirsizedatetimename----------------------------11387JAN-01-200000:01:16startcfg1files,totalspace:11387bytes0directorys,availablespace:2011136bytes3、清空交换机的配置文件erasestartup-config----------用于清空flash上保存的配置文件,但是以前的配置在系统上仍然生效,因此如果希望系统恢复到出厂状态,除了需要清空flash上的配置文件外,还需要重启设备例:Fengine(config)#erasestartup-config Thiswillerasetheconfigurationintheflashmemory.Areyousure(y/n)[y]Erasingconfiguration.......[OK]四、查看交换机端口情况:S200mfb#showinterface-----------查看端口网速,在线情况。
目录第1章端口配置命令..................................................... 1-11.1 以太网端口配置命令 ........................................................................ 1-11.1.1 bandwidth ................................................................................................ 1-11.1.2 clear counters interface ......................................................................... 1-11.1.3 description ............................................................................................... 1-21.1.4 flow control .............................................................................................. 1-21.1.5 interface ethernet .................................................................................... 1-21.1.6 loopback ................................................................................................... 1-31.1.7 mdi ............................................................................................................ 1-31.1.8 media-type ............................................................................................... 1-31.1.9 negotiation ............................................................................................... 1-41.1.10 port-rate-statistics interval ................................................................... 1-41.1.11 port-scan-mode ..................................................................................... 1-51.1.12 port-status query interval ..................................................................... 1-51.1.13 rate-violatoin .......................................................................................... 1-51.1.14 rate-violation control ............................................................................ 1-61.1.15 remote-statistics interval ..................................................................... 1-61.1.16 show interface ....................................................................................... 1-71.1.17 shutdown .............................................................................................1-101.1.18 speed-duplex ....................................................................................... 1-111.1.19 storm-control ....................................................................................... 1-111.1.20 virtual-cable-test .................................................................................1-121.1.21 switchport discard packet ..................................................................1-131.1.22 switchport flood-control .....................................................................1-131.2 无线端口配置 ................................................................................. 1-141.2.1 combo-forced-mode .............................................................................1-141.2.2 name .......................................................................................................1-141.2.3 rate-suppression ...................................................................................1-15第2章端口环路检测功能命令 ...................................... 2-12.1 debug loopback-detection ............................................................. 2-12.2 loopback-detection control ............................................................ 2-12.3 loopback-detection control-recovery timeout .............................. 2-12.4 loopback-detection interval-time................................................... 2-22.5 loopback-detection specified-vlan ................................................ 2-22.6 show loopback-detection ............................................................... 2-3第3章端口隔离功能配置命令 ...................................... 3-13.1 isolate-port group ........................................................................... 3-13.2 isolate-port group switchport interface ........................................ 3-13.3 isolate-port apply ............................................................................ 3-23.4 show isolate-port group ................................................................. 3-2第4章ULDP命令 ........................................................ 4-14.1 debug uldp ...................................................................................... 4-14.2 debug uldp error ............................................................................. 4-14.3 debug uldp event ............................................................................ 4-14.4 debug uldp fsm interface ethernet ................................................ 4-24.5 debug uldp interface ethernet ....................................................... 4-24.6 debug uldp packet .......................................................................... 4-24.7 uldp aggressive-mode .................................................................... 4-34.8 uldp enable ...................................................................................... 4-34.9 uldp disable ..................................................................................... 4-34.10 uldp hello-interval ......................................................................... 4-34.11 uldp manual-shutdown ................................................................. 4-44.12 uldp recovery-time ........................................................................ 4-44.13 uldp reset ....................................................................................... 4-44.14 show uldp ...................................................................................... 4-5第5章LLDP功能命令.................................................. 5-15.1 clear lldp remote-table .................................................................... 5-15.2 debug lldp ........................................................................................ 5-15.3 debug lldp packets ......................................................................... 5-15.4 lldp enable ....................................................................................... 5-25.5 lldp enable(端口)......................................................................... 5-25.6 lldp mode ......................................................................................... 5-25.7 lldp msgTxHold ............................................................................... 5-35.8 lldp neighbors max-num ................................................................ 5-35.9 lldp notification interval ................................................................. 5-35.10 lldp tooManyNeighbors ................................................................ 5-45.11 lldp transmit delay ........................................................................ 5-45.12 lldp transmit optional tlv .............................................................. 5-45.13 lldp trap .......................................................................................... 5-55.14 lldp tx-interval ............................................................................... 5-55.15 show debugging lldp .................................................................... 5-55.16 show lldp ....................................................................................... 5-65.17 show lldp interface ethernet ........................................................ 5-65.18 show lldp neighbors interface ethernet ...................................... 5-75.19 show lldp traffic ............................................................................ 5-7第6章Port Channel配置命令..................................... 6-16.1 debug lacp ....................................................................................... 6-16.2 debug port-channel ........................................................................ 6-16.3 interface port-channel .................................................................... 6-16.4 lacp port-priority ............................................................................. 6-26.5 lacp system-priority ........................................................................ 6-26.6 lacp timeout .................................................................................... 6-26.7 load-balance .................................................................................... 6-36.8 port-group ....................................................................................... 6-36.9 port-group mode ............................................................................. 6-46.10 show port-group ........................................................................... 6-4第7章MTU配置命令 ................................................... 7-17.1 mtu ................................................................................................... 7-1第8章EFM OAM配置命令.......................................... 8-18.1 clear ethernet-oam .......................................................................... 8-18.2 debug ethernet-oam error .............................................................. 8-18.3 debug ethernet-oam fsm ................................................................ 8-18.4 debug ethernet-oam packet ........................................................... 8-28.5 debug ethernet-oam timer ............................................................. 8-28.6 ethernet-oam ................................................................................... 8-28.7 ethernet-oam errored-frame threshold high ................................. 8-38.8 ethernet-oam errored-frame threshold low .................................. 8-38.9 ethernet-oam errored-frame window ............................................ 8-38.10 ethernet-oam errored-frame-period threshold high ................... 8-48.11 ethernet-oam errored-frame-period threshold low .................... 8-48.12 ethernet-oam errored-frame-period window .............................. 8-48.13 ethernet-oam errored-frame-seconds threshold high ............... 8-58.14 ethernet-oam errored-frame-seconds threshold low ................. 8-58.15 ethernet-oam errored-frame-seconds window ........................... 8-58.16 ethernet-oam errored-symbol-period threshold high ................ 8-68.17 ethernet-oam errored-symbol-period threshold low ................. 8-68.18 ethernet-oam errored-symbol-period window............................ 8-68.19 ethernet-oam link-monitor ........................................................... 8-78.20 ethernet-oam mode ...................................................................... 8-78.21 ethernet-oam period ..................................................................... 8-78.22 ethernet-oam remote-failure ........................................................ 8-88.23 ethernet-oam remote-loopback ................................................... 8-88.24 ethernet-oam remote-loopback supported ................................. 8-98.25 ethernet-oam timeout ................................................................... 8-98.26 show ethernet-oam ....................................................................... 8-98.27 show ethernet-oam events ......................................................... 8-138.28 show ethernet-oam link-events configuration ......................... 8-148.29 show ethernet-oam loopback status ......................................... 8-15第9章DDM命令.......................................................... 9-19.1 clear transceiver threshold-violation ............................................ 9-19.2 debug transceiver ........................................................................... 9-19.3 show transceiver ............................................................................ 9-19.4 show transceiver threshold-violation ........................................... 9-29.5 transceiver-monitoring ................................................................... 9-29.6 transceiver-monitoring interval ..................................................... 9-39.7 transceiver threshold ..................................................................... 9-3第10章LLDP-MED命令............................................ 10-110.1 civic location ............................................................................... 10-110.2 {description-language | province-state | city | county | street |locationNum | location | floor | room | postal | otherInfo} ............... 10-110.3 ecs location ................................................................................. 10-210.4 lldp med fast count ..................................................................... 10-210.5 lldp med trap ............................................................................... 10-210.6 lldp transmit med tlv all .............................................................. 10-310.7 lldp transmit med tlv capability ................................................. 10-310.8 lldp transmit med tlv extendPoe ................................................ 10-410.9 lldp transmit med tlv inventory .................................................. 10-410.10 lldp transmit med tlv networkPolicy........................................ 10-410.11 network policy ........................................................................... 10-510.12 show lldp ................................................................................... 10-610.13 show lldp [interface ethernet <IFNAME>] ............................... 10-610.14 show lldp neighbors ................................................................. 10-7第11章bpdu-tunnel命令.......................................... 11-111.1 bpdu-tunnel dmac ....................................................................... 11-111.2 bpdu-tunnel stp ........................................................................... 11-111.3 bpdu-tunnel gvrp ........................................................................ 11-111.4 bpdu-tunnel uldp ......................................................................... 11-211.5 bpdu-tunnel lacp ......................................................................... 11-211.6 bpdu-tunnel dot1x ....................................................................... 11-2第12章PORT SECURITY命令................................. 12-112.1 clear port-security ...................................................................... 12-112.2 show port-security ...................................................................... 12-112.3 switchport port-security ............................................................. 12-112.4 switchport port-security aging .................................................. 12-212.5 switchport port-security mac-address ...................................... 12-212.6 switchport port-security mac-address sticky .......................... 12-212.7 switchport port-security maximum ........................................... 12-3 12.8 switchport port-security violation ............................................. 12-3第1章端口配置命令1.1 以太网端口配置命令1.1.1 bandwidth命令:bandwidth control <bandwidth> [both | receive | transmit]no bandwidth control功能:打开端口的带宽限制功能;本命令的no操作为关闭端口的带宽限制功能。