华为路由器配置命令大全
华为路由器配置详解 基本命令

exit
以上根据中国电信 ddn 专线多数情况应用
普通用户模式
enable 转入特权用户模式
exit 退出配置
help 系统帮助简述
language 语言模式切换
ping 检查网络主机连接及主机是否可达
show 显示系统运行信息
telnet 远程登录功能
tracert 跟踪到目的地经过了哪些路由器
802.2
802.3
其中Ethernet_II和Ethernet_SNAP用于支持IP协议,802.2和802.3 用于支持IPX协议。以太网口对接收到的帧能够自动识别其格式,因此可以同时接收多种格式的帧,但在同一时间只能发送一种帧格式。
no send-frame-type 命令恢复缺省的IP报文发送帧格式。
【举例】
设置以太网接口描述为全双工模式。
Quidway(config-if-Ethernet0)#duplex
【相关命令】
show interface
2.1.3 loopback
允许或禁止以太网口对内自环和对外回波。
[ no ] loopback
【缺省情况】
禁止以太网口对内自环和对外回波。
【相关命令】
show interface
2.4.2 shutdown
关闭或重新启动物理接口。
[ no ] shutdown
【缺省情况】
在路由器上电时,初始化并启动各物理接口。
【命令模式】
接口配置模式
【使用指南】
慎重使用关闭和重启接口命令,但在某些特殊情况下,如修改接口的工作参数时,不能立即生效,需要关闭和重启接口后,才能生效。
华为路由器配置命令

华为路由器配置命令华为路由器配置命令大全学习华为交换机,就要记得配置基本命令,下面yjbys为大家分享的是华为路由器基本配置命令,希望对大家学习华为有所帮助!一、计算机命令PCAlogin:root;使用root用户password:linux;口令是linux#shutdown-hnow;关机#init0;关机#logout;用户注销#login;用户登录#ifconfig;显示IP地址#ifconfigeth0netmask;设置IP地址#ifconfigeht0netmaskdown;禁用IP地址#routeadd0.0.0.0gw;设置网关#routedel0.0.0.0gw;删除网关#routeadddefaultgw;设置网关#routedeldefaultgw;删除网关#route;显示网关#ping;发ECHO包#telnet;远程登录二、华为路由器交换机配置命令:交换机命令[Quidway]discur;显示当前配置[Quidway]displaycurrent-configuration;显示当前配置[Quidway]displayinterfaces;显示接口信息[Quidway]displayvlanall;显示路由信息[Quidway]displayversion;显示版本信息[Quidway]superpassword;修改特权用户密码[Quidway]sysname;交换机命名[Quidway]interfaceethernet0/1;进入接口视图[Quidway]interfacevlanx;进入接口视图[Quidway-Vlan-interfacex]ipaddress10.65.1.1255.255.0.0;配置VLAN的IP地址[Quidway]iproute-static0.0.0.00.0.0.010.65.1.2;静态路由=网关[Quidway]rip;三层交换支持[Quidway]local-userftp[Quidway]user-interfacevty04;进入虚拟终端[S3026-ui-vty0-4]authentication-modepassword;设置口令模式[S3026-ui-vty0-4]setauthentication-modepasswordsimple222;设置口令[S3026-ui-vty0-4]userprivilegelevel3;用户级别[Quidway]interfaceethernet0/1;进入端口模式[Quidway]inte0/1;进入端口模式[Quidway-Ethernet0/1]duplex{half|full|auto};配置端口工作状态[Quidway-Ethernet0/1]speed{10|100|auto};配置端口工作速率[Quidway-Ethernet0/1]flow-control;配置端口流控[Quidway-Ethernet0/1]mdi{across|auto|normal};配置端口平接扭接[Quidway-Ethernet0/1]portlink-type{trunk|access|hybrid};设置端口工作模式[Quidway-Ethernet0/1]portaccessvlan3;当前端口加入到VLAN [Quidway-Ethernet0/2]porttrunkpermitvlan{ID|All};设trunk 允许的VLAN[Quidway-Ethernet0/3]porttrunkpvidvlan3;设置trunk端口的PVID[Quidway-Ethernet0/1]undoshutdown;激活端口[Quidway-Ethernet0/1]shutdown;关闭端口[Quidway-Ethernet0/1]quit;返回[Quidway]vlan3;创建VLAN[Quidway-vlan3]portethernet0/1;在VLAN中增加端口[Quidway-vlan3]porte0/1;简写方式[Quidway-vlan3]portethernet0/1toethernet0/4;在VLAN中增加端口[Quidway-vlan3]porte0/1toe0/4;简写方式[Quidway]monitor-port;指定镜像端口[Quidway]portmirror;指定被镜像端口[Quidway]portmirrorint_listobserving-portint_typeint_num;指定镜像和被镜像[Quidway]descriptionstring;指定VLAN描述字符[Quidway]description;删除VLAN描述字符[Quidway]displayvlan[vlan_id];查看VLAN设置[Quidway]stp{enable|disable};设置生成树,默认关闭[Quidway]stppriority4096;设置交换机的优先级[Quidway]stproot{primary|secondary};设置为根或根的备份[Quidway-Ethernet0/1]stpcost200;设置交换机端口的花费[Quidway]link-aggregatione0/1toe0/4ingress|both;端口的`聚合[Quidway]undolink-aggregatione0/1|all;始端口为通道号[SwitchA-vlanx]isolate-user-vlanenable;设置主vlan[SwitchA]isolate-user-vlansecondary;设置主vlan包括的子vlan[Quidway-Ethernet0/2]porthybridpvidvlan;设置vlan的pvid [Quidway-Ethernet0/2]porthybridpvid;删除vlan的pvid[Quidway-Ethernet0/2]porthybridvlanvlan_id_listuntagged;设置无标识的vlan如果包的vlanid与PVId一致,则去掉vlan信息.默认PVID=1。
华为路由器命令

华为华为路由器交换机配置命令大全一、计算机命令PCAlogin:root 使用root用户password:linux 口令是linux#shutdown-hnow 关机#init 0 关机#logout 用户注销#login 用户登录#ifconfig 显示IP地址# ifconfig eth0 <ip address> netmask掩码<netmask> 设置IP地址# ifconfig eht0 <ip address> netmask <netmask> down 禁用IP地址# route add 0.0.0.0 gw <ip> 设置网关# route del 0.0.0.0 gw <ip> 删除网关# route add default gw <ip> 设置网关# route del default gw <ip> 删除网关# route 显示网关# ping <ip> 发ECHO包# telnet <ip> 远程登录二、华为路由器交换机配置命令:交换机命令[Quidway]dis cur;显示当前配置[Quidway]display current-configuration;显示当前配置[Quidway]display interfaces;显示接口信息[Quidway]display vlan;显示vlan信息[Quidway]display version;显示版本信息[Quidway]super password;修改特权用户密码[Quidway]sysname;交换机命名[Quidway]interface ethernet0/1;进入接口视图[Quidway]interface vlan x;进入接口视图[Quidway-Vlan-interfacex]ip address 10.65.1.1 255.255.0.0;配置VLAN的IP地址[Quidway]Ip route-static 0.0.0.0 0.0.0.0 10.65.1.2;静态路由=网关[Quidway]rip;rip协议[Quidway]local-user ftp[Quidway]user-interface vty 0 4;进入虚拟终端[S3026-ui-vty0-4]authentication-mode password;设置口令模式[S3026-ui-vty0-4]set authentication-mode password simple 222;设置口令[S3026-ui-vty0-4]user privilege level 3;用户级别[Quidway]interface ethernet0/1;进入端口模式[Quidway]int e0/1;进入端口模式[Quidway-Ethernet0/1]duplex{half|full|auto};配置端口工作状态[Quidway-Ethernet0/1]speed{10|100|auto};配置端口工作速率[Quidway-Ethernet0/1]flow-control;配置端口流控[Quidway-Ethernet0/1]mdi{across|auto|normal};配置端口平接扭接[Quidway-Ethernet0/1]portlink-type{trunk|access|hybrid};设置端口工作模式[Quidway-Ethernet0/1]port access vlan 3;当前端口加入到VLAN[Quidway-Ethernet0/2]port trunk permit vlan{ID|All};设trunk允许的VLAN [Quidway-Ethernet0/3]port trunk pvid vlan 3;设置trunk端口的PVID[Quidway-Ethernet0/1]undo shutdown;激活端口[Quidway-Ethernet0/1]shutdown;关闭端口[Quidway-Ethernet0/1]quit;返回[Quidway]vlan3;创建VLAN[Quidway-vlan3]port ethernet0/1;在VLAN中增加端口[Quidway-vlan3]port e0/1;简写方式[Quidway-vlan3]port ethernet0/1 to ethernet0/4;在VLAN中增加端口[Quidway-vlan3]port e0/1 to e0/4;简写方式[Quidway]monitor-port;指定镜像端口[Quidway]port mirror;指定被镜像端口[Quidway]port mirror int_list observing-port int_type int_num;指定镜像和被镜像[Quidway]description string;指定VLAN描述字符[Quidway]description;删除VLAN描述字符[Quidway]display vlan[vlan_id];查看VLAN设置[Quidway]stp{enable|disable};设置生成树,默认关闭[Quidway]stp priority 4096;设置交换机的优先级[Quidway]stp root{primary|secondary};设置为根或根的备份[Quidway-Ethernet0/1]stp cost 200;设置交换机端口的花费[Quidway]link-aggregation e0/1 to e0/4 ingress|both;端口的聚合[Quidway]undo link-aggregation e0/1|all;始端口为通道号[SwitchA-vlanx]isolate-user-vlan enable;设置主vlan[SwitchA]isolate-user-vlan secondary;设置主vlan包括的子vlan[Quidway-Ethernet0/2]port hybrid pvid vlan;设置vlan的pvid[Quidway-Ethernet0/2]port hybrid pvid;删除vlan的pvid[Quidway-Ethernet0/2]port hybrid vlan vlan_id_list untagged;设置无标识的vlan 如果包的vlanid与PVId一致,则去掉vlan信息.默认PVID=1。
华为路由器命令大全

华为路由器命令大全华为路由器命令大全一、基本配置命令1.1 系统设置命令- system-view:进入系统视图- sysname [名称]:设置设备名称- user-interface vty 0 4:进入虚拟终端页面- authentication-mode aaa:设置AAA身份验证方式- acl number [名称]:创建ACL组并指定编号和名称- service-type ssh telnet http:设置允许的服务类型1.2 接口配置命令- interface gigabitethernet 0/0/0:进入GigabitEthernet 接口0/0/0页面- switchport mode access:设置接口为访问模式- switchport access vlan [vlan号]:设置访问VLAN号- shutdown:关闭接口- undo shutdown:开启接口- description [描述信息]:给接口添加描述信息- ip address [IP地质] [子网掩码]:配置接口IP地质和子网掩码二、路由配置命令2.1 静态路由命令- ip route-static [目的网络] [目的子网掩码] [下一跳地质]:配置静态路由- undo ip route-static [目的网络] [目的子网掩码] [下一跳地质]:删除静态路由2.2 动态路由命令- bgp [自治系统号]:进入BGP视图- network [网络地质] [子网掩码]:将网络加入BGP路由表- peer [对端地质] as-number [对端AS号]:指定对端地质和AS号- undo peer [对端地质] as-number [对端AS号]:删除对端地质和AS号三、ACL配置命令3.1 标准ACL命令- acl number [名称]:创建标准ACL组并指定编号和名称- rule [规则编号] permit----deny [源地质] [源地质掩码]:设置允许或拒绝的源地质- undo rule [规则编号] permit----deny [源地质] [源地质掩码]:删除源地质规则3.2 扩展ACL命令- acl number [名称]:创建扩展ACL组并指定编号和名称- rule [规则编号] permit----deny [协议] [源地质] [源地质掩码] [目的地质] [目的地质掩码] [源端口号] [源端口号范围] [目的端口号] [目的端口号范围]:设置允许或拒绝的规则- undo rule [规则编号] permit----deny [协议] [源地质] [源地质掩码] [目的地质] [目的地质掩码] [源端口号] [源端口号范围] [目的端口号] [目的端口号范围]:删除规则附件:- 附件1:华为路由器常用命令速查表- 附件2:华为路由器配置示例文件法律名词及注释:- AAA:认证、授权和计费(Authentication, Authorization, and Accounting)的缩写,用于提供用户身份验证、访问控制和计费功能。
华为路由器配置

华为路由器配置华为路由器配置大全路由器(Router)是连接两个或多个网络的硬件设备,在网络间起网关的作用,是读取每一个数据包中的地址然后决定如何传送的专用智能性的网络设备。
以下是店铺精心整理的华为路由器配置大全,欢迎阅读与收藏。
华为路由器配置 11.在基于IOS的交换机上设置主机名/系统名:switch(config)# hostname hostname在基于CLI的交换机上设置主机名/系统名:switch(enable) set system name name-string2.在基于IOS的交换机上设置登录口令:switch(config)# enable password level 1 password在基于CLI的交换机上设置登录口令:switch(enable) set passwordswitch(enable) set enalbepass3.在基于IOS的交换机上设置远程访问:switch(config)# interface vlan 1switch(config-if)# ip address ip-address netmaskswitch(config-if)# ip default-gateway ip-address在基于CLI的交换机上设置远程访问:switch(enable) set interface sc0 ip-address netmask broadcast-addressswitch(enable) set interface sc0 vlanswitch(enable) set ip route default gateway4.在基于IOS的交换机上启用和浏览CDP信息:switch(config-if)# cdp enableswitch(config-if)# no cdp enable为了查看Cisco邻接设备的CDP通告信息:switch# show cdp interface [type modle/port]switch# show cdp neighbors [type module/port] [detail]在基于CLI的交换机上启用和浏览CDP信息:switch(enable) set cdp {enable|disable} module/port为了查看Cisco邻接设备的CDP通告信息:switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail]5.基于IOS的交换机的端口描述:switch(config-if)# descripqion descripqion-string基于CLI的交换机的端口描述:switch(enable)set port name module/number descripqion-string6.在基于IOS的交换机上设置端口速度:switch(config-if)# speed{10|100|auto}在基于CLI的交换机上设置端口速度:switch(enable) set port speed moudle/number {10|100|auto} switch(enable) set port speed moudle/number {4|16|auto}7.在基于IOS的交换机上设置以太网的链路模式:switch(config-if)# duplex {auto|full|half}在基于CLI的交换机上设置以太网的链路模式:switch(enable) set port duplex module/number {full|half}8.在基于IOS的交换机上配置静态VLAN:switch# vlan databbseswitch(vlan)# vlan vlan-num name vlaswitch(vlan)# exitswitch# configure teriminalswitch(config)# interface interface module/numberswitch(config-if)# switchport mode accessswitch(config-if)# switchport access vlan vlan-numswitch(config-if)# endswitch(enable) set vlan vlan-num [name name]switch(enable) set vlan vlan-num mod-num/port-list9. 在基于IOS的交换机上配置VLAN中继线:switch(config)# interface interface mod/portswitch(config-if)# switchport mode trunkswitch(config-if)# switchport trunk encapsulation {isl|dotlq} switch(config-if)# switchport trunk allowed vlan remove vlan-listswitch(config-if)# switchport trunk allowed vlan add vlan-list 在基于CLI的交换机上配置VLAN中继线:switch(enable) set trunk module/port [on|off|desirable|auto|nonegotiate]Vlan-range [isl|dotlq|dotl0|lane|negotiate]10.在基于IOS的交换机上配置VTP管理域:switch# vlan databbseswitch(vlan)# vtp domain domain-name在基于CLI的交换机上配置VTP管理域:switch(enable) set vtp [domain domain-name]11.在基于IOS的交换机上配置VTP 模式:switch# vlan databbseswitch(vlan)# vtp domain domain-nameswitch(vlan)# vtp {sever|cilent|transparent}switch(vlan)# vtp password password在基于CLI的交换机上配置VTP 模式:switch(enable) set vtp [domain domain-name] [mode{ sever|cilent|transparent }][password password]12. 在基于IOS的交换机上配置VTP版本:switch# vlan databbseswitch(vlan)# vtp v2-modeswitch(enable) set vtp v2 enable13. 在基于IOS的交换机上启动VTP剪裁:switch# vlan databbseswitch(vlan)# vtp pruning在基于CL I 的交换机上启动VTP剪裁:switch(enable) set vtp pruning enable14.在基于IOS的交换机上配置以太信道:switch(config-if)# port group group-number [distribution {source|destination}]在基于CLI的交换机上配置以太信道:switch(enable) set port channel moudle/port-range mode{on|off|desirable|auto}15.在基于IOS的交换机上调整根路径成本:switch(config-if)# spanning-tree [vlan vlan-list] cost cost在基于CLI的交换机上调整根路径成本:switch(enable) set spantree portcost moudle/port costswitch(enable) set spantree portvlancost moudle/port [cost cost][vlan-list]16.在基于IOS的交换机上调整端口ID:switch(config-if)# spanning-tree[vlan vlan-list]port-priority port-priority在基于CLI的交换机上调整端口ID:switch(enable) set spantree portpri {mldule/port}priorityswitch(enable) set spantree portvlanpri {module/port}priority [vlans]17. 在基于IOS的交换机上修改STP时钟:switch(config)# spanning-tree [vlan vlan-list] hello-time secondsswitch(config)# spanning-tree [vlan vlan-list] forward-timeseconds` switch(config)# spanning-tree [vlan vlan-list] max-age seconds在基于CLI的交换机上修改STP时钟:switch(enable) set spantree hello interval[vlan]switch(enable) set spantree fwddelay delay [vlan]switch(enable) set spantree maxage agingtiame[vlan]18. 在基于IOS的交换机端口上启用或禁用Port Fast 特征:switch(config-if)#spanning-tree portfast在基于CLI的交换机端口上启用或禁用Port Fast 特征:switch(enable) set spantree portfast {module/port}{enable|disable}19. 在基于IOS的交换机端口上启用或禁用UplinkFast 特征:switch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-second]在基于CLI的交换机端口上启用或禁用UplinkFast 特征:switch(enable) set spantree uplinkfast {enable|disable}[rate update-rate] [all-protocols off|on]20. 为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个IP地址,然后使用下列命令: switch(config)# cluster enable cluster-name21. 为了从一条中继链路上删除VLAN,可使用下列命令:switch(enable) clear trunk module/port vlan-range22. 用show vtp domain 显示管理域的VTP参数.23. 用show vtp statistics显示管理域的VTP参数.24. 在Catalyst交换机上定义TrBRF的命令如下:switch(enable) set vlan vlan-name [name name] type trbrf bridge bridge-num[stp {ieee|ibm}]25. 在Catalyst交换机上定义TrCRF的命令如下:switch (enable) set vlan vlan-num [name name] type trcrf{ring hex-ring-num|decring decimal-ring-num} parent vlan-num26. 在创建好TrBRF VLAN之后,就可以给它分配交换机端口.对于以太网交换,可以采用如下命令给VLAN分配端口:switch(enable) set vlan vlan-num mod-num/port-num27. 命令show spantree显示一个交换机端口的STP状态.28. 配置一个ELAN的LES和BUS,可以使用下列命令:ATM (config)# interface atm number.subint multiointATM(config-subif)# lane serber-bus ethernet elan-name29. 配置LECS:ATM(config)# lane databbse databbse-nameATM(lane-config-databade)# name elan1-name server-atm-address les1-nsap-addressATM(lane-config-databade)# name elan2-name server-atm-address les2-nsap-addressATM(lane-config-databade)# name …30. 创建完数据库后,必须在主接口上启动LECS.命令如下:ATM(config)# interface atm numberATM(config-if)# lane config databbse databbse-nameATM(config-if)# lane config auto-config-atm-address31. 将每个LEC配置到一个不同的ATM子接口上.命令如下:ATM(config)# interface atm number.subint multipointATM(config)# lane client ethernet vlan-num elan-num32. 用show lane server 显示LES的状态.33. 用show lane bus显示bus的状态.34. 用show lane databbse显示LECS数据库可内容.35. 用show lane client显示LEC的状态.36. 用show module显示已安装的模块列表.37. 用物理接口建立与VLAN的连接:router# configure terminalrouter(config)# interface media module/portrouter(config-if)# descripqion descripqion-stringrouter(config-if)# ip address ip-addr subnet-maskrouter(config-if)# no shutdown38. 用中继链路来建立与VLAN的连接:router(config)# interface module/port.subinterfacerouter(config-ig)# encapsulation[isl|dotlq] vlan-numberrouter(config-if)# ip address ip-address subnet-mask39. 用LANE 来建立与VLAN的连接:router(config)# interface atm module/portrouter(config-if)# no ip addressrouter(config-if)# atm pvc 1 0 5 qsaalrouter(config-if)# atm pvc 2 0 16 ilnirouter(config-if)# interface atm module/port.subinterface multipointrouter(config-if)# ip address ip-address subnet-maskrouter(config-if)# lane client ethernet elan-numrouter(config-if)# interface atm module/port.subinterface multipointrouter(config-if)# ip address ip-address subnet-namerouter(config-if)# lane client ethernet elan-namerouter(config-if)# …40. 为了在路由处理器上进行动态路由配置,可以用下列IOS命令来进行:router(config)# ip routingrouter(config)# router ip-routing-protocolrouter(config-router)# network ip-network-numberrouter(config-router)# network ip-network-number41. 配置默认路由:switch(enable) set ip route default gateway42. 为一个路由处理器分配VLANID,可在接口模式下使用下列命令:router(config)# interface interface numberrouter(config-if)# mls rp vlan-id vlan-id-num43. 在路由处理器启用MLSP:router(config)# mls rp ip44. 为了把一个外置的路由处理器接口和交换机安置在同一个VTP 域中:router(config)# interface interface numberrouter(config-if)# mls rp vtp-domain domain-name45. 查看指定的VTP域的信息:router# show mls rp vtp-domain vtp domain name46. 要确定RSM或路由器上的管理接口,可以在接口模式下输入下列命令:router(config-if)#mls rp management-interface47. 要检验MLS-RP的配置情况:router# show mls rp48. 检验特定接口上的MLS配置:router# show mls rp interface interface number49. 为了在MLS-SE上设置流掩码而又不想在任一个路由处理器接口上设置访问列表:set mls flow [destination|destination-source|full]50. 为使MLS和输入访问列表可以兼容,可以在全局模式下使用下列命令:router(config)# mls rp ip input-acl51. 当某个交换机的第3层交换失效时,可在交换机的特权模式下输入下列命令:switch(enable) set mls enable52. 若想改变老化时间的值,可在特权模式下输入以下命令:switch(enable) set mls agingtime agingtime53. 设置快速老化:switch(enable) set mls agingtime fast fastagingtime pkt_threshold54. 确定那些MLS-RP和MLS-SE参与了MLS,可先显示交换机引用列表中的内容再确定:switch(enable) show mls include55. 显示MLS高速缓存记录:switch(enable) show mls entry56. 用命令show in arp显示ARP高速缓存区的内容。
华为路由器常用基本配置命令

H3C路由器时常使用基原摆设下令之阳早格格创做[Quidway]sysname router_name 命名路由器(或者接换机) [Quidway]delete 简略Flash ROM中的摆设[Quidway]save 将摆设写进Flash ROM[Quidway]interface serial 0 加进接心摆设模式[Quidway]quit 退出接心模式到系统视图[Quidway]shutdown/undo shutdown 关关/沉开接心[Quidway]ip address ip_address subnet_mask 为接心摆设IP天面战子网掩码[Quidway]display version 隐现VRP版原号[Quidway]display current-configuration 隐现系统运止摆设疑息[Quidway]display interfaces 隐现接心摆设疑息[Quidway]display ip routing 隐现路由表[Quidway]ping ip_address 尝试搜集连通性[Quidway]tracert ip_address 尝试数据包从主机到手段天所通过的网关[Quidway]debug all 挨开所有调试疑息[Quidway]undo debug all 关关所有调试疑息[Quidway]info-center enable 开开调试疑息输出功能[Quidway]info-center console dubugging 将调试疑息输出到PC[Quidway]info-center monitor dubugging 将调试疑息输出到Telnet末端或者哑末端换机摆设下令举例(大括号{}中的选项为单选项,斜体字部分为参数值[Quidway]super password password 建改特权模式心令[Quidway]sysname switch_name 命名接换机(或者路[Quidway]interface ethernet 0/1 加进接心视图[Quidway]quit 退出系统视图[Quidway-Ethernet0/1]duplex {half|full|auto} 摆设接心单工工[Quidway-Ethernet0/1]speed {10|100|auto} 摆设接心速率[Quidway-Ethernet0/1]flow-control 开开流统造[Quidway-Ethernet0/1]mdi {across|normal|auto} 摆设MDI/MDIX[Quidway-Ethernet0/1]shutdown/undo shutdown 关关/沉开端心VLAN基原摆设下令(以Quidway S3026为例) [Quidway]vlan 3 创造并加进VLAN摆设模式,缺省时系统将所有端心加进VLAN 1,那个端心既没有克没有及被创造也没有克没有及被简略.[Quidway]undo vlan 3 简略一个VLAN[Quidway-vlan3]port ethernet 0/1 to ethernet 0/4 给VLAN减少/简略以太网接心[Quidway-Ethernet0/2]port access vlan 3 将原接心加进到指定VLAN id [Quidway-Ethernet0/2]port link-type{access|trunk|hybrid} 树坐端心处事办法,access(缺省)没有收援802.1q帧的传递,而trunk收援(用于Switch间互连),hybrid战trunk的辨别正在于trunk只允许缺省VLAN的报文收收时没有挨标签,而hybrid 允许多个VLAN报文收收时没有挨标签.端心散合摆设下令[Quidway]link-aggregation ethernet 0/7 to ethernet 0/10 {ingress|both} 摆设端心散合Port_num1为端心散合组的起初端心号,Port_num2为末止端心号ingress为接心进背荷分担办法,both为接心出背荷分担办法. STP基原摆设下令[Quidway]stp {enable|disable} 开开/关关STP 功能,默认关关,开开后所有端心皆介进STP 估计.[Quidway-Ethernet0/3]stp disable 关关指定接心上的STP功能,如某些搜集没有存留环路不妨关关STP.PPP摆设下令[Quidway-Serial0]link-protocol ppp 启拆PPP协议[Quidway-Serial0]ppp authentication-mode {pap|chap} 树坐考证典型[Quidway]local-user username password {simple|cipher} password 摆设用户列表- PAP考证摆设:主考证圆[Quidway]local-user username password {simple|cipher} password 摆设用户列表[Quidway-Serial0]ppp authentication-mode pap被考证圆[Quidway-Serial0]ppp pap local-user username password {simple|cipher} password- CHAP考证摆设:主考证圆[Quidway]local-user username password {simple|cipher} password 摆设被考证圆用户列表[Quidway-Serial0]ppp chap host hostname 摆设当天称呼[Quidway-Serial0]ppp authentication-mode chap被考证圆[Quidway]local-user username password {simple|cipher} password 摆设主考证圆用户列表[Quidway-Serial0]ppp chap user username 摆设当天称呼MP摆设下令[Quidway-Serial0]ppp mp 启拆MP协议[Quidway]ppp mp user username bind virtual-template number 建坐用户取假造模板的对于应关系[Quidway]interface virtual-template number 摆设假造接心模板[Quidway]ppp mp max-bind number 树坐假造模板最大绑定数(1-100)帧中继摆设下令[Quidway-Serial0]link-protocol fr {mfr|ietf|nonstandard} 启拆帧中继协议:IETF、Cisco兼容[Quidway-Serial0]fr interface-type {dte|dce|nni} 摆设帧中继接心典型,NNI为帧中继接换机之间的接心.若配为DCE或者NNI,则须先使能fr switching.[Quidway-Serial0]fr lmi type {q933a|ansi|cisco-compatible} 摆设LMI协议典型[Quidway-Serial0]fr dlci dlci_number 摆设一条当天实电路号[Quidway-Serial0]fr map {ip|ipx} protocol-address dlcidlci_number 建坐当天DLCI到对于端协议天面的映射[Quidway-Serial0]fr inarp [ip|ipx] [dlci_number] 摆设Inverse ARP动向映射[Quidway]interface type number.subinterface_number 创造并加进子接心摆设模式RIP协议摆设下令[Quidway]display rip 隐现RIP摆设疑息[Quidway]rip 开用并加进RIP摆设模式[Quidway-rip]network {network_number|all} 正在指定搜集上使能RIP[Quidway-rip]peer ip_address 摆设报文的定面传递[Quidway-Ethernet0]rip version {1|2 [bcast|mcast]} 指定RIP版原及传递办法[Quidway-Serial0]rip work 指定接心处事状态(共rip input,rip output)[Quidway-rip]auto-summary 摆设RIP-2路由散合[Quidway-Serial0]rip authentication simple password 摆设RIP-2明文认证暗号[Quidway-Serial0]rip authentication md5 key-string string 摆设RIP-2 MD5稀文认证暗号串[Quidway-Serial0]rip authentication md5 type {nonstandard-compatible|usual} 指定MD5典型[Quidway]debugging rip packet 挨开RIP调试开关[Quidway]info-center console 将调试疑息输出到PC 固态路由摆设下令[Quidway]ip route ip_address subnet_mask{interface_name|gateway_address} [preferencepreference_value] [reject|black_bone][下令证明] reject:所有来往该手段天的报文均被拾弃,报告源主机没有成达.black_bone:所有来往该手段天的报文均被拾弃,短亨知源主机.当惟有下一跳的接心是PPP或者HDLC接心才搞写interface_name,如Serial0,可则只可写gateway_address(下一跳天面).[Quidway]ip route 129.1.0.0 16 Serial2[Quidway]ip route 0.0.0.0 0.0.0.0 10.0.0.2 摆设缺省路由. OSPF摆设下令[Quidway]router id ip_address 摆设Router ID[Quidway]ospf enable 开用OSPF协议[Quidway-Serial0]ospf enable area area_id 摆设目前接心所属的OSPF天区。
华为路由器常用基本配置命令

H3C路由器经常使用基本配置命令[Quidway]sysname router_name 命名路由器(或交换机)[Quidway]delete 删除Flash ROM中的配置[Quidway]save 将配置写入Flash ROM[Quidway]interface serial 0 进入接口配置模式[Quidway]quit 退出接口模式到系统视图[Quidway]shutdown/undo shutdown 关闭/重启接口[Quidway]ip address ip_address subnet_mask 为接口配置IP地址和子网掩码[Quidway]display version 显示VRP版本号[Quidway]display currentconfiguration 显示系统运行配置信息[Quidway]display interfaces 显示接口配置信息[Quidway]display ip routing 显示路由表[Quidway]ping ip_address 测试网络连通性[Quidway]tracert ip_address 测试数据包从主机到目的地所经过的网关[Quidway]debug all 掀开所有调试信息[Quidway]undo debug all 关闭所有调试信息[Quidway]infocenter enable 开启调试信息输出功能[Quidway]infocenter console dubugging 将调试信息输出到PC[Quidway]infocenter monitor dubugging 将调试信息输出到Telnet终端或哑终端换机配置命令举例(年夜括号{}中的选项为单选项,斜体字部分为参数值[Quidway]super password password 修改特权模式口令[Quidway]sysname switch_name 命名交换机(或路[Quidway]interface ethernet 0/1 进入接口视图[Quidway]quit 退出系统视图[QuidwayEthernet0/1]duplex {half|full|auto} 配置接口双工工[QuidwayEthernet0/1]speed {10|100|auto} 配置接口速率[QuidwayEthernet0/1]flowcontrol 开启流控制[QuidwayEthernet0/1]mdi {across|normal|auto} 配置MDI/MDIX[QuidwayEthernet0/1]shutdown/undo shutdown 关闭/重启端口VLAN基本配置命令(以Quidway S3026为例) [Quidway]vlan 3 创建并进入VLAN配置模式,缺省时系统将所有端口加入VLAN 1,这个端口既不克不及被创建也不克不及被删除。
华为路由器配置命令表

华为路由器配置命令表计算机命令~~~~~~~~~~PCA login: root ;使用root用户password: linux ;口令是linux# shutdown -h now ;关机# init 0 ;关机# logout ;用户注销# login ;用户登录# ifconfig ;显示IP地址# ifconfig eth0 <ip address> netmask <netmask> ;设置IP地址# ifconfig eht0 <ip address> netmask <netmask> down ;禁用IP地址# route add default gw <ip> ;设置网关# route del default gw <ip> ;删除网关# route ;显示网关# ping <ip> ;发ECHO 包# telnet <ip> ;远程登录----------------------------------------交换机命令~~~~~~~~~~[Quidway]dis cur ;显示当前配置[Quidway]display current-configuration ;显示当前配置[Quidway]display interfaces ;显示接口信息[Quidway]display vlan all ;显示路由信息[Quidway]display version ;显示版本信息[Quidway]super password ;修改特权用户密码[Quidway]sysname ;交换机命名[Quidway]interface ethernet 0/1 ;进入接口视图[Quidway]interface vlan x ;进入接口视图[Quidway]rip ;三层交换支持[Quidway]local-user ftp[Quidway]user-interface vty 0 4 ;进入虚拟终端[S3026-ui-vty0-4]authentication-mode password ;设置口令模式[S3026-ui-vty0-4]set authentication-mode password simple 222 ;设置口令[S3026-ui-vty0-4]user privilege level 3 ;用户级别[Quidway]interface ethernet 0/1 ;进入端口模式[Quidway]int e0/1 ;进入端口模式[Quidway-Ethernet0/1]duplex {half|full|auto} ;配置端口工作状态[Quidway-Ethernet0/1]speed {10|100|auto} ;配置端口工作速率[Quidway-Ethernet0/1]flow-control ;配置端口流控[Quidway-Ethernet0/1]mdi {across|auto|normal} ;配置端口平接扭接[Quidway-Ethernet0/1]port link-type {trunk|access|hybrid} ;设置端口工作模式[Quidway-Ethernet0/1]port access vlan 3 ;当前端口加入到VLAN[Quidway-Ethernet0/2]port trunk permit vlan {ID|All} ;设trunk 允许的VLAN[Quidway-Ethernet0/3]port trunk pvid vlan 3 ;设置trunk 端口的PVID[Quidway-Ethernet0/1]undo shutdown ;激活端口[Quidway-Ethernet0/1]shutdown ;关闭端口[Quidway-Ethernet0/1]quit ;返回[Quidway]vlan 3 ;创建VLAN[Quidway-vlan3]port ethernet 0/1 ;在VLAN 中增加端口[Quidway-vlan3]port e0/1 ;简写方式[Quidway-vlan3]port ethernet 0/1 to ethernet 0/4 ;在VLAN 中增加端口[Quidway-vlan3]port e0/1 to e0/4 ;简写方式[Quidway]monitor-port <interface_type interface_num> ;指定镜像端口[Quidway]port mirror <interface_type interface_num> ;指定被镜像端口[Quidway]port mirror int_list observing-port int_type int_num ;指定镜像和被镜像[Quidway]description string ;指定VLAN描述字符[Quidway]description ;删除VLAN描述字符[Quidway]display vlan [vlan_id] ;查看VLAN 设置[Quidway]stp {enable|disable} ;设置生成树,默认关闭[Quidway]stp priority 4096 ;设置交换机的优先级[Quidway]stp root {primary|secondary} ;设置为根或根的备份[Quidway-Ethernet0/1]stp cost 200 ;设置交换机端口的花费[Quidway]link-aggregation e0/1 to e0/4 ingress|both ; 端口的聚合[Quidway]undo link-aggregation e0/1|all ; 始端口为通道号[SwitchA-vlanx]isolate-user-vlan enable ;设置主vlan[SwitchA]isolate-user-vlan <x> secondary <list> ;设置主vlan包括的子vlan[Quidway-Ethernet0/2]port hybrid pvid vlan <id> ;设置vlan 的pvid[Quidway-Ethernet0/2]port hybrid pvid ;删除vlan 的pvid[Quidway-Ethernet0/2]port hybrid vlan vlan_id_list untagged ;设置无标识的vlan如果包的vlan id与PVId一致,则去掉vlan信息. 默认PVID=1。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
华为路由器配置命令大全
华为路由器是世界一流的品牌,很多人都不太明白里面的一些命令,下文是店铺为大家提供的华为路由器配置命令大全,欢迎大家阅读。
华为路由器配置命令大全
基本命令en 进入特权模式conf 进入全局配置模式in s0 进入serial 0 端口配置ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 添加ip 地址和掩码,电信分配enca hdlc/ppp 捆绑链路协议 hdlc 或者 pppip unn e0 exit 回到全局配置模式in e0 进入
基本命令
en 进入特权模式
conf 进入全局配置模式
in s0 进入 serial 0 端口配置
ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 添加ip 地址和掩码,电信分配
enca hdlc/ppp 捆绑链路协议 hdlc 或者 ppp
ip unn e0
exit 回到全局配置模式
in e0 进入以太接口配置
ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 添加ip 地址和掩码,电信分配
exit 回到全局配置模式
ip route 0.0.0.0 0.0.0.0 s 0 添加路由表
ena password 口令
write
exit
以上根据中国电信 ddn 专线多数情况应用
普通用户模式
enable 转入特权用户模式
exit 退出配置
help 系统帮助简述
language 语言模式切换
ping 检查网络主机连接及主机是否可达show 显示系统运行信息
telnet 远程登录功能
tracert 跟踪到目的地经过了哪些路由器
特权用户模式
#
clear 清除各项统计信息
clock 管理系统时钟
configure 进入全局配置模式
debug 开启调试开关
disable 返回普通用户模式
download 下载新版本软件和配置文件erase 擦除FLASH中的配置
exec-timeout 打开EXEC超时退出开关exit 退出配置
first-config 设置或清除初次配置标志help 系统帮助简述
language 语言模式切换
monitor 打开用户屏幕调试信息输出开关no 关闭调试开关
ping 检查网络主机连接及主机是否可达reboot 路由器重启
setup 配置路由器参数
show 显示系统运行信息
telnet 远程登录功能
tracert 跟踪到目的地经过了哪些路由器unmonitor 关闭用户屏幕调试信息输出开关
write 将当前配置参数保存至FLASH MEM中全局配置模式
aaa-enable 使能配置AAA(认证,授权和计费) access-list 配置标准访问表
arp 设置静态ARP人口。