系统集成论坛

标题: 配置Eth-Trunk 接口流量本地优先转发示例 [打印本页]

作者: 胡振宇    时间: 2015-11-23 13:40
标题: 配置Eth-Trunk 接口流量本地优先转发示例
<HUAWEI> system-view
[HUAWEI] sysname CSS
[CSS] interface eth-trunk 10 //创建并进入Eth-Trunk10接口。
[CSS-Eth-Trunk10] port link-type trunk //配置接口类型为Trunk。
[CSS-Eth-Trunk10] port trunk allow-pass vlan all //配置接口允许通过所有VLAN。
[CSS-Eth-Trunk10] quit
# 配置汇聚交换机PE。
<HUAWEI> system-view
[HUAWEI] sysname PE
[PE] interface eth-trunk 10 //创建并进入Eth-Trunk10接口。
[PE-Eth-Trunk10] port link-type trunk //配置接口类型为Trunk。
[PE-Eth-Trunk10] port trunk allow-pass vlan all //配置接口允许通过所有VLAN。
[PE-Eth-Trunk10] quit
步骤2 加入Eth-Trunk的成员接口
# 配置集群/堆叠交换机CSS。
[CSS] interface gigabitethernet 1/1/0/4
[CSS-GigabitEthernet1/1/0/4] eth-trunk 10 //将接口GE1/1/0/4加入到Eth-Trunk10中。
[CSS-GigabitEthernet1/1/0/4] quit
[CSS] interface gigabitethernet 2/1/0/4
[CSS-GigabitEthernet2/1/0/4] eth-trunk 10 //将接口GE2/1/0/4加入到Eth-Trunk10中。
[CSS-GigabitEthernet2/1/0/4] quit
# 配置汇聚交换机PE。
[PE] interface gigabitethernet 1/0/1
[PE-GigabitEthernet1/0/1] eth-trunk 10 //将接口GE1/0/1加入到Eth-Trunk10中。
[PE-GigabitEthernet1/0/1] quit
[PE] interface gigabitethernet 1/0/2
[PE-GigabitEthernet1/0/2] eth-trunk 10 //将接口GE1/0/2加入到Eth-Trunk10中。
[PE-GigabitEthernet1/0/2] quit
步骤3 在集群/堆叠交换机CSS上使能Eth-Trunk接口流量本地优先转发功能
[CSS] interface eth-trunk 10
[CSS-Eth-Trunk10] local-preference enable //使能Eth-Trunk10接口流量本地优先转发功能。
[CSS-Eth-Trunk10] quit
说明
缺省情况下,流量本地优先转发功能处于使能状态,此时若执行local-preference enable命令,将
会提示“Error: The local preferential forwarding mode has been configured.”。
步骤4 配置二层转发功能
# 配置集群/堆叠CSS。
[CSS] vlan batch 2 3
[CSS] interface gigabitethernet 1/1/0/3
[CSS-GigabitEthernet1/1/0/3] port link-type trunk
[CSS-GigabitEthernet1/1/0/3] port trunk allow-pass vlan 2
[CSS-GigabitEthernet1/1/0/3] quit
[CSS] interface gigabitethernet 2/1/0/3
[CSS-GigabitEthernet2/1/0/3] port link-type trunk
[CSS-GigabitEthernet2/1/0/3] port trunk allow-pass vlan 3
[CSS-GigabitEthernet2/1/0/3] quit
# 配置接入交换机Switch1。
<HUAWEI> system-view
[HUAWEI] sysname Switch1
[Switch1] vlan 2
[Switch1-vlan2] quit
[Switch1] interface gigabitethernet 1/0/1
[Switch1-GigabitEthernet1/0/1] port link-type trunk
[Switch1-GigabitEthernet1/0/1] port trunk allow-pass vlan 2
[Switch1-GigabitEthernet1/0/1] quit
S7700&S9700 系列交换机
典型配置举例3 基础特性典型配置
文档版本 04 (2015-10-23) 华为专有和保密信息
版权所有 &copy; 华为技术有限公司
179
[Switch1] interface gigabitethernet 1/0/2
[Switch1-GigabitEthernet1/0/2] port link-type trunk
[Switch1-GigabitEthernet1/0/2] port trunk allow-pass vlan 2
[Switch1-GigabitEthernet1/0/2] quit
# 配置接入交换机Switch2。
<HUAWEI> system-view
[HUAWEI] sysname Switch2
[Switch2] vlan 3
[Switch2-vlan3] quit
[Switch2] interface gigabitethernet 1/0/1
[Switch2-GigabitEthernet1/0/1] port link-type trunk
[Switch2-GigabitEthernet1/0/1] port trunk allow-pass vlan 3
[Switch2-GigabitEthernet1/0/1] quit
[Switch2] interface gigabitethernet 1/0/2
[Switch2-GigabitEthernet1/0/2] port link-type trunk
[Switch2-GigabitEthernet1/0/2] port trunk




欢迎光临 系统集成论坛 (http://bbs.xtjc.com/) Powered by Discuz! X3.1