进入交换机:<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