华三默认路由器密码-(华三路由器默认密码)

电脑教程 次浏览手机阅读

(华三路由器默认密码)

h3c杭州华三通信技术有限公司(以下简称华三通信),以下是一些关于整理的问题h3c路由器命令大全的相关信息供您参考。

 

h3c路由器命令大全:

[h3c]sysname router_name 命名路由器(或交换机)

[h3c]delete 删除Flash ROM中的配置

[h3c]save 将配置写入Flash ROM

[h3c]interface serial 0 进入接口配置模式

[h3c]quit 退出接口模式到系统视图

[h3c]shutdown/undo shutdown 关闭/重启接口

[h3c]ip address ip_address subnet_mask 为接口配置IP地址及子网掩码

[h3c]display version 显示VRP版本号

[h3c]display current-configuration 信息显示系统运行配置

[h3c]display interfaces 显示接口配置信息

[h3c]display ip routing 显示路由表

[h3c]ping ip_address 测试网络连通性

[h3c]tracert ip_address 从主机到目的地通过网关的测试数据包

[h3c]debug all 打开所有调试信息

[h3c]undo debug all 关闭所有调试信息

[h3c]info-center enable 打开调试信息输出功能

[h3c]info-center console dubugging 输出调试信息PC

[h3c]info-center monitor dubugging 输出调试信息Telnet终端或哑终端

例如(大括号{}中的选项为单选项,斜字部分为参数值

[h3c]super password password 修改特权模式密码

[h3c]sysname switch_name 命名交换机(或路)

[h3c]interface ethernet 0/1 进入接口视图

[h3c]quit 退出系统视图

[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/undo shutdown 关闭/重启端口

VLAN基本配置命令(以h3c S3026为例)[h3c]vlan 3 创建并进入VLAN配置模式,系统将缺少时间

加入所有端口VLAN 1.这个端口既不能创建也不能删除。

[h3c]undo vlan 3 删除一个VLAN

[h3c-vlan3]port ethernet 0/1 to ethernet 0/4 给VLAN增加/删除以太网接口

[h3c-Ethernet0/2]port access vlan 3 将此界面添加到指定VLAN id[h3c-Ethernet0/2]port link-type{access|trunk|hybrid}设置端口工作模式,access(缺省)不支持802.1q帧的传输,而trunk支持(用于Switch间互连),hybrid和trunk的区别在于 trunk

只允许缺省VLAN发送报纸时不标记,hybrid允许多个VLAN报文发送时不打标签。

端口聚合配置命令

[h3c]link-aggregation ethernet 0/7 to ethernet 0/10{ingress|both}端口聚合配置

Port_num一是端口聚合组的起始端口号,Port_num二是终止端口号

ingress接口负荷分担,both分担接口负荷。

STP基本配置命令

[h3c]stp{enable|disable}开启/关闭 STP 默认关闭功能,打开后参与所有端口STP 计算。

STP基本配置命令

[h3c]stp{enable|disable}开启/关闭 STP 默认关闭功能,打开后参与所有端口STP 计算。

[h3c-Ethernet0/3]stp disable 关闭指定接口STP例如,某些网络没有环路可以关闭STP。

PPP配置命令

[h3c-Serial0]link-protocol ppp 封装PPP协议

[h3c-Serial0]ppp authentication-mode ap|cha 设置验证类型

[h3c]local-user username password{simple|cipher}password 配置用户列表

- PAP验证配置:

主验证方

[h3c]local-user username password{simple|cipher}password 配置用户列表

[h3c-Serial0]ppp authentication-mode pap

被验证方

[h3c-Serial0]ppp pap local-user username password{simple|cipher}password

- CHAP验证配置:

主验证方

[h3c]local-user username password{simple|cipher}password 验证方用户列表配置

[h3c-Serial0]ppp chap host hostname 配置本地名称

[h3c-Serial0]ppp authentication-mode chap

被验证方

[h3c]local-user username password{simple|cipher}password 配置主验证方用户列表

[h3c-Serial0]ppp chap user username 配置本地名称

MP配置命令

[h3c-Serial0]ppp mp 封装MP协议

[h3c]ppp mp user username bind virtual-template number 建立用户与虚拟模板的对应关系

[h3c]interface virtual-template number 配置虚拟接口模板

[h3c]ppp mp max-bind number 最大绑定数(1-100)设置虚拟模板

帧中继配置命令

[h3c-Serial0]link-protocol fr{mfr|ietf|nonstandard}封装帧中继协议:IETF、Cisco兼容

[h3c-Serial0]fr interface-type{dte|dce|nni}配置帧中继接口类型,NNI帧中继交换机之间的接口。若配为DCE或NNI,则须先使能fr switching。

[h3c-Serial0]fr lmi type{q933a|ansi|cisco-compatible}配置LMI协议类型

[h3c-Serial0]fr dlci dlci_number 配置本地虚电路号

[h3c-Serial0]fr map{ip|ip

protocol-address dlci dlci_number 建立本地DLCI到对端协议地址的映射

 

[h3c-Serial0]fr inarp[ip|ipx][dlci_number]配置Inverse ARP动态映射

 

[h3c]interface type number.subinterface_number 创建并进入子接口配置模式

 

RIP协议配置命令

 

[h3c]display rip 显示RIP配置信息

 

[h3c]rip 启动并进入RIP配置模式

 

[h3c-rip]network etwork_number|all}在指定网络上使能RIP

 

[h3c-rip]peer ip_address 定点传输配置报文

 

[h3c-Ethernet0]rip version{1|2[bcast|mcast]}指定RIP版本及传送方式

 

[h3c-Serial0]rip work 指定接口的工作状态(相同)rip input,rip output)

 

[h3c-rip]auto-summary 配置RIP-2路由聚合

 

[h3c-Serial0]rip authentication simple password 配置RIP-2明文认证密码

 

[h3c-Serial0]rip authentication md5 key-string string 配置RIP-2 MD5密文认证密码串

 

[h3c-Serial0]rip authentication md5 type onstandard-compatible|usual}指定MD5类型

 

[h3c]debugging rip packet 打开RIP调试开关

 

[h3c]info-center console 输出调试信息PC

 

静态路由配置命令

 

[h3c]ip route ip_address subnet_mask{interface_name|gateway_address}[preference preference_value][reject|black_bone]

 

[命令说明]reject:任何到达目的地的报纸都被丢弃,通知源主机无法到达。

 

black_bone:任何到达目的地的报纸都被丢弃,没有通知源主机。

 

black_bone:任何到达目的地的报纸都被丢弃,没有通知源主机。

 

只有下一个跳跃的接口是PPP或HDLC接口才能写interface_name,如Serial0,否则只能写gateway_address(下一个跳地址)。

 

[命令例][h3c]ip route 129.1.0.0 16 10.0.0.2

 

[h3c]ip route 129.1.0.0 255.255.0.0 10.0.0.2

 

[h3c]ip route 129.1.0.0 16 Serial2

 

[h3c]ip route 0.0.0.0 0.0.0.0 10.0.0.2 缺省路由的配置。

 

OSPF配置命令

 

[h3c]router id ip_address 配置Router ID[h3c]ospf enable 启用OSPF协议[h3c-Serial0]ospf enable area area_id 配置当前接口OSPF区域
喜欢 ()