华为5700交换机VLAN划分

<Huawei>system-view                         进入配置模式

Enter system view, return user view with Ctrl+Z.

[Huawei]sysname center_switch            更改交换机名

创建vlan

[center_switch]vlan 40                           

[center_switch-vlan40]quit

给vlan配置IP地址           

[center_switch]interface Vlanif 40       

[center_switch-Vlanif40]ip address 10.10.40.1 255.255.255.0

将某个端口加入到vlan中

[center_switch] interface port GigabitEthernet 0/0/24

[center_switch-GigabitEthernet0/0/24]port link-type access

[center_switch-GigabitEthernet0/0/24]port default vlan40

将交换机中一组端口加入到一个VLAN中

创建vlan

[center_switch]vlan 42

[center_switch-vlan42]quit

给vlan 配置IP地址

[center_switch]interface Vlanif 42

[center_switch-Vlanif42]ip add

[center_switch-Vlanif42]ip address 10.10.42.1 255.255.255.0

创建端口组

[center_switch]port-group port1to8forvlan40

将相应的端口加入组中

[center_switch]port-group port1to8forvlan40]group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/8

设置端口方式

[center_switch-port-group-port1to8forvlan42]port link-type access

设置端口组默认vlan(即之前创建好的vlan ID 42)

[center_switch-port-group-port1to8forvlan42]port default vlan 42

[center_switch]display vlan

<center_switch>save

[Quidway] display version

显示VRP版本号 

[Quidway] display current-configuration

显示系统运行配置信息

[Quidway] display saved-configuration

显示保存的配置信息

[Quidway] display interfaces brief

显示接口配置信息

[Quidway]display ip routing-table

显示路由表 

[Quidway]display systname 

命令用来显示路由器的名称

以上就是华为S5700交换机配置VLAN的方法,谢谢阅读

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值