华为 路由交换机命令大全.docx

上传人:b****8 文档编号:9369341 上传时间:2023-05-18 格式:DOCX 页数:19 大小:24.18KB
下载 相关 举报
华为 路由交换机命令大全.docx_第1页
第1页 / 共19页
华为 路由交换机命令大全.docx_第2页
第2页 / 共19页
华为 路由交换机命令大全.docx_第3页
第3页 / 共19页
华为 路由交换机命令大全.docx_第4页
第4页 / 共19页
华为 路由交换机命令大全.docx_第5页
第5页 / 共19页
华为 路由交换机命令大全.docx_第6页
第6页 / 共19页
华为 路由交换机命令大全.docx_第7页
第7页 / 共19页
华为 路由交换机命令大全.docx_第8页
第8页 / 共19页
华为 路由交换机命令大全.docx_第9页
第9页 / 共19页
华为 路由交换机命令大全.docx_第10页
第10页 / 共19页
华为 路由交换机命令大全.docx_第11页
第11页 / 共19页
华为 路由交换机命令大全.docx_第12页
第12页 / 共19页
华为 路由交换机命令大全.docx_第13页
第13页 / 共19页
华为 路由交换机命令大全.docx_第14页
第14页 / 共19页
华为 路由交换机命令大全.docx_第15页
第15页 / 共19页
华为 路由交换机命令大全.docx_第16页
第16页 / 共19页
华为 路由交换机命令大全.docx_第17页
第17页 / 共19页
华为 路由交换机命令大全.docx_第18页
第18页 / 共19页
华为 路由交换机命令大全.docx_第19页
第19页 / 共19页
亲,该文档总共19页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

华为 路由交换机命令大全.docx

《华为 路由交换机命令大全.docx》由会员分享,可在线阅读,更多相关《华为 路由交换机命令大全.docx(19页珍藏版)》请在冰点文库上搜索。

华为 路由交换机命令大全.docx

华为路由交换机命令大全

华为路由交换命令大全

华为一般模式(用户户级)命令:

(每条命令都可以+?

查看其配置参数)

>?

enableTurnonprivilegedcommands转入特权用户模式

exitExitfromEXEC退出配置

helpDescriptionoftheinteractivehelpsystem系统帮助简述

languageSwitchlanguagemode(English,Chinese)语言模式切换

pingSendechomessages检查网络主机连接及主机是否可达

showShowrunningsysteminformation显示系统运行信息

telnetOpenatelnetconnection远程登录功能

tracertTraceroutetodestination跟踪到目的地经过了哪些路由器

华为特权模式命令:

#?

clearResetfunctions清除各项统计信息

clockManagethesystemclock管理系统时钟

configureEnterconfigurationmode进入全局配置模式

copyUploadconfigfiletotftpserver上载配置文件到TFTP服务器

debugDebuggingfunctions开启调试开关

disableTurnoffprivilegedcommands返回普通用户模式

downloadDownloadthenewversionconfig下载新版本配置文件

eraseErasetheconfigurationfileinflashornvram擦除FLASH或NVRAM中的配置文件

exec-timeoutEnableEXECtimeout打开EXEC超时退出开关

exitExitfromEXEC退出配置

first-configSetorclearthefirstconfigflag设置或清除初次配置标志

getDownloadconfigfilefromtftpserver从TFTP服务器下载配置文件

helpDescriptionoftheinteractivehelpsystem系统帮助简述

languageSwitchlanguagemode(English,Chinese)语言模式切换

noDisablesomeparameterswitchs关闭某些参数开关

pingSendechomessages检查网络主机连接及主机是否可达

rebootReboottherouter路由器重启

setupRuntheSETUPcommandfacility配置路由器参数

showShowrunningsysteminformation显示系统运行信息

telnetOpenatelnetconnection远程登录功能

tracertTraceroutetodestination跟踪到目的地经过了哪些路由器

writeWriterunningconfigurationtoflashornvram将当前配置参数保存至FLASH或NVRAM中

华为全局配置模式命令:

(config)#?

aaa-enableEnableAAA(Authentication,Authorizationand使能配置AAA(认证,授权和计费)

Accounting)

access-listConfigurestructureofaccess-list配置标准访问表

arpSetastaticARPentry设置静态ARP入口

chat-scriptDefineamodemchatscript生成一个用在modem上的执行脚本

cryptoConfigIPSecorcryptomap设置IPSec相关参数

custom-listBuildthecustomqueuelist创建定制队列列表

dialer-listCreateadialer-list创建dialer-list

dlswConfiguredlsw配置DLSw

dram-waitInsertdramwaitstate设置DRAM等待状态

enableModifyenablepasswordparameters修改ENABLE口令

exitExitfromconfiguremode退出全局配置模式

firewallConfigurefirewallstatus配置防火墙状态

flow-intervalsettimeofflowcontrol设置流量控制时间间隔

frame-relayglobalframerelayconfigurationcommands帧中继全局配置命令集

ftp-serverFiletransferProtocolFTP服务器

helpDescriptionoftheinteractivehelpsystem系统帮助命令简述

hostAddhost'snameandIPaddress添加主机名称和其IP地址

hostnameModifyhostnamec修改主机名

ifquelenChangeinterfacequeuelength更改接口队列长度

interfaceSelectaninterfacetoconfigure选择配置接口

ipGlobalipconfigurationsubcommands全局IP配置命令子集

ipxNovellIPXglobalconfigurationcommands全局IPX配置命令子集

loggingLoggingconfigurationcommands全局Logging配置命令

logic-channelSelectalogic-channeltoconfigure配置逻辑通道

loginEnableEXECAuthenticaion启动EXEC登录验证

multilinkSetmulti-linkparameters配置multilink参数

multilink-userSetmulti-linkbindinterfacebyusername配置multilink用户使用的接口

natconfignetaddresstranslation配置地址转换

noDisablesomeparameterswitchs关闭某些参数开关

priority-listBuildthepriorityqueuelist创建优先级队列列表

route-mapConfigureroute-map配置路由映射

routerEnablearoutingprocess启动路由处理

settrSettimeranges设置时间范围

snmp-serverModifySNMPparameters修改SNMP参数

tcpGlobalTCPparameters配置全局TCP参数

terminalSetterminallineparameters设置终端参数

timerangeEnableordisabletimerange启动或关闭时间区域

tty-serverHuaweittyserver华为终端服务器

userAddauserintosystemforpppauthenticationuse.为PPP验证向系统中加入用户

versionConfirmcurrentVRPversion确认配置VRP版本号和将当前VRP的版本是否相同

vpdnConfigureVPDN设置VPDN

vpdn-groupConfigureVPDNGroup设置VPDN组

x25X25level3X.25协议分组层

华为接口模式配置命令:

(1)(config-if-Ethernet0)#?

backupModifydial-backupparameters修改拨号备份参数

bridge-groupJoinintoDLSwBridge-group将以太网端口加入DLSw桥组

cryptoApplycryptomaptointerface在接口上应用cryptomap

custom-groupAssignacustomqueuelisttoaninterface将CQL应用到接口上

descriptionEthernetinterfacespecificdescription设置以太网端口描述字串

duplexConfigureduplexoperationmode设置双向操作模式

exitExitfromconfiginterfacemode退出端口配置模式

helpDescriptionoftheinteractivehelpsystem随机帮助系统简述

ipInterfaceInternetProtocolconfigurecommandIP协议配置命令集

ipxNovellIPXinterfacesubcommandsIPX协议命令子集

llc2ModifyLLC2parameters设置以太网端口的LLC2参数

loopbackConfigureinternalloopbackonaninterface配置端口自环方式

mtuSetethernetinterfaceMaximumTransmissionUnit(MTU)设置以太网MTU

natNetworkAddressTranslator网络地址转换

noNegateacommandorsetitsdefaults取消命令或设置缺省值

priority-groupAssignapriorityqueuelisttoaninterface将PQL应用到接口上

send-frame-typeSettheformatofthesendingframes设置传送帧格式

shutdownShutdowntheselectedinterface关闭所选端口

standbyHotstandbyrouterconfigHSRP热备份路由配置

(2)(config-if-Serial0)#?

backupModifydial-backupparameters修改备份口参数

baudrateSettransmiteandreceivebaudrate配置发送、接收波特率

bridge-groupJoinintoDLSwBridge-group将本串口加入DLSw桥组

clock-selectSelecttransmitandreceiveclockcomesfrom选择发送、接收时钟来自本地远程

localorremote

cryptoApplycryptomaptointerface在接口上应用cryptomap

custom-groupAssignacustomqueuelisttoaninterface将CQL应用到接口上

descriptioninterfacespecificdescription设置端口描述字串

detectDetectDSRorDTRsignalonserialinterface在串口上监测DSRDTR信号

dialerDial-On-Demandrouting(DDR)command拨号配置命令

dialer-groupAssigntheinterfacetodialer-list配置接口的dialer-list

encapsulationSetencapsulationtypeforaninterface设置端口协议封装类型

exitExitfromconfiginterfacemode退出端口配置模式

flowcontrolAutoflowcontrolornormalflowcontrol设置流控制方式

helpDescriptionoftheinteractivehelpsystem随机帮助系统简述

idle-markIdleinmarkmode空闲为mark状态

invertInvertTransmitclock反转接收时钟

ipInterfaceInternetProtocolconfigurecommandIP协议配置命令集

ipxNovellIPXinterfacesubcommandsIPX协议命令子集

keepaliveEnablekeepalive使keepalive有效

loopbackConfigureinternalloopbackonaninterface设置接口内部自环方式

mtuMaximumtransmissionunit最大传送单位

natNetworkAddressTranslator网络地址转换

noNegateaCommandorSetitsdefault取消某命令或配置路由器缺省值

nrzi-encodingSetlinecodetonrziencodingmode设置编码方式为NRZI模式

peerPeerparametersforpoint-to-pointinterfacePPP接口的端参数

physical-layerConfiguresyncorasyncphysicallayeronserial设置串口传输方式为同步异步

interface

pppPoint-to-PointProtocolPPP协议

priority-groupAssignapriorityqueuelisttoaninterface将PQL应用到接口上

-sdlcThiscommandcanbeusedwhenencapsulateSDLC只有在封装了SDLC协议才可以使用此命令

shutdownShutdowntheselectedinterface关闭所选端口

terminalTerminalsourceipaddressbind.终端源地址绑定

ttyConfigureterminalserverparameter配置终端服务器参数

配置路由器:

(以下命令可减写)

路由器基本操作:

重启路由器特权模式:

reboot在特权模式下擦除配置信息:

#erase写入配置信息:

write

查看命令:

#show重起端口:

在端口模式关闭#shut打开#no+shut(有些命令须重启才可生效)

关闭超时退出功能:

#noexec设定主机名:

(config)#hostname

DCE方应配置速率:

在s0端口配置(config-if-Serial0)#baud2048000(注意:

在使用V.24电缆时波特率必须设置成不高于64Kbps!

填加IP地址:

在接口模式下#ipadd+IP地址+掩码

静态路由:

在全局配置模式iprouter+目的IP地址+掩码+网关(相邻机器IP地址)

查看路由表:

sh+ip+route

封装协议:

(电信DCE设备为发送方、本地DTE设备为接收方)

在s0端口配置:

(config-if-Serial0)#encap+ppp(任意协议)

*ppp协议不适合恶劣介质*

链路层PPP点到点协议有两种验证方式:

PAP口令验证和CHAP挑战口令验证

(1)PAP验证方式配置:

在DCE验证方:

(config-if-Serial0)#ppp+auth验证方式+pap验证方式

建立用户:

(config)#user+名字+pass+密码是否隐藏(7是/0否)+密码

DTE被验证方:

(config-if-Serial0)#ppp+pap+sent+名字+pass+密码是否隐藏(7是|0否)+密码

*(用户名和密码DCE与DTE同相)*

重起端口:

在端口模式关闭#shut再打开#no+shut(有些程序须重启才可生效)

建立路由完成验证

(2)先删除原来验证方式再配置CHAP验证方式:

(可靠方式)

在DCE验证方s0端口填加验证方式:

(config-if-Serial0)#ppp+auth+chap

在DCE验证方s0端口填加chap主机名:

(config-if-Serial0)#ppp+chap+host+名字(任意)

在DCE验证方填加验证方式:

(config)#user+对方主机名字+pass+密码是否隐藏(7是/0否)+密码

建立路由完成验证

*(DCE与DTE相同)*

重起端口:

在端口模式关闭#shut再打开#no+shut

ppp协议协商(自动协商)只有PPP协议可以自动生成路由项

DTE:

s0封装

DCE:

分配方DTE被分配方

配置方法:

DCE:

(config-if-Serial0)#ipadd50.50.50.1255.0.0.0

(config)#iplocalpool150.50.50.50(最低)50.50.50.60(最高)配置地址池

(config-if-Serial0)#peerdefaultipaddpool1分配对方IP地址

DTE:

(config-if-Serial0)#ipaddnego自动获取地址

特点:

所获得地址没有子网路由

x.25协议配置方法:

DCE方:

(config-if-Serial0)#encapx25dce

(config-if-Serial0)#x25ltc16设置最小双向信道

(config-if-Serial0)#x25htc16设置最大双向信道

(config-if-Serial0)#x25nvc4设置链接信道条数

(config-if-Serial0)#x25mod128设置窗口尺寸

(config-if-Serial0)#x25wout8设置缺省发送窗口大小

(config-if-Serial0)#x25win8设置缺省接收窗口大小

(config-if-Serial0)#x25ips1024设置输入包长度

(config-if-Serial0)#x25ops1024设置输出包长度

(config-if-Serial0)#x25add(88888888)任意x.25链路层地址

(config-if-Serial0)#ipadd(IP地址)给双方填加IP地址

(config-if-Serial0)#x25mapip(目标IP地址)(99999999对端x.25链路层地址)+broadcast(支持广播)

DTE方:

同上(DCE和DTE映射时必须指对方端地址)

x.25具有寻址功能和纠错功能,它包括物理层、链路层、和网路层,它是一个协议集,支持流控

帧中继协议(Frame-relay)配置方法:

DCE方:

先配置IP地址再打开帧中继交换

(config)#frameswitch

(config-if-Serial0)#encapintdce设置封装模式

(config-if-Serial0)#framelocal18定义虚电路号

*DTE方:

同上(虚电路号发必须相同)

当不允许逆向地址解析时,必须手动填加地址和虚电路对应*

借用IP地址:

DCE方:

先设定e0IP地址

(config-if-Serial0)#ints0.1point设置子接口为点到点

(config-if-Serial0)#frameinter50设置虚电路号

(config-if-Serial0)#ipunnumeth0指定IP借用

(config)#iproute(下一跳网络号)(掩码)255.255.255.252s0.1

DTE方:

同上

设e0IP地址

(config)#iproute(下一跳地址)(掩码)255.255.255.255s0.1

(config)#iproute0.0.0.00.0.0.0(下一跳地址)

rip协议配置方法:

(DCE和DTE相同)

(config)#routerrip设置rip协议启动

(config)#networkall把本机所有网段都参于路由交换(广播)

(config)#nonetwork(IP网段)

单独取消某网段

(config)#nonetworkall所有网段都关闭

(config)#shiprip查看路由信息

如果想要静态路由也通过rip广播出去须借用路由:

(config-router-rip)#redisstatic(引用路由)metric(静态路由度量值)1

(config-router-rip)#neighbor对端IP地址

OSPF协议配置方法:

OSPF不能在x.25和framefrelay协议上进行广播

DCE和DTE都封装(任意协议,例:

x.25)

(config)#routerospfenable设置OSPF协议启动

再进入单独端口启动OSPF:

(config-if-Serial0)#ipospfenablearea1或0(为骨干)

(config-if-Ethernet0)#ipospfenablearea1

(config-if-Serial0)#ipospfneighbor对端IP地址

(config)#iproute目标网络号掩码下一跳IP间接路由

(config-router-ospf)#redisospfasestaticmetric1(度量值默认为1)

网络安全:

用路由器做firewall(防火墙):

(config)#firewallenable打开防墙设置

(config)#firewalldefault设置默认规则

(config)#access101(任意号)sirt(指定自链顺序)auto(精度优先)

地址过滤:

(config)#access

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 自然科学 > 物理

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2