华三交换机配置远程管理账户密码

合集下载

华三华为交换机路由器配置常用命令

华三华为交换机路由器配置常用命令

H3C交换机配置命令大全1、system-view 进入系统视图模式2、sysname为设备命名3、displaycurrent-configuration 当前配置状况4、language-modeChinese|English中英文切换5、interfaceEthernet1/0/1 进入以太网端口视图6、portlink-typeAccess|Trunk|Hybrid 设置端口接见模式7、undoshutdown打开以太网端口8、shutdown关闭以太网端口9、quit撤出当前视图模式10、vlan10创立VLAN10 并进入VLAN10 的视图模式11、portaccessvlan10在端口模式下将当前端口加入到 vlan10中12、portE1/0/2toE1/0/5 在VLAN 模式下将指定端口加入到当前 vlan中13、porttrunkpermitvlanall 同意所有的vlan经过H3C路由器配置命令大全1、system-view 进入系统视图模式2、sysnameR1为设备命名为R13、displayiprouting-table 显示当前路由表4、language-modeChinese|English中英文切换5、interfaceEthernet0/0 进入以太网端口视图6、ipaddress配置IP地址和子网掩码7、undoshutdown打开以太网端口8、shutdown关闭以太网端口9、quit撤出当前视图模式10、iproute-staticdescription 配置静态路由11、iproute-staticdescription 配置默认的路由H3CS3100SwitchH3CS3600SwitchH3CMSR20-20Router1、调整超级终端的显示字号;2、捕捉超级终端操作命令行,以备往后核对;3、language-modeChinese|English中英文切换;4、复制命令到超级终端命令行,粘贴到主机;5、交换机除去配置 :<H3C>resetsave;<H3C>reboot ;6、路由器、交换机配置时不可以掉电,连通测试前必定要检查网络的连通性,不要犯最先级的错误。

华三路由器交换机配置命令

华三路由器交换机配置命令

路由器:1、进入SETUP模式Routersetup2、时间设置routerclock set hh:mm:ss date moth year3、 router>show historyRouter>terminal history size lines4、 routershow version5、 routershow running-config6、 routershow starup-config7、 routerconfighostname name 主机命名8、 routerconfigbanner motd message 开机时的固定显示信息9、 routerconfigenable password password 特权模式明文密码10、 routerconfigno enable password11、 routerconfigenable secret password 特权模式加密密码12、 routerconfigno enable secret13、 routerconfigservice password-encryption特权模式把明文密码加密密码,但没enable secret安全可以反解14、 routerconfigline console控制台密码15、 routerconfig-linelogin16、 routerconfig-linepassword password17、 routerconfig-lineexec-timeout mm ss 禁止控制台会话自动退出18、 routerconfig-linelogging synchronous重显被打乱的控制台输入routerconfigno ip domain-lookup 禁止域名解析19、 routerconfigline vty 0 4虚拟终端密码20、 routerconfig-linelogin21、 routerconfig-linepassword password22、 routerconfiginterface type numberslot/port端口设置23、 routerconfig-ifip address ip summast24、 routerconfig-ifclock rate 64000时钟频率单位为bps,只在DCE端设置25、 routerconfig-ifbandwith 64带宽设置,单位为KB26、 routerconfig-ifno shutdownshutdown27、 routerconfig-if media-type type10base 为以太网端口选择适当的介质类型28、 routerconfig-if ctrl+z保存退出到特权模式29、 router30、 router>用户模式enable进入router特权模式config terminal进入routerconfig全局配置模式31、Interface Routerconfig-if端口设置Subinterface Routerconfig-subif 子端口设置Controller Routerconfig-controller 控制口设置Line Routerconfig-line 虚拟口设置Router Routerconfig-router 路由设置IPX router Routerconfig-ipx-routerIPX路由设置32、 routershow interface33、 routershow interface Ethernet 034、 routershow interface serial 035、 routershow running-config36、 routershow starup-config37、 routershow flash38、 routershow controller39、 routershow controller interface type40、 routershow running-configroutercopy running-config starup-configroutercopy running-config tftproutercopy starup-config tftproutercopy flash tftproutercopy tftp star-configroutercopy tftp flash--------------------------------------------------------------------------------端口状态Serial1 is up, line protocol is up正常工作Serial1 is up, line protocol is down连接问题Serial1 is down, line protocol is down端口问题Serial1 is administratively down, line protocol is down人为关闭配置寄存器的值1、关闭路由器的电源重新启动按住ctrl+break键入进2、>3、>o/r 0×2142跳过nvarm启动恢复密码4、>I5、当系统提示是否进入setup模式时,按N6、 router>7、 router>enable8、 router9、进入修改后包括密码、寄存器的值:0×2100为rom monitor启动、0×2101为setup模式启动、0×2102为10、 routercopy running-config starup-config11、 routerreload12、也可以在routersetup进入setup模式静态路由协议设置routerconfigip route network submask要到达的网络号掩码ip address下一跳或出口ip地址rip设置routerconfigrouter riprouterconfig-routernetwork network-numberroutershow ip protocol查看RIP信息routershow ip route 查看路由表routerdebug ip rip查看RIP更新信息routerconfig-routerpassive-interface e0阻止发出作息routerconfig-routerip rip receive version 1 2接收1、2RIP版本信息igrp设置routerconfigrouter igrp as numberrouterconfig-routernetwork network numberroutershow ip route 查看路由表routerdebug ip igrp events 查看IGRP路由更新大概信息routerdebug ip igrp transaction 查看IGRP路由更新详细信息Routerconfig-routervariance multiplier 控制 IGRP load balancing Routerconfig-routertraffic-share {balanced | min}控制load-balanced traffic 的分布eigrp设置routerconfigrouter eigrp as numberrouterconfig-routernetwork network numberrouterconfigno auto-summry 关闭自动汇总routerconfig auto-summry 打开自动汇总默认是打开的routershow ip route eigrp 显示当前的路由表里的EIGRP条目routershow ip protocol 显示活动的路由协议进程的参数和当前的状态routershow ip eigrp neighbors 显示被EIGRP发现的邻居routershow ip eigrp traffic 显示发出和收到的IP EIGRP 包的数量routershow ip eigrp topology 显示IP EIGRP的拓扑表Routerdebug ip eigrpospf设置1. Routerconfigrouter ospf process-idRouterconfig-routernetwork address可以是网络号也可以是Ip地址 mask通配掩码 area area-idRouterconfig-if ip ospf priority numbe 配置OSPF的优先级Routershow ip protocols 验证OSPF的配置Routershow ip route 显示路由器学到的所有路由Routershow ip ospf interface type number 显示 area-ID 和邻接信息Routershow ip ospf neighbor 基于每接口显示OSPF邻居信息Routerdebug ip ospf eventsRouterdebug ip ospf packet2. Routerconfig interface loopback numberlookback回路配置Routerconfig-if ip address ip-address subnet-maskRouterconfig-if ip ospf cost cost-numbe 修改OSPF 的Cost数值Routerconfig-if ip ospf authentication-key key 配置明文口令Routerconfig-if ip ospf messge-digest-key keyid md5 key 配置MD5口令keyid和key必须配对一致,两邻居才可以通信Routerconfig-route area area-id authentication message-digest message-digest为可选项,使用后路由器只传送口令消息的摘要或散列配置OSPF区域的验证:3. Routerconfig-if ip ospf hello-interval seconds 配置hello间隔:Routerconfig-if ip ospf dead-interval seconds配置down机判断间隔--------------------------------------------------------------------------------访问列表1.标准访问列表standard access lists:只使用源IP地址来做过滤决定Routerconfigaccess-list 10 permit anyRouterconfigint e1Routerconfig-ifip access-group 10 out使用IP标准ACL来控制VTY线路的访问.Routerconfigline vty 0 4Routerconfig-lineaccess-class 50 in删除IP标准ACLRouterconfig-lineno ip access-class 50 inRouterconfigno access-list 502.扩展访问列表extended access lists:它比较源IP地址和目标IP地址,层3的协议字段,层4端口号来做过滤决定Routerconfigaccess-list 110 permit ip any anyRouterconfigint e1Routerconfig-ifip access-group 110 out3.虚拟通道访问routerconfigline vty 0 4outerconfig-lineaccess-class 12 inip interface:只显示IP访问列表信息ip interface:显示所有接口的信息和配置的ACL信息ip interface 接口号:显示具体某个接口的信息和配置的ACL信息running-config:显示DRAM信息和ACL信息,以及接口对ACL的应用信息. 交换机配置交换机上设置登陆口令Switchconfig enable password level level passwordSwitchconfig no enable password level level passwordhostname1900/2900confighostname hostnameIP Address1900configip address {ip address} {mask}2950configinterface vlan 12950config-ifip address {ip_address} {mask}2950configinterface vlan 1default gateway1900/2950configip default-gateway {ip address}查看交换机的IP地址1900show ipManagement VLAN: 12950show interface vlan 1Vlan1 is up, line protocol is up设置双工选项1900configinterface e0/11900config-ifduplex {auto | full |full-flow-control | half}2950configinterface fe0/12950config-ifduplex {auto | full | half}设置端口速度:switchconfig-if speed {10|100|auto}查勘双工选项Switchshow interfaces fastethernet0/3查看MAC地址表1900/2950show mac-address-table配置永久MAC地址1900configmac-address-table permanent {mac-address type module/port} 1900show mac-address-table2950configmac-address-table static mac_addr {vlan vlan_id} interface int1 int2 ... int15--------------------------------------------------------------------------------配置受限静态MAC地址1900configmac-address-table restricted static {mac-address type module/port src-if-list}1900show mac-address-table2950configmac-address-table secure mac-addr interface vlan vlan-id2950show mac-address-table配置端口安全性1900config-ifport secure max-mac-count count1900configinterface e0/41900config-ifport secure1900config-ifport secure max-mac-count 11900configaddress-violation {suspend | disable | ignore 1900 show mac-address-table security2950config-ifport security max-mac-count count2950configinterface fa0/12950config-ifport security2950config-ifport security max-mac-count 102950config-ifport security action {shutdown | trap} 2950show mac-address-table secure2950show port-security管理配置文件清除 NVRAM1900delete nvram2950erase startup-configvlan配置1900 VLAN建立1900下,使用vlan vlan name name vlan命令, 如下:>enconfig tconfighostname 19001900configvlan 2 name sales1900configvlan 3 name marketing1900configvlan 4 name mis1900configexit端口分配1900configint e0/21900config-ifvlan-membership static 21900configint e0/41900config-ifvlan-membership static 31900configint e0/51900config-ifvlan-membership static 41900config-ifexit1900configexitVLAN验证1900sh vlan2900 VLAN建立在2950下创建VLAN,在特权模式下使用vlan database命令2950vlan database2950vlanvlan 2 name MarketingVLAN 2 modified:Name: Marketing2950vlanvlan 3 name AccountingVLAN 3 added:Name: Accounting2950vlanapplyAPPLY complete2950vlanCtrl+C2950端口分配2950下的端口配置,使用switchport access vlan vlan命令, 2950config-ifint f0/22950config-ifswitchport access vlan 22950config-ifint f0/32950config-ifswitchport access vlan 32950config-ifint f0/42950config-ifswitchport access vlan 42950config-ifexit2950configexit验证配置信息,如下:2950sh vlan或2950sh vlan brieftrunk配置1900 trunk配置1900configint f0/261900config-iftrunk on2950下在接口配置模式,使用switchport命令,如下:2950configint f0/122950config-ifswitchport mode trunk2950config-if switchport trunk encapsulation {isl|dot1q}2950config-if^Z将某VLAN从中继中删除2950config-if switchport trunk allowed vlan remove vlan-list添加某个VLAN到中继线路2950config-if switchport trunk allowed vlan add vlan-list Configuring Inter-VLAN Routing给连接1900的trunk端口配置,使用encapsulation isl vlan命令,如下: 2600Routerconfigint f0/2600Routerconfig-subifencapsulation isl vlan2600Routerconfig-subifip add ip add submask给连接2950的这样配置,如下:2600Routerconfigint f0/2600Routerconfig-subifencapsulation dot1q vlan2600Routerconfig-subifip add ip add submask--------------------------------------------------------------------------------VTP配置1900configvtp server1900configvtp domain noco1900configvtp password noko在特权模式下使用show vtp命令验证,如下:1900sh vtpVTP version: 1Configuration revision: 0Maximum VLANs supported locally: 1005Number of existing VLANs: 5VTP domain name: nocoVTP password: nokoVTP operating mode: Server2950如下:2950configvtp mode server2950configvtp domain noco验证信息,如下:2950sh vtpcounters VTP statisticsstatus VTP domain status2950sh vtp statusNAT配置配置静态转换Routerconfigip nat inside source static local-ip global-ip Routerconfig-ifip nat insideRouterconfig-ifip nat outside配置动态地址转换Routerconfigip nat pool name start-ip end-ip {netmask netmask | prefix-length prefix-length}Routerconfigaccess-list access-list-number permit source source-wildcard Routerconfigip nat inside source listaccess-list-number pool name配置OverloadingRouterconfigaccess-list access-list-number permitsource source-wildcardRouterconfigip nat inside source listaccess-list-number interface interface overload清除NAT Translation TableRouterclear ip nat translation 清除所有的动态地址转换条目Routerclear ip nat translation inside global-iplocal-ip outside local-ip global-ip 清除一个简单的动态地址转换条目内、外Routerclear ip nat translation outsidelocal-ip global-ip清除一个简单的动态地址转换外Routerclear ip nat translation protocol inside global-ipglobal-port local-ip local-port outside local-iplocal-port global-ip global-port 清除一个扩展动态地址转换条目Show命令输出信息Routershow ip nat translations------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------交换机:1.在基于IOS的交换机上设置主机名/系统名:switchconfig hostname hostname在基于CLI的交换机上设置主机名/系统名:switchenable set system name name-string2.在基于IOS的交换机上设置登录口令:switchconfig enable password level 1 password在基于CLI的交换机上设置登录口令:switchenable set passwordswitchenable set enalbepass3.在基于IOS的交换机上设置远程访问:switchconfig interface vlan 1switchconfig-if ip address ip-address netmaskswitchconfig-if ip default-gateway ip-address在基于CLI的交换机上设置远程访问:switchenable set interface sc0 ip-address netmask broadcast-address switchenable set interface sc0 vlanswitchenable set ip route default gateway4.在基于IOS的交换机上启用和浏览CDP信息:switchconfig-if cdp enableswitchconfig-if no cdp enable为了查看Cisco邻接设备的CDP通告信息:switch show cdp interface type modle/portswitch show cdp neighbors type module/port detail在基于CLI的交换机上启用和浏览CDP信息:switchenable set cdp {enable|disable} module/port为了查看Cisco邻接设备的CDP通告信息:switchenable show cdp neighborsmodule/port vlan|duplex|capabilities|detail5.基于IOS的交换机的端口描述:switchconfig-if de脚本ion de脚本ion-string基于CLI的交换机的端口描述:switchenableset port name module/number de脚本ion-string6.在基于IOS的交换机上设置端口速度:switchconfig-if speed{10|100|auto}在基于CLI的交换机上设置端口速度:switchenable set port speed moudle/number {10|100|auto}switchenable set port speed moudle/number {4|16|auto}7.在基于IOS的交换机上设置以太网的链路模式:switchconfig-if duplex {auto|full|half}在基于CLI的交换机上设置以太网的链路模式:switchenable set port duplex module/number {full|half}8.在基于IOS的交换机上配置静态VLAN:switch vlan databaseswitchvlan vlan vlan-num name vlaswitchvlan exitswitch configure teriminalswitchconfig interface interface module/numberswitchconfig-if switchport mode accessswitchconfig-if switchport access vlan vlan-numswitchconfig-if end在基于CLI的交换机上配置静态VLAN:switchenable set vlan vlan-num name nameswitchenable set vlan vlan-num mod-num/port-list9. 在基于IOS的交换机上配置VLAN中继线:switchconfig interface interface mod/portswitchconfig-if switchport mode trunkswitchconfig-if switchport trunk encapsulation {isl|dotlq} switchconfig-if switchport trunk allowed vlan remove vlan-list switchconfig-if switchport trunk allowed vlan add vlan-list在基于CLI的交换机上配置VLAN中继线:switchenable set trunk module/port on|off|desirable|auto|nonegotiate Vlan-range isl|dotlq|dotl0|lane|negotiate--------------------------------------------------------------------------------10.在基于IOS的交换机上配置VTP管理域:switch vlan databaseswitchvlan vtp domain domain-name在基于CLI的交换机上配置VTP管理域:switchenable set vtp domain domain-name11.在基于IOS的交换机上配置VTP 模式:switch vlan databaseswitchvlan vtp domain domain-nameswitchvlan vtp {sever|cilent|transparent}switchvlan vtp password password在基于CLI的交换机上配置VTP 模式:switchenable set vtp domain domain-name mode{ sever|cilent|transparent }password password12. 在基于IOS的交换机上配置VTP版本:switch vlan databaseswitchvlan vtp v2-mode在基于CLI的交换机上配置VTP版本:switchenable set vtp v2 enable13. 在基于IOS的交换机上启动VTP剪裁:switch vlan databaseswitchvlan vtp pruning在基于CL I 的交换机上启动VTP剪裁:switchenable set vtp pruning enable14.在基于IOS的交换机上配置以太信道:switchconfig-if port group group-number distribution {source|destination}在基于CLI的交换机上配置以太信道:switchenable set port channel moudle/port-range mode{on|off|desirable|auto}--------------------------------------------------------------------------------15.在基于IOS的交换机上调整根路径成本:switchconfig-if spanning-tree vlan vlan-list cost cost在基于CLI的交换机上调整根路径成本:switchenable set spantree portcost moudle/port costswitchenable set spantree portvlancost moudle/port cost costvlan-list 16.在基于IOS的交换机上调整端口ID:switchconfig-if spanning-treevlan vlan-listport-priority port-priority 在基于CLI的交换机上调整端口ID:switchenable set spantree portpri {mldule/port}priorityswitchenable set spantree portvlanpri {module/port}priority vlans17. 在基于IOS的交换机上修改STP时钟:switchconfig spanning-tree vlan vlan-list hello-time seconds switchconfig spanning-tree vlan vlan-list forward-time seconds switchconfig spanning-tree vlan vlan-list max-age seconds在基于CLI的交换机上修改STP时钟:switchenable set spantree hello intervalvlanswitchenable set spantree fwddelay delay vlanswitchenable set spantree maxage agingtiamevlan18. 在基于IOS的交换机端口上启用或禁用Port Fast 特征:switchconfig-ifspanning-tree portfast在基于CLI的交换机端口上启用或禁用Port Fast 特征:switchenable set spantree portfast {module/port}{enable|disable}19. 在基于IOS的交换机端口上启用或禁用UplinkFast 特征:switchconfig spanning-tree uplinkfast max-update-rate pkts-per-second 在基于CLI的交换机端口上启用或禁用UplinkFast 特征:switchenable set spantree uplinkfast {enable|disable}rate update-rate all-protocols off|on--------------------------------------------------------------------------------20. 为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个IP地址,然后使用下列命令: switchconfig cluster enable cluster-name cv21. 为了从一条中继链路上删除VLAN,可使用下列命令:switchenable clear trunk module/port vlan-range22. 用show vtp domain 显示管理域的VTP参数.23. 用show vtp statistics显示管理域的VTP参数.24. 在Catalyst交换机上定义TrBRF的命令如下:switchenable set vlan vlan-name name name type trbrf bridge bridge-numstp {ieee|ibm}--------------------------------------------------------------------------------25. 在Catalyst交换机上定义TrCRF的命令如下:switch enable set vlan vlan-num name name type trcrf{ring hex-ring-num|decring decimal-ring-num} parent vlan-num26. 在创建好TrBRF VLAN之后,就可以给它分配交换机端口.对于以太网交换,可以采用如下命令给VLAN分配端口:switchenable set vlan vlan-num mod-num/port-num27. 命令show spantree显示一个交换机端口的STP状态.28. 配置一个ELAN的LES和BUS,可以使用下列命令:ATM config interface atm multiointATMconfig-subif lane serber-bus ethernet elan-name29. 配置LECS:ATMconfig lane database database-nameATMlane-config-databade name elan1-name server-atm-address les1-nsap-addressATMlane-config-databade name elan2-name server-atm-address les2-nsap-addressATMlane-config-databade name …--------------------------------------------------------------------------------30. 创建完数据库后,必须在主接口上启动LECS.命令如下:ATMconfig interface atm numberATMconfig-if lane config database database-name ATMconfig-if lane config auto-config-atm-address 31. 将每个LEC配置到一个不同的ATM子接口上.命令如下: ATMconfig interface atm multipointATMconfig lane client ethernet vlan-num elan-num32. 用show lane server 显示LES的状态.33. 用show lane bus显示bus的状态.34. 用show lane database显示LECS数据库可内容.35. 用show lane client显示LEC的状态.36. 用show module显示已安装的模块列表.37. 用物理接口建立与VLAN的连接:router configure terminalrouterconfig interface media module/portrouterconfig-if de脚本ion de脚本ion-string routerconfig-if ip address ip-addr subnet-mask routerconfig-if no shutdown38. 用中继链路来建立与VLAN的连接:routerconfig interface module/routerconfig-ig encapsulationisl|dotlq vlan-number routerconfig-if ip address ip-address subnet-mask 39. 用LANE 来建立与VLAN的连接:routerconfig interface atm module/portrouterconfig-if no ip addressrouterconfig-if atm pvc 1 0 5 qsaalrouterconfig-if atm pvc 2 0 16 ilnirouterconfig-if interface atm module/ multipointrouterconfig-if ip address ip-address subnet-maskrouterconfig-if lane client ethernet elan-numrouterconfig-if interface atm module/ multipointrouterconfig-if ip address ip-address subnet-namerouterconfig-if lane client ethernet elan-namerouterconfig-if …--------------------------------------------------------------------------------40. 为了在路由处理器上进行动态路由配置,可以用下列IOS命令来进行: routerconfig ip routingrouterconfig router ip-routing-protocolrouterconfig-router network ip-network-numberrouterconfig-router network ip-network-number41. 配置默认路由:switchenable set ip route default gateway42. 为一个路由处理器分配VLANID,可在接口模式下使用下列命令: routerconfig interface interface numberrouterconfig-if mls rp vlan-id vlan-id-num43. 在路由处理器启用MLSP:routerconfig mls rp ip44. 为了把一个外置的路由处理器接口和交换机安置在同一个VTP域中: routerconfig interface interface numberrouterconfig-if mls rp vtp-domain domain-name45. 查看指定的VTP域的信息:router show mls rp vtp-domain vtp domain name46. 要确定RSM或路由器上的管理接口,可以在接口模式下输入下列命令: routerconfig-ifmls rp management-interface47. 要检验MLS-RP的配置情况:router show mls rp48. 检验特定接口上的MLS配置:router show mls rp interface interface number49. 为了在MLS-SE上设置流掩码而又不想在任一个路由处理器接口上设置访问列表:set mls flow destination|destination-source|full50. 为使MLS和输入访问列表可以兼容,可以在全局模式下使用下列命令:routerconfig mls rp ip input-acl--------------------------------------------------------------------------------51. 当某个交换机的第3层交换失效时,可在交换机的特权模式下输入下列命令:switchenable set mls enable52. 若想改变老化时间的值,可在特权模式下输入以下命令:switchenable set mls agingtime agingtime53. 设置快速老化:switchenable set mls agingtime fast fastagingtime pkt_threshold54. 确定那些MLS-RP和MLS-SE参与了MLS,可先显示交换机引用列表中的内容再确定:switchenable show mls include55. 显示MLS高速缓存记录:switchenable show mls entry56. 用命令show in arp显示ARP高速缓存区的内容;57. 要把路由器配置为HSRP备份组的成员,可以在接口配置模式下使用下面的命令:routerconfig-if standby group-number ip ip-address58. 为了使一个路由器重新恢复转发路由器的角色,在接口配置模式下:routerconfig-if standy group-number preempt59. 访问时间和保持时间参数是可配置的:routerconfig-if standy group-number timers hellotime holdtime60. 配置HSRP跟踪:routerconfig-if standy group-number track type-number interface-priority 61. 要显示HSRP路由器的状态:router show standby type-number group brief62. 用命令show ip igmp确定当选的查询器;63. 启动IP组播路由选择:routerconfig ip muticast-routing64. 启动接口上的PIM:dalllasr1>config-if ip pim {dense-mode|sparse-mode|sparse-dense-mode} 65. 启动稀疏-稠密模式下的PIM:router ip multicast-routingrouter interface type numberrouter ip pim sparse-dense-mode66. 核实PIM的配置:dallasr1> show ip pim interfacetype number count67. 显示PIM邻居:dallasr1> show ip neighbor type number68. 为了配置RP的地址,命令如下:dallasr1> ip pim rp-address ip-address group-access-list-numberoverride 69. 选择一个默认的RP:dallasr1> ip pim rp-address通告RP和它所服务的组范围:dallasr1> ip pim send-rp-announce type number scope ttl group-list access-list-number为管理范围组通告RP的地址:dallasr1> ip pim send-rp-announce ethernet0 scope 16 group-list1设定一个RP映像代理:dallasr1> ip pim send-rp-discovery scope ttl核实组到RP的映像:dallasr1> show ip pim rp mappingdallasr1> show ip pim rp group-name|group-address mapping--------------------------------------------------------------------------------70. 在路由器接口上用命令ip multicast ttl-threshold ttl-value设定TTL阀值:dallasr1>config-if ip multicast ttl-threshold ttl-value71. 用show ip pim neighbor显示PIM邻居表;72. 显示组播通信路由表中的各条记录:dallasr1>show ip mroute group-name|group-addressscouresummarycountactive kbps73. 要记录一个路由器接受和发送的全部IP组播包:dallasr1> debug ip mpacket detail access-listgroup74. 要在CISCO路由器上配置CGMP:dallasr1>config-if ip cgmp75.配置一个组播路由器,使之加入某一个特定的组播组:dallasr1>config-if ip igmp join-group group-address76. 关闭 CGMP:dallasr1>config-if no ip cgmp77. 启动交换机上的CGMP:dallasr1>enable set cgmp enable78. 核实Catalyst交换机上CGMP的配置情况:catalystla1>enable show configset prompt catalystla1>set cgmp enable79. CGMP离开的设置:Dallas_SWenable set cgmp leave--------------------------------------------------------------------------------80. 在Cisco设备上修改控制端口密码:R1config line console 0R1config-line loginR1config-line password LisbonR1config enable password LilbaoR1config login localR1config username student password cisco81. 在Cisco设备上设置控制台及vty端口的会话超时:R1config line console 0R1config-line exec-timeout 5 10R1config line vty 0 4R1config-line exec-timeout 5 282. 在Cisco设备上设定特权级:R1config privilege configure level 3 usernameR1config privilege configure level 3 copy run startR1config privilege configure level 3 pingR1config privilege configure level 3 show runR1config enable secret level 3 cisco83. 使用命令privilege 可定义在该特权级下使用的命令:routerconfig privilege mode level level command84. 设定用户特权级:routerconfig enable secret level 3 dallasrouterconfig enable secret san-franrouterconfig username student password cisco--------------------------------------------------------------------------------85. 标志设置与显示:R1config banner motd ‘unauthorized access will be prosecuted’86. 设置vty访问:R1config line vty 0 4R1config access-class 1 in87. 配置HTTP访问:Router3config ip http severRouter3config ip http access-class 1Router3config ip http authentication localRouter3config username student password cisco88. 要启用HTTP访问,请键入以下命令:switchconfig ip http sever89. 在基于set命令的交换机上用setCL1启动和核实端口安全:switchenable set port security mod_num/port_num…enable mac address switchenable show port mod_num/port_num在基于CiscoIOS命令的交换机上启动和核实端口安全:switchconfig-if port secure mac-mac-count maximum-MAC-countswitch show mac-address-table security type module/port--------------------------------------------------------------------------------90. 用命令access-list在标准通信量过滤表中创建一条记录:Routerconfig access-list access-list-number {permit|deny} source-address source-address91. 用命令access-list在扩展通信量过滤表中创建一条记录:Routerconfig access-list access-list-number {permit|deny{protocol|protocol-keyword}}{sourcesource-wildcard|any}{destinationdestination-wildcard|any}protocol-specific optionslog92. 对于带内路由更新,配置路由更新的最基本的命令格式是:R1config-routerdistribute-list access-list-number|name in type number93. 对于带外路由更新,配置路由更新的最基本的命令格式是:R1config-routerdistribute-list access-list-number|name out interface-name routing-process| autonomous-system-number94. set snmp命令选项:set snmp community {read-only|ready-write|read-write-all}community_string95. set snmp trap 命令格式如下:set snmp trap {enable|disable}all|moudle|classis|bridge|repeater|auth|vtp|ippermit|vmps|config|entity|stpxset snmp trap rvcr_addr rcvr_community96. 启用SNMP chassis 陷阱:Console>enable set snmp trap enable chassis97. 启用所有SNMP chassis 陷阱:Console>enable set snmp trap enable98. 禁用SNMP chassis 陷阱:Console>enable set snmp trap disable chassis99. 给SNMP陷阱接收表加一条记录:100. show snmp 输出结果;101. 命令set snmp rmon enable 的输出结果;102. 显示SPAN信息:Consile> show span。

华三交换机配置教程

华三交换机配置教程

华三交换机配置教程华三交换机是一种网络设备,用于网络中的数据转发和路由功能。

配置华三交换机是网络管理员必备的操作,下面是一份华三交换机配置教程,帮助您完成基本的配置。

首先,我们需要准备的设备和材料包括:一台华三交换机,一台连接交换机的电脑或终端设备,以及一条网线。

第一步,将华三交换机和电脑或终端设备连接起来,通过网线将交换机的一个网络端口连接到电脑或终端设备的网口上。

第二步,打开电脑或终端设备上的终端软件,如PuTTY等,选择串口连接方式,并设置串口参数,包括波特率、数据位、停止位和校验位等,通常默认配置即可。

第三步,连接上串口后,按下交换机上的"Enter"键,进入华三交换机的命令行界面。

第四步,首先需要对交换机进行基本的配置,如设定主机名、IP地址、网关和子网掩码等。

在命令行界面中,输入以下命令进行配置:system-view 进入系统视图sysname Switch 设定主机名interface vlan-interface 1 进入虚拟LAN接口1配置ip address 192.168.1.1 24 设置IP地址和子网掩码quit 退出虚拟LAN接口1配置vlan batch 1 创建VLAN 1interface gigabitethernet 0/0/1 进入Gigabit以太网接口0/0/1配置port link-type access 配置接口链路类型为access port default vlan 1 配置接口默认VLANport hybrid vlan 1 配置接口混合模式VLANquit 退出Gigabit以太网接口0/0/1配置interface gigabitethernet 0/0/2 进入Gigabit以太网接口0/0/2配置port link-type trunk 配置接口链路类型为trunkport trunk allow-pass vlan 1 配置接口允许通过的VLAN quit 退出Gigabit以太网接口0/0/2配置interface gigabitethernet 0/0/3 进入Gigabit以太网接口0/0/3配置port link-type hybrid 配置接口链路类型为hybrid port hybrid pvid vlan 1 配置接口默认VLANport hybrid untagged vlan 1 配置接口untagged VLAN port hybrid tagged vlan 2 配置接口tagged VLANquit 退出Gigabit以太网接口0/0/3配置save 保存配置在上述配置中,我们设定了一个名为"Switch"的主机名,设置了交换机的IP地址为192.168.1.1,子网掩码为24位,还创建了一个名为VLAN 1的虚拟局域网,并进行了接口配置。

H3C华三交换机基本配置命令大全,别到用的时候找不到了

H3C华三交换机基本配置命令大全,别到用的时候找不到了

H3C华三交换机基本配置命令大全,别到用的时候找不到了!本期我们一起来学习一下H3C最详细的基础命令。

一、不知道密码,如何恢复出厂设置1、开机启动,Ctrl+B进入bootrom菜单,选择恢复出厂设置。

2、用com线连上电脑,用超级终端进入,然后重启电脑,看提示按ctrl+b 进入bootrom模式,然后按照菜单提示删除flash中的.cfg文件,然后重启就可以了。

二、将Trunk端口添加到vlan中Trunk端口可以允许多个VLAN通过,也就是可以加入多个VLAN,所以Trunk 端口的VLAN加入不可能是一个一个地加,而是采取批量添加的方式进行。

但只能在以太网端口视图下进行配置,配置步骤如表7-11所示。

【示例1】使用port trunk permit vlan命令将中继端口Ethernet2/0/1加入到2、6、10、50~100 VLAN中。

1. <H3C> system-view2. System View: return to User View with Ctrl+Z.3. [H3C] interface Ethernet2/0/14. [H3C-Ethernet2/0/1] port trunk permit vlan 2 6 10 50 to 100【示例2】使用undo port trunk permit vlan命令将中继端口Ethernet2/0/1从VLAN 1中删除。

三、H3C交换机基础配置说明1、以太网端口的链路类型Access link:只能允许某一个vlan的untagged数据流通过。

Trunk link:允许多个vlan的tagged数据流和某一个vlan的untagged数据流通过。

Hybrid link:允许多个vlan的tagged数据流和多个vlan的untagged数据流通过。

hybrid link端口可以允许多个vlan的报文发送时不携带标签,而Trunk端口只允许缺省vlan的报文发送时不携带标签。

华三交换机配置远程管理账户密码

华三交换机配置远程管理账户密码

华三交换机配置远程管理账户密码
华三交换机配置远程管理账户密码
首先,需要准备console线(串口转usb管理线)以及终端登入软件(putty或者scureCRT)。

下面以putty软件登入为例:连接console线至交换机并安装console线驱动程序,安装成功后可以在计算机管理/系统工具/设备管理器/端口下面看到当前连接的COM管理口,如下图的COM3口。

拷贝putty登入软件至管理电脑,,双击软件图标
来到软件界面:
选择serial(串口)登入,串口号为COM3,波特率为9600,点击open以继续,如下图:
点击open键后进入命令行管理界面:
进入系统配置模式,修改设备名,配置vlan接口地址:
创建本地用户名和密码,并开启这个用户对应的telnet远程管理服务,给予3级管理权限:
进入远程管理虚接口vty0-4(共5个接口,允许同时又5个用户登入),配置远程登入的认证模式为scheme(调用本地用户名、密码)
退出系统配置模式,测试相关配置是否成功(telnet 127.0.0.1),测试完成后保存配置并退出:
至此,远程telnet登入配置完成!。

华三路由器使用手册

华三路由器使用手册

H3C S1526智能以太网交换机用户手册杭州华为三康技术有限公司资料版本:T1-UM-20060512-1.02声明Copyright ©2005-2006 杭州华为三康技术有限公司版权所有,保留一切权利。

非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本书内容的部分或全部,并不得以任何形式传播。

H3C、Aolynk、、IRF、H3Care、、Neocean、、TOP G、SecEngine、SecPath、COMWARE、VVG、V2G、V n G、PSPT、NetPilot、XGbus均为杭州华为三康技术有限公司的商标。

对于本手册中出现的其它公司的商标、产品标识及商品名称,由各自权利人拥有。

除非另有约定,本手册仅作为使用指导,本手册中的所有陈述、信息和建议不构成任何明示或暗示的担保。

如需要获取最新手册,请登录。

技术支持用户支持邮箱:soho@技术支持热线电话:800-810-0504网址:1. 前 言本书约定图形界面格式约定 格 式意 义< >带尖括号“< >”表示按钮名,如“单击<确定>按钮”。

[ ]带方括号“[ ]”表示窗口名、菜单名和数据表,如“弹出[新建用户]窗口”。

/ 多级菜单用“/”隔开。

如[文件/新建/文件夹]多级菜单表示[文件]菜单下的[新建]子菜单下的[文件夹]菜单项。

2. 各类标志本书还采用各种醒目标志来表示在操作过程中应该特别注意的地方,这些标志的意义如下:小心、注意:提醒操作中应注意的事项,不当的操作可能会导致数据丢失或者交换机损坏。

说明、提示、窍门、思考:对操作内容的描述进行必要的补充和说明。

环境保护本产品符合关于环境保护方面的设计要求,产品的存放、使用和弃置应遵照相关国家法律、法规要求进行。

目录第1章产品简介...............................................................................1-1第2章通过Web页面配置................................................................2-12.1 配置准备.............................................................................2-12.2 登录Web网管.....................................................................2-12.2.1 配置页面介绍...........................................................2-22.2.2 菜单介绍..................................................................2-32.2.3 常用按钮介绍...........................................................2-42.2.4 Web用户超时处理....................................................2-52.3 系统管理.............................................................................2-52.3.1 系统信息..................................................................2-52.3.2 修改密码..................................................................2-62.3.3 恢复缺省配置...........................................................2-62.3.4 重启动......................................................................2-72.3.5 软件升级..................................................................2-72.4 端口管理.............................................................................2-92.4.1 端口设置..................................................................2-92.4.2 端口汇聚................................................................2-112.4.3 端口镜像................................................................2-132.4.4 端口限速................................................................2-142.4.5 广播风暴抑制.........................................................2-162.5 VLAN................................................................................2-162.5.1 VLAN类型选择.......................................................2-172.5.2 802.1Q VLAN........................................................2-172.5.3 基于端口的VLAN...................................................2-222.6 QoS..................................................................................2-252.6.1 QoS简介................................................................2-252.6.2 交换机QoS的配置..................................................2-252.7 电缆诊断...........................................................................2-262.8 保存配置...........................................................................2-272.9 退出..................................................................................2-27第3章通过Console口配置..............................................................3-13.1 通过Console口搭建配置环境.............................................3-13.2 用户配置.............................................................................3-63.2.1 修改Web网管密码....................................................3-63.2.2 设置IP地址...............................................................3-73.2.3 恢复出厂缺省设置....................................................3-73.2.4 保存当前配置...........................................................3-73.2.5 重启交换机...............................................................3-8第4章附录 - 技术规格....................................................................4-1第5章附录 - 安装TCP/IP协议........................................................5-1第6章附录 - IP地址配置.................................................................6-1第1章产品简介H3C S1526智能以太网交换机(以下简称S1526)适用于中小企业、网吧及家庭组网。

H3C三层交换机的远程登录设置

H3C三层交换机的远程登录设置

命名交换机
[Myhub]vlan 22
划分一个vlan 22
[Myhub-vlan22]port g1/0/1
和Host_1主机相连的端口添加到vlan 22
[Myhub-vlan22]quit [Myhub]int vlan 22
进入vlan 22
[Myhub-Vlan-interface22]ip address 192.168.22.1 24 设置vlan
hing at a time and All things in their being are good for somethin
如图,三层交换机S5820V2-54QS-GE_1的端口g1/0/1连接Host_1主机的virtualBox Host-only Ethernet Adapter。而主机的virtualBox Host-only Ethernet Adapter又关联到Oracle VM VitrtualBox的win 7虚拟机的网卡。
下面说一下具体配置过程: 三层交换机上的设置:
hing at a time and All things in their being are good for somethin
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]sysname Myhub
[Myhub-line-vty0-4]aut 按下tab键
[Myhub-line-vty0-4]authentication-mode scheme
设置远程登录认证方式为AAA认证,使用交换机建立的用户和用户密码认证
[Myhub-line-vty0-4]quit

华三交换机-路由器配置命令

华三交换机-路由器配置命令

华三交换机-路由器配置命令华三交换机-路由器配置命令第一章:登录华三交换机-路由器1. 使用浏览器登录:a. 打开浏览器;b. 在地址栏中输入交换机-路由器的IP地址;c. 输入正确的用户名和密码;d. 单击登录按钮。

2. 使用命令行登录:a. 打开命令提示符或终端窗口;b. 输入telnet或ssh命令,后跟交换机-路由器的IP地址;c. 输入正确的用户名和密码;d. 按下回车键登录。

第二章:基本配置1. 设置主机名:hostname [主机名]2. 设置登录密码:enable password [密码]3. 配置管理接口:interface [接口]ip address [IP地址] [子网掩码] 4. 配置默认网关:ip default-gateway [默认网关]第三章:VLAN(虚拟局域网)配置1. 创建VLAN:vlan [VLAN号]name [VLAN名称]2. 配置端口―VLAN关联:interface [端口]switchport mode accessswitchport access vlan [VLAN号] 3. 配置交换机端口为Trunk口:interface [端口]switchport mode trunk第四章:路由配置1. 静态路由配置:ip route [目标网络] [目标子网掩码] [下一跳IP地址] 2. OSPF(开放最短路径优先)配置:router ospf [进程号]network [网络地址] [通配符] area [区域号]3. BGP(边界网关协议)配置:router bgp [自治系统号]neighbor [对等体IP地址] remote-as [对等体自治系统号]第五章:安全配置1. 配置SSH(安全外壳协议):crypto key generate rsaip ssh server enable2. 配置访问控制列表(ACL):ip access-list [ACL名称]permit/deny [源IP地址] [目标IP地址] [协议]第六章:性能优化配置1. 配置端口速率限制:interface [端口]bandwidth [带宽]2. 配置端口链路聚合(LACP):interface port-channel [聚合组号]channel-group [组号] mode active3. 配置端口流量控制:interface [端口]storm-control [选项]附件:本文档涉及的附件可在[link]。

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

华三交换机配置远程管理账户密码
首先,需要准备console线(串口转usb管理线)以及终端登入软件(putty或者scureCRT)。

下面以putty软件登入为例:连接console线至交换机并安装console线驱动程序,安装成功后可以在计算机管理/系统工具/设备管理器/端口下面瞧到当前连接的COM管理口,如下图的COM3口。

拷贝putty登入软件至管理电脑,,双击软件图标
来到软件界面:
选择serial(串口)登入,串口号为COM3,波特率为9600,点击open以继续,如下图:
点击open键后进入命令行管理界面:
进入系统配置模式,修改设备名,配置vlan接口地址:
创建本地用户名与密码,并开启这个用户对应的telnet远程管理服务,给予3级管理权限:
进入远程管理虚接口vty0-4(共5个接口,允许同时又5个用户登入),配置远程登入的认证模式为scheme(调用本地用户名、密码)
退出系统配置模式,测试相关配置就是否成功(telnet 127、0、0、1),测试完成后保存配置并退出:
至此,远程telnet登入配置完成!。

相关文档
最新文档