h3c路由器设置步骤图解 h3c路由器设置官网

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

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路由器设置步骤图解 h3c路由器设置官网】 [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_num1 为端口聚合组的起始端口号,Port_num2 为终止端口号
ingress 为接口入负荷分担方式,both 为接口出负荷分担方式 。
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 {pap|chap} 设置验证类型
[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 配置被验证方用户列表

推荐阅读