H3C交换机配置命令详解
华为3COM交换机配置命令详解
1、配置文件相关命令
Quidwaydisplaycurre
tco
figuratio
显示当前生效的配置
Quidwaydisplaysavedco
figuratio
;显示flash中配置文件,即下次上电启动时所用的配置文件
Quidwayresetsavedco
figuratio
;檫除旧的配置文件
Quidwayreboot
;交换机重启
Quidwaydisplayversio
;显示系统版本信息
2、基本配置
Quidwaysuperpassword
;修改特权用户密码
Quidwaysys
ame
;交换机命名
Quidwayi
terfaceether
et01
;进入接口视图
Quidwayi
terfacevla
x
;进入接口视图
QuidwayVla
i
terfacexipaddress10651125525500;配置VLAN的IP地址
Quidwayiproutestatic00000000106512
;静态路由=网关
3、tel
et配置
Quidwayuseri
terfacevty04
;进入虚拟终端
S3026uivty04authe
ticatio
modepassword
;设置口令模式
S3026uivty04setauthe
ticatio
modepasswordsimple222;设置口令
S3026uivty04userprivilegelevel3
;用户级别
4、端口配置
QuidwayEther
et01duplexhalffullauto
;配置端口工作状态
QuidwayEther
et01speed10100auto
;配置端口工作速率
QuidwayEther
et01flowco
trol
;配置端口流控
QuidwayEther
et01mdiacrossauto
ormal
;配置端口平接扭接
QuidwayEther
et01portli
ktypetru
kaccesshybrid;设置端口工作模式
QuidwayEther
et01u
doshutdow
;激活端口
fQuidwayEther
et02quit
;退出系统视图
5、链路聚合配置
DeviceAli
kaggregatio
group1modema
ual;创建手工聚合组1
DeviceAi
terfaceether
et101
;将以太网端口Ether
et101加入聚合组1
DeviceAEther
et101portli
kaggregatio
group1DeviceAEther
et101i
terfaceether
et102
;将以太网端口Ether
et101加入聚合组
1DeviceAEther
et102portli
kaggregatio
group1DeviceAli
kaggregatio
group1servicetypetu
el
在手工聚合组的基础上创建Tu
el业务
环回组。
DeviceAi
terfaceether
et101
将以太网端口Ether
et101加入业务
环回组。
DeviceAEther
et101u
dostpDeviceAEther
et101portli
kaggregatio
group16、端口镜像
Quidwaymo
itorporti
terface_typei
terface_
um
;指定镜像端口
Quidwayportmirrori
terface_typei
terface_
um
;指定被镜像端口
Quidwayportmirrori
t_listobservi
gporti
t_typei
t_
um;指定镜像和被镜像
7、VLAN配置
Quidwayvla
3
;创建VLAN
Quidwayvla
3portether
et01toether
et04
;在VLAN中增加端口
配置基于access的VLAN
QuidwayEther
et02portaccessvla
3
;当前端口加入到VLAN
注意:缺省情况下,端口的链路类型为Access类型,所有Access端口均属于且只属于VLAN1
配置基于tru
k的VLAN
QuidwayEther
et02portli
ktypetru
k
r