h3c路由器设置,h3c路由器基本配置命令
luoboai
|大家好,如果您还对h3c路由器设置不太了解,没有关系,今天就由本站为大家分享h3c路由器设置的知识,包括h3c路由器基本配置命令的问题都会给大家分析到,还望可以解决大家的问题,下面我们就开始吧!
h3c路由器命令大全:
[h3c]sysnamerouter_name命名路由器(或交换机)
[h3c]delete删除FlashROM中的配置
[h3c]interfaceserial0进入接口配置模式
[h3c]quit退出接口模式到系统视图
[h3c]shutdown/undoshutdown关闭/重启接口
[h3c]ipaddressip_addresssubnet_mask为接口配置IP地址和子网掩码
[h3c]displayversion显示VRP版本号
[h3c]displaycurrent-configuration显示系统运行配置信息
[h3c]displayinterfaces显示接口配置信息
[h3c]displayiprouting显示路由表
[h3c]pingip_address测试网络连通性
[h3c]tracertip_address测试数据包从主机到目的地所经过的网关
[h3c]undodebugall关闭所有调试信息
[h3c]info-centerenable开启调试信息输出功能
[h3c]info-centerconsoledubugging将调试信息输出到PC
[h3c]info-centermonitordubugging将调试信息输出到Telnet终端或哑终端
换机配置命令举例(大括号{}中的选项为单选项,斜体字部分为参数值
[h3c]superpasswordpassword修改特权模式口令
[h3c]sysnameswitch_name命名交换机(或路
[h3c]interfaceethernet0/1进入接口视图
[h3c-Ethernet0/1]duplex{half|full|auto}配置接口双工工
[h3c-Ethernet0/1]speed{10|100|auto}配置接口速率
[h3c-Ethernet0/1]flow-control开启流控制
[h3c-Ethernet0/1]mdi{across|normal|auto}配置MDI/MDIX
[h3c-Ethernet0/1]shutdown/undoshutdown关闭/重启端口
VLAN基本配置命令(以h3cS3026为例)[h3c]vlan3创建并进入VLAN配置模式,缺省时系统将
所有端口加入VLAN1,这个端口既不能被创建也不能被删除。
[h3c-vlan3]portethernet0/1toethernet0/4给VLAN增加/删除以太网接口
[h3c-Ethernet0/2]portaccessvlan3将本接口加入到指定VLANid[h3c-Ethernet0/2]portlink-type{access|trunk|hybrid}设置端口工作方式,access(缺省)不支持802.1q帧的传送,而trunk支持(用于Switch间互连),hybrid和trunk的区别在于trunk
只允许缺省VLAN的报文发送时不打标签,而hybrid允许多个VLAN报文发送时不打标签。
[h3c]link-aggregationethernet0/7toethernet0/10{ingress|both}配置端口聚合
Port_num1为端口聚合组的起始端口号,Port_num2为终止端口号
ingress为接口入负荷分担方式,both为接口出负荷分担方式。
[h3c]stp{enable|disable}开启/关闭STP功能,默认关闭,开启后所有端口都参与STP计算。
[h3c-Ethernet0/3]stpdisable关闭指定接口上的STP功能,如某些网络不存在环路可以关闭STP。
[h3c-Serial0]link-protocolppp封装PPP协议
[h3c-Serial0]pppauthentication-mode{pap|chap}设置验证类型
[h3c]local-userusernamepassword{simple|cipher}password配置用户列表
[h3c]local-userusernamepassword{simple|cipher}password配置用户列表
[h3c-Serial0]pppauthentication-modepap
[h3c-Serial0]ppppaplocal-userusernamepassword{simple|cipher}password
[h3c]local-userusernamepassword{simple|cipher}password配置被验证方用户列表
[h3c-Serial0]pppchaphosthostname配置本地名称
[h3c-Serial0]pppauthentication-modechap
[h3c]local-userusernamepassword{simple|cipher}password配置主验证方用户列表
[h3c-Serial0]pppchapuserusername配置本地名称
[h3c]pppmpuserusernamebindvirtual-templatenumber建立用户与虚拟模板的对应关系
[h3c]interfacevirtual-templatenumber配置虚拟接口模板
[h3c]pppmpmax-bindnumber设置虚拟模板最大绑定数(1-100)
[h3c-Serial0]link-protocolfr{mfr|ietf|nonstandard}封装帧中继协议:IETF、Cisco兼容
[h3c-Serial0]frinterface-type{dte|dce|nni}配置帧中继接口类型,NNI为帧中继交换机之间的接口。若配为DCE或NNI,则须先使能frswitching。
[h3c-Serial0]frlmitype{q933a|ansi|cisco-compatible}配置LMI协议类型
[h3c-Serial0]frdlcidlci_number配置一条本地虚电路号
[h3c-Serial0]frmap{ip|ipx}protocol-addressdlcidlci_number建立本地DLCI到对端协议地址的映射
[h3c-Serial0]frinarp[ip|ipx][dlci_number]配置InverseARP动态映射
[h3c]interfacetypenumber.subinterface_number创建并进入子接口配置模式
[h3c]displayrip显示RIP配置信息
[h3c-rip]network{network_number|all}在指定网络上使能RIP
[h3c-rip]peerip_address配置报文的定点传送
[h3c-Ethernet0]ripversion{1|2[bcast|mcast]}指定RIP版本及传送方式
[h3c-Serial0]ripwork指定接口工作状态(同ripinput,ripoutput)
[h3c-rip]auto-summary配置RIP-2路由聚合
[h3c-Serial0]ripauthenticationsimplepassword配置RIP-2明文认证密码
[h3c-Serial0]ripauthenticationmd5key-stringstring配置RIP-2MD5密文认证密码串
[h3c-Serial0]ripauthenticationmd5type{nonstandard-compatible|usual}指定MD5类型
[h3c]debuggingrippacket打开RIP调试开关
[h3c]info-centerconsole将调试信息输出到PC
[h3c]iprouteip_addresssubnet_mask{interface_name|gateway_address}[preferencepreference_value][reject|black_bone]
[命令说明]reject:任何去往该目的地的报文均被丢弃,通知源主机不可达。
black_bone:任何去往该目的地的报文均被丢弃,不通知源主机。
当只有下一跳的接口是PPP或HDLC接口才能写interface_name,如Serial0,否则只能写gateway_address(下一跳地址)。
[命令举例][h3c]iproute129.1.0.01610.0.0.2
[h3c]iproute129.1.0.0255.255.0.010.0.0.2
[h3c]iproute129.1.0.016Serial2
[h3c]iproute0.0.0.00.0.0.010.0.0.2配置缺省路由。
[h3c]routeridip_address配置RouterID
[h3c-Serial0]ospfenableareaarea_id配置当前接口所属的OSPF区域
好了,文章到这里就结束啦,如果本次分享的h3c路由器设置和h3c路由器基本配置命令问题对您有所帮助,还望关注下本站哦!








