其他分享
首页 > 其他分享> > 华为配置Eth-Trunk接口流量本地优先转发

华为配置Eth-Trunk接口流量本地优先转发

作者:互联网

在这里插入图片描述

  1. 创建Eth-Trunk接口
    [Stack]int Eth-Trunk 1
    [Stack-Eth-Trunk1]port link-type trunk
    [Stack-Eth-Trunk1]port trunk allow-pass vlan all
    [LSW3]interface Eth-Trunk 1
    [LSW3-Eth-Trunk1]port link-type trunk
    [LSW3-Eth-Trunk1]port trunk allow-pass vlan all
  2. 加入Eth-Trunk的成员接口
    [Stack-GigabitEthernet0/0/1]eth-trunk 1
    [Stack-GigabitEthernet0/0/3]eth-trunk 1
    [LSW3]interface Eth-Trunk 1
    [LSW3-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/2
  3. 使能Eth-Trunk接口流量本地优先转发功能
    [Stack-Eth-Trunk1]local-preference enable
  4. 配置各接口加入相应VLAN,实现二层互通
    [Stack-GigabitEthernet0/0/4]port link-type trunk
    [Stack-GigabitEthernet0/0/4]port trunk allow-pass vlan 10
    [Stack-GigabitEthernet0/0/5]port link-type trunk
    [Stack-GigabitEthernet0/0/5]port trunk allow-pass vlan 20
    [LSW4-GigabitEthernet0/0/1]port link-type trunk
    [LSW4-GigabitEthernet0/0/1]port trunk allow-pass vlan 10
    [LSW4-GigabitEthernet0/0/2]port link-type access
    [LSW4-GigabitEthernet0/0/2]port default vlan 10
    [LSW5]vlan 20
    [LSW5-GigabitEthernet0/0/5]port link-type trunk
    [LSW5-GigabitEthernet0/0/5]port trunk allow-pass vlan 20
    [LSW5-GigabitEthernet0/0/1]port link-type access
    [LSW5-GigabitEthernet0/0/1]port default vlan 20
    5.验证
    [Stack]display trunkmembership eth-trunk 1

标签:vlan,Trunk,GigabitEthernet0,Stack,华为,trunk,Eth,port
来源: https://blog.csdn.net/Tony_long7483/article/details/122160639