搜档网
当前位置:搜档网 › 华为交换机配置常用命令

华为交换机配置常用命令

华为交换机配置命令:

super 进入特权模式
1、配置文件相关命令
reset saved-configuration 檫除旧的配置文件
system-view 进入系统配置模式
[Quidway]vlan 2 创建vlan 2
[Quidway-vlan2][Quidway-vlan3]port ethernet 0/1 to ethernet 0/4 在VLAN中增加端口配置基于access的VLAN [Quidway-Ethernet0/2]port access vlan 3 当前端口加入到VLAN

[Quidway]quit 退出当前模式
[Quidway]management-vlan 2
[Quidway]interface vlan 2 进入接口vlan 2
[Quidway-vlan-interface2]ip address 192.168.1.1 25 配置管理IP
[Quidway]display current-configuration 显示当前配置
save 保存配置
[Quidway]reboot 交换机重启

2、基本配置
[Quidway]super password 修改特权用户密码
[Quidway]sysname dengfeng 指定设备名称
[Quidway]interface ethernet 0/1 进入接口视图
[Quidway]interface vlan x 进入接口视图
[Quidway-Vlan-interfacex]ip address 10.65.1.1 255.255.0.0 配置VLAN的IP地址
[Quidway]ip route-static 0.0.0.0 0.0.0.0 10.65.1.2 静态路由=网关

3、telnet配置
[Quidway]user-interface vty 0 4 进入虚拟终端
[S3026-ui-vty0-4]authentication-mode password 设置口令模式
[S3026-ui-vty0-4]set authentication-mode password simple 222 设置口令
[S3026-ui-vty0-4]user privilege level 3 用户级别


4、端口配置

[Quidway-Ethernet0/1]duplex {half|full|auto} 配置端口工作状态
[Quidway-Ethernet0/1]speed {10|100|auto} 配置端口工作速率
[Quidway-Ethernet0/1]flow-control 配置端口流控
[Quidway-Ethernet0/1]mdi {across|auto|normal} 配置端口平接扭接
[Quidway-Ethernet0/1]port link-type {trunk|access|hybrid} 设置端口工作模式
[Quidway-Ethernet0/1]undo shutdown 激活端口
[Quidway-Ethernet0/2]quit 退出系统视图

















相关主题