关于华为路由器命令的精讲

网络 路由交换
了解一些华为路由器命令,对于使用华为路由的用户是很有帮助的,其实对路由器进行简单的配置,就能够起到很好的效果,特别是安全方面。

相信很多使用华为路由的用户,对于华为路由器命令不是特别的熟悉,而且很不注重路由器配置,在华为路由器命令中,我们可以看到很多实用的命令,能够让我们的路由器更加的“健康”,同时也使得网络更加安全,不给黑客、病毒侵入的机会,以下就是给大家整理的华为路由器命令大全,这里边几乎包含了所有的华为路由器命令,希望对您有所帮助。

  1. displaycurrent-configuration;显示当前配置  
  2. displayinterfaces;显示接口  
  3. displayvlanall;显示路由信息  
  4. displayversion;显示版本信息  
  5. superpassword  
  6. sysname;交换机命名  
  7. interfaceethernet0/1  
  8. interfacevlanx;进入接口视图  
  9. ipaddress10.65.1.1255.255.0.0  
  10. route-static0.0.0.00.0.0.010.65.1.2;静态路由=网关  
  11. ]rip  
  12. vlan3;创建VLAN  
  13. portethernet0/1 ;在VLAN中增加端口  
  14. porte0/1 ;简写方式  
  15. portethernet0/1toethernet0/4 ;在VLAN中增加端口  
  16. porte0/1toe0/4 ;简写方式  
  17. descriptionstring ;指定VLAN描述字符  
  18. description ;删除VLAN描述字符  
  19. displayvlan[vlan_id];查看VLAN设置  
  20. stp{enable|disable}  
  21. stppriority4096 ;设置交换机的优先级  
  22. stproot{primary|secondary} ;设置为根或根的备份  
  23. stpcost200  
  24. link-aggregatione0/1toe0/4ingress|both  
  25. undolink-aggregatione0/1|all  
  26. [SwitchA-vlanx]isolate-user-vlanenable   
  27. [SwitchA]isolate-user-vlan<x>secondary<list>   
  28. [switcha]port-iaolateenable  
  29. porthybridpvidvlan<id> ;设置vlan的pvid  
  30. porthybridpvid ;删除vlan的pvid  
  31. displayversion;显示版本信息  
  32. displaycurrent-configuration;显示当前配置  
  33. displayinterfaces;显示接口信息  
  34. displayiproute;显示路由信息  
  35. sysname;更改主机名  
  36. superpasswrod;设置口令  
  37. interfaceserial0;进入接口  
  38. ipaddress<ip><mask|mask_len>;配置端口IP地址  
  39. []undoshutdown;激活端口  
  40. link-protocolhdlc;绑定hdlc协议  
  41. ]user-interfacevty04  
  42. authentication-modepassword  
  43. setauthentication-modepasswordsimple222  
  44. userprivilegelevel3  
  45. quit  
  46. hdlcallserial0;显示所有信息  
  47. debugginghdlceventserial0;调试事件信息  
  48. debugginghdlcpacketserial0;显示包的信息  
  49.  
  50. 动态路由:  
  51. rip;设置动态路由  
  52. ]ripwork;设置工作允许  
  53. ripinput;设置入口允许  
  54. ripoutput;设置出口允许  
  55. network1.0.0.0 ;设置交换路由网络  
  56. networkall;设置与所有网络交换  
  57. peerip-address;  
  58. ripversion1;设置工作在版本1  
  59. ripversion2multicast;设版本2,多播方式  
  60. ripsplit-horizon;水平分隔  
  61. routerid  
  62. ospfenable  
  63. import-routedirect  
  64. [Quidway-Serial0]ospfenablearea<area_id> 
  65. 标准访问列表命令格式如下:  
  66. acl<acl-number>[match-orderconfig|auto]  
  67. rule[normal|special]{permit|deny}[sourcesource-addrsource-wildcard|any]  
  68.  

 

动态路由

 

  1. rip  
  2. ]ripwork  
  3. ripinput  
  4. ripoutput  
  5. network1.0.0.0   
  6. networkall  
  7. peerip-address  
  8. ripversion1  
  9. ripsplit-horizon  
  10. routerid  
  11. ospfenable  
  12. import-routedirect  
  13. [Quidway-Serial0]ospfenablearea<area_id> 
  14. 标准访问列表命令格式如下:  
  15. acl<acl-number>[match-orderconfig|auto]  
  16. rule[normal|special]{permit|deny}  
  17. [sourcesource-addrsource-wildcard|any] 

扩展访问控制列表配置命令

 

  1. 配置TCP/UDP协议的扩展访问列表:  
  2. rule{normal|special}{permit|deny}{tcp|udp}source{  
  3. <ipwild>|any}destination<ipwild>|any}[operate]  
  4.  
  5. 配置ICMP协议的扩展访问列表:  
  6. rule{normal|special}{permit|deny}icmpsource  
  7. {<ipwild>|any]destination{<ipwild>|any]  
  8. [icmp-code][logging]  
  9.  
  10. 扩展访问控制列表操作符的含义  
  11. equalportnumber  
  12. greater-thanportnumber  
  13. less-thanportnumber  
  14. not-equalportnumber  
  15. rangeportnumber1portnumber2  
  16.  
  17. PPP设置:  
  18. local-userftppassword{simple|cipher}  
  19. aaaservice-typeftp  
  20. ftpserverenable  
  21.  

 

 

责任编辑:王晓东 来源: NET130
相关推荐

2010-07-28 15:26:10

路由器命令

2010-08-09 10:31:00

华为路由器路由配置命令

2009-12-11 15:27:26

华为路由器配置

2010-08-09 13:48:22

路由器配置命令

2010-08-09 10:11:04

华为路由器display命令

2010-08-20 11:55:30

华为路由器配置

2009-11-10 14:31:13

华为路由器配置

2009-12-01 16:01:21

华为路由器配置

2011-07-29 11:10:06

华为路由器命令

2010-08-26 16:55:05

华为路由器命令

2013-01-04 10:08:24

华为路由器命令

2010-08-09 10:02:43

华为路由器IP性能配置

2009-12-16 14:30:29

华为路由器配置

2011-07-29 10:08:24

华为路由器命令

2009-12-03 19:35:53

华为路由器

2009-11-30 14:52:01

华为路由器配置

2010-07-28 15:37:23

路由器配置命令

2009-12-16 16:33:18

华为路由器配置命令

2009-12-11 15:21:15

华为路由器CISCO路由器

2009-11-10 10:10:01

华为路由器
点赞
收藏

51CTO技术栈公众号