华为配置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
上一篇:MyBatisPlus-QueryWrapper多条件查询以及修改


下一篇:处理时间序列数据的高端模型Transformer和代码实现