關于華為路由器命令的精講
作者:佚名
了解一些華為路由器命令,對于使用華為路由的用戶是很有幫助的,其實對路由器進行簡單的配置,就能夠起到很好的效果,特別是安全方面。
相信很多使用華為路由的用戶,對于華為路由器命令不是特別的熟悉,而且很不注重路由器配置,在華為路由器命令中,我們可以看到很多實用的命令,能夠讓我們的路由器更加的“健康”,同時也使得網絡更加安全,不給黑客、病毒侵入的機會,以下就是給大家整理的華為路由器命令大全,這里邊幾乎包含了所有的華為路由器命令,希望對您有所幫助。
- displaycurrent-configuration;顯示當前配置
- displayinterfaces;顯示接口
- displayvlanall;顯示路由信息
- displayversion;顯示版本信息
- superpassword
- sysname;交換機命名
- interfaceethernet0/1
- interfacevlanx;進入接口視圖
- ipaddress10.65.1.1255.255.0.0
- route-static0.0.0.00.0.0.010.65.1.2;靜態路由=網關
- ]rip
- vlan3;創建VLAN
- portethernet0/1 ;在VLAN中增加端口
- porte0/1 ;簡寫方式
- portethernet0/1toethernet0/4 ;在VLAN中增加端口
- porte0/1toe0/4 ;簡寫方式
- descriptionstring ;指定VLAN描述字符
- description ;刪除VLAN描述字符
- displayvlan[vlan_id];查看VLAN設置
- stp{enable|disable}
- stppriority4096 ;設置交換機的優先級
- stproot{primary|secondary} ;設置為根或根的備份
- stpcost200
- link-aggregatione0/1toe0/4ingress|both
- undolink-aggregatione0/1|all
- [SwitchA-vlanx]isolate-user-vlanenable
- [SwitchA]isolate-user-vlan<x>secondary<list>
- [switcha]port-iaolateenable
- porthybridpvidvlan<id> ;設置vlan的pvid
- porthybridpvid ;刪除vlan的pvid
- displayversion;顯示版本信息
- displaycurrent-configuration;顯示當前配置
- displayinterfaces;顯示接口信息
- displayiproute;顯示路由信息
- sysname;更改主機名
- superpasswrod;設置口令
- interfaceserial0;進入接口
- ipaddress<ip><mask|mask_len>;配置端口IP地址
- []undoshutdown;激活端口
- link-protocolhdlc;綁定hdlc協議
- ]user-interfacevty04
- authentication-modepassword
- setauthentication-modepasswordsimple222
- userprivilegelevel3
- quit
- hdlcallserial0;顯示所有信息
- debugginghdlceventserial0;調試事件信息
- debugginghdlcpacketserial0;顯示包的信息
- 動態路由:
- rip;設置動態路由
- ]ripwork;設置工作允許
- ripinput;設置入口允許
- ripoutput;設置出口允許
- network1.0.0.0 ;設置交換路由網絡
- networkall;設置與所有網絡交換
- peerip-address;
- ripversion1;設置工作在版本1
- ripversion2multicast;設版本2,多播方式
- ripsplit-horizon;水平分隔
- routerid
- ospfenable
- import-routedirect
- [Quidway-Serial0]ospfenablearea<area_id>
- 標準訪問列表命令格式如下:
- acl<acl-number>[match-orderconfig|auto]
- rule[normal|special]{permit|deny}[sourcesource-addrsource-wildcard|any]
動態路由
- rip
- ]ripwork
- ripinput
- ripoutput
- network1.0.0.0
- networkall
- peerip-address
- ripversion1
- ripsplit-horizon
- routerid
- ospfenable
- import-routedirect
- [Quidway-Serial0]ospfenablearea<area_id>
- 標準訪問列表命令格式如下:
- acl<acl-number>[match-orderconfig|auto]
- rule[normal|special]{permit|deny}
- [sourcesource-addrsource-wildcard|any]
擴展訪問控制列表配置命令
- 配置TCP/UDP協議的擴展訪問列表:
- rule{normal|special}{permit|deny}{tcp|udp}source{
- <ipwild>|any}destination<ipwild>|any}[operate]
- 配置ICMP協議的擴展訪問列表:
- rule{normal|special}{permit|deny}icmpsource
- {<ipwild>|any]destination{<ipwild>|any]
- [icmp-code][logging]
- 擴展訪問控制列表操作符的含義
- equalportnumber
- greater-thanportnumber
- less-thanportnumber
- not-equalportnumber
- rangeportnumber1portnumber2
- PPP設置:
- local-userftppassword{simple|cipher}
- aaaservice-typeftp
- ftpserverenable
責任編輯:王曉東
來源:
NET130