链路聚合ET-TRUNK配置实例_第1页
链路聚合ET-TRUNK配置实例_第2页
链路聚合ET-TRUNK配置实例_第3页
链路聚合ET-TRUNK配置实例_第4页
链路聚合ET-TRUNK配置实例_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、路由器配置实例路由器可以对多个以太网接口捆绑形成一个Eth-Trunk逻辑接口,Eth-Trunk接口的主要目 的是增大带宽和提高设备之间链路的可靠性。Eth-Trunk接口可以工作在二层模式或三层模式。 二层模式的Eth-Trunk接口类似交互机的接口,只负责二层数据包的转发;三层模式的Eth-Trunk 接口则类似路由器的接口,可以配上IP地址实现路由功能。本文为大家介绍如何在华为的路由 器里配置二层和三层Eth-Trunk接口。一、二层Eth-Trunk接口配置实例1、组网结构和需求如下图所示,RouterA和RouterB之间通过Eth-Trunk1连接,Eth-Trunk1是二层端口

2、。将 Eth-Trunk1配置为Trunk类型接口,允许RouterA和RouterB之间的所有VLAN帧通过。RouterARouterB麽GE1AW Eth-Trunld.GE1/Q们!J (DGE2/0/0GEZM 实筝2、配置思路采用如下的思路配置二层Eth-Trunk端口允许VLAN通过:1)创建 Eth-Trunk 接口。2)将Eth-Trunk接口转为二层端口。3)将Eth-Trunk端口配置为Trunk类型的端口,并允许所有VLAN帧通过。4)将成员口接入Eth-Trunk端口中。3、配置步骤1)配置 RouterA#创建Eth-Trunk接口,并配置允许通过的VLAN。Rou

3、terA interface eth-trunk 1RouterA-Eth-Trunk1 portswitchRouterA-Eth-Trunk1 port link-type trunkRouterA-Eth-Trunk1 port trunk allow-pass vlan allRouterA-Eth-Trunk1 quit# 将接口 GE1/0/0、GE2/0/0 加入到 Eth-Trunk 1 中。RouterA interface gigabitethernet 1/0/0RouterA-GigabitEthernet1/0/0 undo shutdownRouterA-Gigab

4、itEthernet1/0/0 eth-trunk 1RouterA-GigabitEthernet1/0/0 quitRouterA interface gigabitethernet 2/0/0RouterA-GigabitEthernet2/0/0 undo shutdownRouterA-GigabitEthernet2/0/0 eth-trunk 1RouterA-GigabitEthernet2/0/0 quit2)配置 RouterB#创建Eth-Trunk接口,并配置允许通过的VLAN。RouterB interface eth-trunk 1RouterB-Eth-Trunk

5、1 portswitchRouterB-Eth-Trunk1 port link-type trunkRouterB-Eth-Trunk1 port trunk allow-pass vlan allRouterB-Eth-Trunk1 quit# 将接口 GE1/0/0、GE2/0/0 加入到 Eth-Trunk 1 中。RouterB interface gigabitethernet 1/0/0RouterB-GigabitEthernet1/0/0 undo shutdownRouterB-GigabitEthernet1/0/0 eth-trunk 1RouterB-GigabitE

6、thernet1/0/0 quitRouterB interface gigabitethernet 2/0/0RouterB-GigabitEthernet2/0/0 undo shutdownRouterB-GigabitEthernet2/0/0 eth-trunk 1RouterB-GigabitEthernet2/0/0 quit4、验证配置结果查看Eth-Trunk1的状态,以RouterA为例: display trunkmembership eth-trunk 1Trunk ID:1used status: VALIDTYPE: ethernetWorking Mode : N

7、ormalWorking State: NormalNumber Of Ports in Trunk = 2Number Of UP Ports in Trunk = 2operate status: upInterface Ethernet1/0/0, valid, selected, operate up, weight=1,standby interface NULLInterface Ethernet2/0/0, valid, selected, operate up, weight=1,standby interface NULL用display port vlan命令查看Eth-T

8、runk端口上可以通过的VLAN信息。以RouterA为例: display port vlan Eth-Trunk 1Port Link Type PVID Trunk VLAN ListEth-Trunk1 trunk 0 1-40945、配置文件1)RouterA的配置文件#sysname RouterA#interface Eth-Trunk1portswitchport link-type trunkport trunk allow-pass vlan 1 to 4094#interface GigabitEthernet1/0/0undo shutdowneth-trunk 1#i

9、nterface GigabitEthernet2/0/0undo shutdowneth-trunk 1#return 2) RouterB的配置文件#sysname RouterB#interface Eth-Trunk1portswitchport link-type trunkport trunk allow-pass vlan 1 to 4094#interface GigabitEthernet1/0/0 undo shutdowneth-trunk 1#interface GigabitEthernet2/0/0 undo shutdowneth-trunk 1#return二、

10、三层Eth-Trunk接口配置实例1、组网结构和需求如下图所示,在RouterA与RouterB之间创建Eth-Trunk,将两个GE捆绑成一个Eth-Trunk, 并在Eth-Trunk接口配上IP地址。GE2/0/0RouterBGEW/0Eth-Trunk1 GE2Z0/0192 16&J017/242、配置思路采用如下的思路配置Eth-Trunk:1)创建Eth-Trunk接口并配置IP地址。2)把以太网接口加入Eth-Trunk接口。3、配置步骤1)配置 RouterA#创建Eth-Trunk接口,并配置IP地址。RouterA interface eth-trunk 1Router

11、A-Eth-Trunk1 ip address 192.168.0.1 255.255.255.0RouterA-Eth-Trunk1 quit将接口 GE1/0/0、GE2/0/0 加入到 Eth-Trunk 1 中。RouterA interface gigabitethernet 1/0/0RouterA-GigabitEthernet1/0/0 undo shutdownRouterA-GigabitEthernet1/0/0 eth-trunk 1RouterA-GigabitEthernet1/0/0 quitRouterA interface gigabitethernet 2/

12、0/0RouterA-GigabitEthernet2/0/0 undo shutdownRouterA-GigabitEthernet2/0/0 eth-trunk 1RouterA-GigabitEthernet2/0/0 quit2)配置 RouterB#创建Eth-Trunk接口,并配置IP地址。RouterB interface eth-trunk 1RouterB-Eth-Trunk1 ip address 192.168.0.2 255.255.255.0RouterB-Eth-Trunk1 quit将接口 GE1/0/0、GE2/0/0 加入到 Eth-Trunk 1 中。Ro

13、uterB interface gigabitethernet 1/0/0RouterB-GigabitEthernet1/0/0 undo shutdownRouterB-GigabitEthernet1/0/0 eth-trunk 1RouterB-GigabitEthernet1/0/0 quitRouterB interface gigabitethernet 2/0/0RouterB-GigabitEthernet2/0/0 undo shutdownRouterB-GigabitEthernet2/0/0 eth-trunk 1RouterB-GigabitEthernet2/0/

14、0 quit4、检查配置结果在RouterA或RouterB上执行display interface eth-trunk命令,可以看到接口状态为UP。以 RouterA的显示为例。RouterA display interface eth-trunk 1Eth-Trunk1 current state : UPLine protocol current state : UPLast up time: 2011-01-13, 14:50:20Description : HUAWEI, Quidway Series, Eth-Trunk1 Interface, Route PortHash ari

15、thmatic : According to flowThe Maximum Transmit Unit is 1500 bytesInternet Address is 192.168.0.1/24IP Sending Frames Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc09-9722Physical is ETH_TRUNKLast 300 seconds input rate 0 bytes/sec, 0 packets/secLast 300 seconds output rate 0 bytes/sec, 0 pac

16、kets/secInput: 1 packets,3 bytes,7 unicast,9 broadcast,8 multicasts10 errors,5 drops,11 unknowprotocolOutput: 2 packets,4 bytes,12 unicast,14 broadcast,13x multicasts15 errors,6 dropsPortName Status WeightGigabitEthernet1/0/0 UP 1GigabitEthernet2/0/0 UP 1The Number of Ports in Trunk : 2The Number of

17、 UP Ports in Trunk : 2RouterA 和 RouterB 的 Eth-Trunk 接口能够互相 Ping 通。RouterA ping 192.168.0.2PING 192.168.0.2: 56 data bytes, press CTRL_C to breakReply from 192.168.0.2: bytes=56 Sequence=1 ttl=255 time=31 ms Reply from 192.168.0.2: bytes=56 Sequence=2 ttl=255 time=31 ms Reply from 192.168.0.2: bytes=

18、56 Sequence=3 ttl=255 time=62 ms Reply from 192.168.0.2: bytes=56 Sequence=4 ttl=255 time=62 ms Reply from 192.168.0.2: bytes=56 Sequence=5 ttl=255 time=62 ms-192.168.0.2 ping statistics -5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 31/49/62 ms5、配置文件1) RouterA的配置文件#sysname RouterA#interface Eth-Trunk1ip address 192.168.0.1 255.255.255.0#interface GigabitEthernet1/0/0 undo shutdowneth-trunk 1interface GigabitEthernet2/0/0undo shutdowneth-trunk 1return2) RouterB的配置文件sysname RouterBinterface Eth-Trunk1ip address 192.168.0.2 255.255.255.0interface

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论