H3C交换机基础配置

进入交换机:<H3C>system-view                        //< >仅可阅读 ,[ ] 配置模式,可配置命令

   [H3C]display interface brief                                 //先查看接口有哪些

一、配置交换机速率

进入接口:

[H3C]int WGE2/0/33                                         //[]为配置模式

[H3C-Twenty-FiveGigE2/0/33]speed ?

1000 Specify speed as 1000 Mbps

10000 Specify speed as 10000 Mbps

25000 Specify speed as 25000 Mbps

auto Enable port's speed negotiation automatically

[H3C-Twenty-FiveGigE2/0/33]speed 10000

This command will take effect on Twenty-FiveGigE2/0/33 to Twenty-FiveGigE2/0/36, which belong to a port group. Continue? [Y/N]:Y

[H3C-Twenty-FiveGigE2/0/33]dis interface brief //检查配置

二、配置vlan并绑定接口

!!!一定要先创建vlan 再使用。

[H3C] vlan 2025

[H3C-vlan2025]exit

[H3C]int WGE2/0/33

[H3C-Twenty-FiveGigE2/0/33]port link-type?

access Set the link type to access

hybrid Set the link type to hybrid

trunk Set the link type to trunk

[H3C-Twenty-FiveGigE2/0/33]port link-type access

[H3C-Twenty-FiveGigE2/0/33]port access vlan 2025

[H3C-Twenty-FiveGigE2/0/33]display this

#

interface Twenty-FiveGigE2/0/33

port link-mode bridge

port access vlan 2025

speed 10000

priority-flow-control auto

priority-flow-control no-drop dot1p 1-5

#

return

[H3C-Twenty-FiveGigE2/0/33] dis int brief

三、取消vlan绑定接口

[H3C]int WGE2/0/33

[H3C-Twenty-FiveGigE2/0/33]no port access vlan

  • 8
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值