华为路由器与交换机命令大全

2019-05-26 00:51

华为一般模式(用户户级)命令:(每条命令都可以+?查看其配置参数) >?

enable Turn on privileged commands 转入特权用户模式 exit Exit from EXEC 退出配置

help Description of the interactive help system 系统帮助简述 language Switch language mode (English, Chinese) 语言模式切换 ping Send echo messages 检查网络主机连接及主机是否可达 show Show running system information 显示系统运行信息 telnet Open a telnet connection 远程登录功能

tracert Trace route to destination 跟踪到目的地经过了哪些路由器

华为特权模式命令: #?

clear Reset functions 清除各项统计信息 clock Manage the system clock 管理系统时钟 configure Enter configuration mode 进入全局配置模式

copy Upload config file to tftp server 上载配置文件到TFTP服务器 debug Debugging functions 开启调试开关

disable Turn off privileged commands 返回普通用户模式 download Download the new version config 下载新版本配置文件

erase Erase the configuration file in flash or nvram 擦除FLASH或NVRAM中的配置文件

exec-timeout Enable EXEC time out 打开EXEC超时退出开关 exit Exit from EXEC 退出配置

first-config Set or clear the first config flag 设置或清除初次配置标志 get Download config file from tftp server 从TFTP服务器下载配置文件 help Description of the interactive help system 系统帮助简述 language Switch language mode (English, Chinese) 语言模式切换 no Disable some parameter switchs 关闭某些参数开关 ping Send echo messages 检查网络主机连接及主机是否可达 reboot Reboot the router 路由器重启

setup Run the SETUP command facility 配置路由器参数 show Show running system information 显示系统运行信息 telnet Open a telnet connection 远程登录功能

tracert Trace route to destination 跟踪到目的地经过了哪些路由器

write Write running configuration to flash or nvram 将当前配置参 数保存至FLASH或NVRAM中

华为全局配置模式命令: (config)#?

aaa-enable Enable AAA(Authentication, Authorization and 使能配置AAA(认证,授权和计费)

Accounting)

access-list Configure structure of access-list 配置标准访问表

arp Set a static ARP entry 设置静态ARP入口

chat-script Define a modem chat script 生成一个用在modem上的执行脚本 crypto Config IPSec or crypto map 设置IPSec相关参数 custom-list Build the custom queue list 创建定制队列列表 dialer-list Create a dialer-list 创建dialer-list dlsw Configure dlsw 配置DLSw

dram-wait Insert dram wait state 设置DRAM等待状态

enable Modify enable password parameters 修改ENABLE口令 exit Exit from configure mode 退出全局配置模式 firewall Configure firewall status 配置防火墙状态 flow-interval set time of flow control 设置流量控制时间间隔

frame-relay global frame relay configuration commands 帧中继全局配置命令集 ftp-server File transfer Protocol FTP 服务器

help Description of the interactive help system 系统帮助命令简述 host Add host's name and IP address 添加主机名称和其IP地址 hostname Modify hostnamec 修改主机名

ifquelen Change interface queue length 更改接口队列长度 interface Select an interface to configure 选择配置接口

ip Global ip configuration subcommands 全局IP配置命令子集

ipx Novell IPX global configuration commands 全局IPX配置命令子集 logging Logging configuration commands 全局Logging配置命令 logic-channel Select a logic-channel to configure 配置逻辑通道 login Enable EXEC Authenticaion 启动EXEC登录验证 multilink Set multi-link parameters 配置multilink 参数

multilink-user Set multi-link bind interface by username 配置multilink 用户使用的接口

nat config net address translation 配置地址转换 no Disable some parameter switchs 关闭某些参数开关 priority-list Build the priority queue list 创建优先级队列列表 route-map Configure route-map 配置路由映射 router Enable a routing process 启动路由处理 settr Set time ranges 设置时间范围 snmp-server Modify SNMP parameters 修改SNMP参数 tcp Global TCP parameters 配置全局TCP参数 terminal Set terminal line parameters 设置终端参数 timerange Enable or disable time range 启动或关闭时间区域 tty-server Huawei tty server 华为终端服务器

user Add a user into system for ppp authentication use. 为PPP验证向系统中加入用户

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

vpdn Configure VPDN 设置VPDN

vpdn-group Configure VPDN Group 设置VPDN组 x25 X25 level 3 X.25协议分组层

华为接口模式配置命令: (1)(config-if-Ethernet0)#?

backup Modify dial-backup parameters 修改拨号备份参数 bridge-group Join into DLSw Bridge-group 将以太网端口加入DLSw桥组 crypto Apply crypto map to interface 在接口上应用crypto map

custom-group Assign a custom queue list to an interface 将CQL应用到接口上 description Ethernet interface specific description 设置以太网端口描述字串 duplex Configure duplex operation mode 设置双向操作模式 exit Exit from config interface mode 退出端口配置模式

help Description of the interactive help system 随机帮助系统简述 ip Interface Internet Protocol configure command IP协议配置命令集 ipx Novell IPX interface subcommands IPX协议命令子集 llc2 Modify LLC2 parameters 设置以太网端口的LLC2参数

loopback Configure internal loopback on an interface 配置端口自环方式 mtu Set ethernet interface Maximum Transmission Unit(MTU) 设置以太网MTU

nat Network Address Translator 网络地址转换

no Negate a command or set its defaults 取消命令或设置缺省值 priority-group Assign a priority queue list to an interface 将PQL应用到接口上 send-frame-type Set the format of the sending frames 设置传送帧格式 shutdown Shutdown the selected interface 关闭所选端口 standby Hot standby router config HSRP 热备份路由配置

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

backup Modify dial-backup parameters 修改备份口参数

baudrate Set transmite and receive baudrate 配置发送、接收波特率 bridge-group Join into DLSw Bridge-group 将本串口加入DLSw桥组

clock-select Select transmit and receive clock comes from 选择发送、接收时钟来自本地远程

local or remote

crypto Apply crypto map to interface 在接口上应用crypto map

custom-group Assign a custom queue list to an interface 将CQL应用到接口上 description interface specific description 设置端口描述字串

detect Detect DSR or DTR signal on serial interface 在串口上监测DSR DTR信号

dialer Dial-On-Demand routing (DDR) command 拨号配置命令

dialer-group Assign the interface to dialer-list 配置接口的dialer-list encapsulation Set encapsulation type for an interface 设置端口协议封装类型 exit Exit from config interface mode 退出端口配置模式 flowcontrol Auto flowcontrol or normal flowcontrol 设置流控制方式 help Description of the interactive help system 随机帮助系统简述 idle-mark Idle in mark mode 空闲为mark状态 invert Invert Transmit clock 反转接收时钟

ip Interface Internet Protocol configure command IP协议配置命令集 ipx Novell IPX interface subcommands IPX协议命令子集 keepalive Enable keepalive 使keepalive有效

loopback Configure internal loopback on an interface 设置接口内部自环方式

mtu Maximum transmission unit 最大传送单位

nat Network Address Translator 网络地址转换

no Negate a Command or Set its default 取消某命令或配置路由器缺省值

nrzi-encoding Set line code to nrzi encoding mode 设置编码方式为NRZI模式 peer Peer parameters for point-to-point interface PPP接口的端参数 physical-layer Configure sync or async physical layer on serial 设置串口传输方式为同步异步

interface

ppp Point-to-Point Protocol PPP协议

priority-group Assign a priority queue list to an interface 将PQL应用到接口上 -sdlc This command can be used when encapsulate SDLC 只有在封装了SDLC协议才可以使用此命令

shutdown Shutdown the selected interface 关闭所选端口 terminal Terminal source ip address bind. 终端源地址绑定 tty Configure terminal server parameter 配置终端服务器参数

配置路由器:(以下命令可减写)

路由器基本操作:

重启路由器特权模式:reboot 在特权模式下擦除配置信息:#erase 写入配置信息:write 查看命令:#show 重起端口:在端口模式关闭#shut 打开#no+shut (有些命令须重启才可生效)

关闭超时退出功能:#no exec 设定主机名:(config)#hostname

DCE方应配置速率:在s0端口配置(config-if-Serial0)#baud 2048000 (注意: 在使用V.24电缆时波特率必须设置成不高于64Kbps!)

填加IP地址:在接口模式下#ip add+IP地址+掩码

静态路由:在全局配置模式ip router+目的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)#ip add 50.50.50.1 255.0.0.0

(config)#ip local pool 1 50.50.50.50(最低) 50.50.50.60(最高) 配置地址池 (config-if-Serial0)#peer default ip add pool 1 分配对方IP地址 DTE:

(config-if-Serial0)#ip add nego自动获取地址

特点:所获得地址没有子网路由

x.25协议配置方法:

DCE方:(config-if-Serial0)#encap x25 dce

(config-if-Serial0)#x25 ltc 16 设置最小双向信道 (config-if-Serial0)#x25 htc 16 设置最大双向信道 (config-if-Serial0)#x25 nvc 4 设置链接信道条数 (config-if-Serial0)#x25 mod 128设置窗口尺寸 (config-if-Serial0)#x25 wout 8设置缺省发送窗口大小 (config-if-Serial0)#x25 win 8 设置缺省接收窗口大小 (config-if-Serial0)#x25 ips 1024 设置输入包长度 (config-if-Serial0)#x25 ops 1024 设置输出包长度

(config-if-Serial0)#x25 add (88888888) 任意x.25链路层地址 (config-if-Serial0)#ip add (IP地址)给双方填加IP地址

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


华为路由器与交换机命令大全.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:关于组织2012年度注册幼儿园年审的通知

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: