交换机的端口操作命令.word
华为路由器交换机常用命令

华为路由器交换机常用命令一、设备管理命令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地质。
浪潮以太网交换机命令手册20130620(DOC)

浪潮以太网交换机命令手册系统分册前言 (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命令进行了介绍。
(完整word版)东土交换机配置全程指导

第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重启。
博达交换机常用配置命令手册

27
B
显示VLAN表
▪ Show vlan:显示交换机VLAN表;
Switch_config#show vlan
VLAN Status Name
Ports
---- ------- -------------------------------- ---------------------------------
1 Static Default
F0/1, F0/5, F0/6, F0/7, F0/8
F0/9, F0/10, F0/11, F0/12, F0/13
F0/14, F0/15, F0/16, F0/17, F0/18
F0/19, F0/20, F0/21, F0/22, F0/23
F0/24
2 Static VLAN0002
download
-- Download with ZMODEM
20
B
设置显示方式
▪ 博达交换机支持中英文显示,通过下面的命令可以容易地 在两种显示方式下切换。
1、chinese: 设置显示方式为中文。 2、english:设置显示方式为英文。
Switch#? chinese …… english
-- Help message in Chinese -- Help message in English
Directory of /:
html
<DIR>
SAT OCT 28 12:53:33 2006
0 Switch.bin <FILE> 3461091 FRI JAN 26 09:17:33 2007
1 Function.map <FILE> 1004208 SAT OCT 28 12:52:10 2006
华为交换机端口配置

本讲主要介绍以太网端口的配置任务,配 置命令,和配置过程,在最后讲两个以 太网端口配置的实例。
1
a
17.06.2020
学习目标
以太网端口的简介 以太网端口配置的内容 以太网端口配置命令 实例
a
2 17.06.2020
以太网端口的简介 以太网端口配置的内容 以太网端口配置命令 实例
12
a
17.06.2020
6 、设置以太网端口网线类型 以太网端口的网线有平行网线及交叉网线,
可以使用该命令对网线类型进行设置。 请在以太网端口视图下进行下列配置。 操作命令设置以太网端口连接的网线的类型
mdi { across | auto | normal } 恢复以太网端口的网线类型为缺省值
3
a
17.06.2020
一、以太网端口的简介
10/100Base-T以太网端口支持MDI/MDIX自适应,可以工作在半双工、全双工、 自协商模式下,可以与其他网络设备协 商确定工作方式和速率,自动选择最合 适的工作方式和速率,从而大大简化系 统的配置和管理。
100Base-FX多模/单模以太网端口的速率 及双工模式不需用户进行配置,速率为 100Mbit/s,工作在全双工模式下。
speed { 10 | 100 | 1000 | auto } 恢复以太网端口的速率为缺省值undo speed需要注意
的是,10/100Base-T以太网端口支持10Mbit/s、 100Mbit/s或自协商工作速率,可以根据需要对其设置。 100Base-FX多模/单模以太网端口的工作速率由系统 设置为100Mbit/s速率,不允许用户对其进行配置。 缺省情况下,以太网端口的速率处于auto(自协商) 状态。
博达交换机常用配置命令手册

bdcom
保存配置信息
博达路由器和交换机保存配置信息命令及操作如下所示:
Switch#write Saving current configuration... OK!
说明:路由器下一次启动时,根据最后一次写入的配置信 息工作,可以写入多次。 未写入的配置将在重新启动后丢 失。
bdcom
删除文件和热重启 删除文件
路由器和交换机常用配置命令
bdcom
Console配置
交换机CONSOLE端口速率设置为:波特率为9600,8位数据位,1位 停止位,无奇偶校验,无流控;所以计算机的串口也需要把速率设置 成相同。 路由器及交换机和计算机主机串行口的连接如下图所示:
bdcom
Windows超级终端配置
采用操作系统自带的超级终端(Hyper Terminal)应用程序。 用鼠标单击“开始”,选择“程序”,“附件”中的“超级终端”, 运行“超级终端”。 超级终端开始运行后,出现“连接说明”对话框,在名称输入项中键 入连接名称,如“Switch”等,再选择一个图标,按“确定”。如下图:
bdcom
博达交换机基本操作命令介绍
Console配置
telnet远程管理
通过SNMP网管软件管理
交换机常用配置命令
bdcom
telnet远程管理
在博达路由器和交换机上配置了IP地址之后,还可以通过TELNET的 方式实现远程的管理,只要可以PING通路由器或交换机上的IP地址的 计算机均可以通过TELNET的方式对交换机进行管理工作。 Switch>enable Switch# Switch#config Switch_config#interface vlan 1 Switch_config_v1#ip address 192.168.0.1 255.255.255.0 Switch_config_v1#exit Switch_config# enable password bdcom Switch_config#aaa authentication login default enable Switch_config# aaa authentication enable default enable
02_端口操作命令

目录第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操作为关闭端口的带宽限制功能。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
目录第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操作为关闭端口的带宽限制功能。