华为路由器常用基本配置命令
- 格式:docx
- 大小:10.60 KB
- 文档页数:5
华为路由器配置命令华为路由器配置命令大全学习华为交换机,就要记得配置基本命令,下面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高速缓存区的内容。
华为路由器交换机常用命令一、设备管理命令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地质。
华为路由器基本配置命令华为路由器基本配置命令I. 登录华为路由器1. 打开浏览器,输入华为路由器的管理地址:,并按下Enter 键。
2. 在登录页面中,输入用户名和密码,登录按钮。
II. 网络设置1. 在菜单栏中选择“网络设置”选项。
2. 在网络设置页面中,配置路由器的IP地址、子网掩码、网关、DHCP等信息。
III. WLAN设置1. 在菜单栏中选择“WLAN设置”选项。
2. 在WLAN设置页面中,配置无线网络的SSID、加密方式、密码等参数。
IV. DHCP设置1. 在菜单栏中选择“DHCP设置”选项。
2. 在DHCP设置页面中,配置DHCP服务器的起始IP地址、终止IP地址、租期等参数。
V. 防火墙设置1. 在菜单栏中选择“防火墙设置”选项。
2. 在防火墙设置页面中,配置入站规则、出站规则、端口转发等防火墙规则。
VI. 路由设置1. 在菜单栏中选择“路由设置”选项。
2. 在路由设置页面中,配置静态路由、动态路由等路由表信息。
VII. 安全设置1. 在菜单栏中选择“安全设置”选项。
2. 在安全设置页面中,配置访问控制、端口映射、VPN等安全策略。
附件:本文档无附件。
法律名词及注释:1. IP地址:Internet Protocol Address,互联网协议地址的简称,是用于识别和定位计算机设备的数字标识。
2. 子网掩码:Subnet Mask,用于划分IP地址中网络地址和主机地址的一个掩码。
3. 网关:Gateway,是一个网络通信设备,用于连接不同网络之间的数据通信。
4. DHCP:Dynamic Host Configuration Protocol,动态主机配置协议,用于自动分配IP地址和其他网络配置参数。
5. WLAN:Wireless Local Area Network,无线局域网,用于在局域网范围内实现无线数据通信。
6. SSID:Service Set Identifier,服务集标识,是无线网络的名称。
华为路由器配置命令一、access-list 用于创建访问规则。
(1)创建标准访问列表access-list [ normal | special ] listnumber1 { permit | deny } source-addr [ source-mask ](2)创建扩展访问列表access-list [ normal | special ] listnumber2 { permit | deny } protocol source-addr source-mask [ operator port1 [ port2 ] ] dest-addr dest-mask [ operator port1 [ port2 ] | icmp-type [ icmp-code ] ] [ log ](3)删除访问列表no access-list { normal | special } { all | listnumber [ subitem ] } 【参数说明】normal 指定规则加入普通时间段。
special 指定规则加入特殊时间段。
listnumber1 是1到99之间的一个数值,表示规则是标准访问列表规则。
listnumber2 是100到199之间的一个数值,表示规则是扩展访问列表规则。
permit 表明允许满足条件的报文通过。
deny 表明禁止满足条件的报文通过。
protocol 为协议类型,支持ICMP、TCP、UDP等,其它的协议也支持,此时没有端口比较的概念;为IP时有特殊含义,代表所有的IP协议。
source-addr 为源地址。
source-mask 为源地址通配位,在标准访问列表中是可选项,不输入则代表通配位为0.0.0.0。
dest-addr 为目的地址。
dest-mask 为目的地址通配位。
operator[可选] 端口操作符,在协议类型为TCP或UDP时支持端口比较,支持的比较操作有:等于(eq)、大于(gt)、小于(lt)、不等于(neq)或介于(range);如果操作符为range,则后面需要跟两个端口。
华为路由器基础配置华为路由器基础配置华为路由器是一款高性能路由器,广泛应用于家庭和中小企业网络中。
正确配置华为路由器可以使其发挥最佳的网络性能和安全性。
下面我们将介绍华为路由器的基础配置,帮助大家更好地使用这款设备。
一、网络设置1、WAN口设置:根据您的上网方式,选择正确的WAN口连接类型,如动态IP(DHCP)、静态IP等。
确保已正确设置WAN口IP地址、子网掩码和网关。
2、LAN口设置:设置LAN口IP地址和子网掩码。
确保LAN口和WAN口在同一网段内。
3、Wi-Fi设置:根据您的需求,设置Wi-Fi名称(SSID)和密码。
建议使用强密码来确保网络安全。
4、端口映射:根据您的需求,设置端口映射,将内网IP地址的端口映射到公网IP地址。
二、安全设置1、密码设置:为路由器设置管理员密码,确保密码强度足够,避免使用简单密码。
2、防火墙设置:开启防火墙,防止来自公网的未经授权的访问。
根据需要设置防火墙规则,允许必要的网络流量通过。
3、网络安全控制:根据您的需求,设置网络安全控制,如IP与MAC 地址绑定、访问控制列表(ACL)等。
三、其他功能配置1、DHCP服务:根据您的网络拓扑和设备数量,设置DHCP服务,为网络中的设备自动分配IP地址。
2、动态IP分配:配置动态IP(DHCP)分配,使客户端设备能够自动获取IP地址和DNS服务器地址。
3、无线AP设置:如果您需要扩展无线网络覆盖范围,可以配置无线AP模式,将多个AP设备连接在一起形成一个无线网络。
4、模块配置:根据您的需求,添加所需的模块,如防火墙模块、VPN 模块等。
以上是华为路由器基础配置的简要介绍。
正确配置华为路由器将有助于提高网络性能和安全性。
如果大家有任何疑问,建议参考华为路由器用户手册或咨询专业技术人员。
思科路由器查看配置命令在计算机网络管理中,路由器是网络拓扑结构中不可或缺的一部分。
特别是在复杂的网络环境中,思科路由器扮演着至关重要的角色。
华为路由器常⽤命令应⽤程序如 Ping、tracert 、FTP、telnet1.使⽤PING 命令操作步骤pc设备配置<Huawei>SYSNAME PC[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.1 24AR1 设备配置[Huawei]sysname AR1[AR1]int g0/0/0[AR1-GigabitEthernet0/0/0]ip address 192.168.1.2 24在PC上 PING AR1 设备[PC]ping 192.168.1.1PING 192.168.1.1: 56 data bytes, press CTRL_C to breakReply from 192.168.1.1: bytes=56 Sequence=1 ttl=255 time=70 msReply from 192.168.1.1: bytes=56 Sequence=2 ttl=255 time=1 msReply from 192.168.1.1: bytes=56 Sequence=3 ttl=255 time=1 msReply from 192.168.1.1: bytes=56 Sequence=4 ttl=255 time=1 msReply from 192.168.1.1: bytes=56 Sequence=5 ttl=255 time=1 ms--- 192.168.1.1 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 1/14/70 ms2.使⽤tracert 路由追踪在PC上操作步骤如下[PC]tracert 192.168.1.2traceroute to 192.168.1.2(192.168.1.2), max hops: 30 ,packet length: 40,pressCTRL_C to break1 192.168.1.2 80 ms 20 ms 20 ms3.配置telnet 远程登陆RT2 上配置命令[Huawei]user-interface vty 0[Huawei-ui-vty0]authentication-mode passwordPlease configure the login password (maximum length 16):HUAWEI[Huawei-ui-vty0]USER privilege level 3[Huawei-ui-vty0]SET authentication password cipher HUAWEIR1 上telnet R2<Huawei>TELNET 192.168.1.2Press CTRL_] to quit telnet modeTrying 192.168.1.2 ...Connected to 192.168.1.2 ...Login authenticationPassword:<AR2><AR2>4. 配置 FTP 服务器AR2 配置[AR2]ftp server enable[AR2]aaa[AR2-aaa]local-user aaa password cipher bbb[AR2-aaa]local-user aaa privilege level 3[AR2-aaa]local-user aaa ftp-directory flash:/[AR2-aaa]local-user aaa service-type ftpAR1 上登陆 FTP<AR1>ftp 192.168.1.2Trying 192.168.1.2 ...Press CTRL+K to abortConnected to 192.168.1.2.220 FTP service ready.User(192.168.1.2:(none)):aaa331 Password required for aaa.Enter password:230 User logged in.[AR1-ftp]在AR1 上查看AR2 FTP ⽂件[AR1-ftp]dir200 Port command okay.150 Opening ASCII mode data connection for *.drwxrwxrwx 1 noone nogroup 0 Jul 12 01:25 dhcp-rwxrwxrwx 1 noone nogroup 121802 May 26 2014 portalpage.zip-rwxrwxrwx 1 noone nogroup 2263 Jul 12 01:25 statemach.efs-rwxrwxrwx 1 noone nogroup 828482 May 26 2014 sslvpn.zipdrwxrwxrwx 1 noone nogroup 0 Jul 12 01:25 .226 Transfer complete.FTP: 327 byte(s) received in 0.060 second(s) 5.45Kbyte(s)/sec.下载⽂件[AR1-ftp]get sslvpn.zipWarning: The file sslvpn.zip already exists. Overwrite it? (y/n)[n]:y200 Port command okay.150 Opening ASCII mode data connection for sslvpn.zip.1% 2% 3% 4% 5% 6% 7% 8% 9%10%11%12%13%14%15%16%17%18%19%20%21%22%23%24%25%26%27%28%29%30%31%32%33%34%35%36%37%38%39%40% 41%42%43%44%45%46%47%48%49%50%51%52%53%54%55%56%57%58%59%60% 61%62%63%64%65%66%67%68%69%70%71%72%73%74%75%76%77%78%79%80% 81%82%83%84%85%86%87%88%89%90%91%92%93%94%95%96%97%98%99%226 Transfer complete.FTP: 828482 byte(s) received in 3.050 second(s) 271.63Kbyte(s)/sec.。
H3C路由器常用根本设置装备摆设敕令【2 】[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 dlci dlci_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} [preference preference_value] [reject|black_bone][敕令解释] reject:任何去往该目标地的报文均被丢弃,通知源主机不可达.black_bone:任何去往该目标地的报文均被丢弃,不通知源主机.当只有下一跳的接口是PPP或HDLC接谈锋能写interface_name,如Serial0,不然只能写gateway_address(下一跳地址).[敕令举例] [Quidway]ip route 129.1.0.0 16 10.0.0.2[Quidway]ip route 129.1.0.0 255.255.0.0 10.0.0.2[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区域。