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