0
点赞
收藏
分享

微信扫一扫

华为设备 Vlan、Trunk、Eth-trunk 命令脚本

一、Vlan

1.创建vlan

vlan 2

批量创建vlan

vlan batch 10 to 20  (或 1 3 5 7 9)

2.进入端口配置接口类型

interface GigabitEthernet 0/0/1

  port link-type trunk / access

 port trunk allow-pass vlan 10 /  port port default vlan 10

3.创建Eth-trunk

​interface Eth-Trunk 1

mode lacp-static  (选择聚组工作模式)

trunkport GigabitEthernet 0/0/3 to 0/0/4  (添加接口进入聚合组)







举报

相关推荐

0 条评论