a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 87|回复: 0

[考试试题] 华为辅导:NE40E上配置链路聚合Eth-trunk

[复制链接]
发表于 2012-8-4 12:10:41 | 显示全部楼层 |阅读模式
NE40E上配置链路聚合Eth-trunk
$ V  g% J& ?- }: C在介绍了华为交换机S8505的链路捆绑http://www.91huawei.com/switch/20100819271.html,91华为网继续介绍华为路由器NE40E上的链路捆绑。在交换机S8505上使用link-aggregation来做链路聚合,配置只要在一个端口下配置就可以了。在路由器NE40E上使用Eth-trunk来做ethernet接口的链路聚合,所有的配置可以在eth-trunk接口下配置,聚合的成端端口无需配置。6 `! `( F0 @6 b6 @$ m) _, u
  Eth-Trunk接口是一种可以动态创建的接口,该类型接口可以绑定若干物理的以太网接口作为一个逻辑接口使用。加入到Eth-Trunk接口的以太网接口称为成员接口。用户只需对Eth-Trunk接口进行配置,对这些配置最终会映射到成员接口上。NE40系列通用交换路由器支持路由模式和交换模式的两种Eth-Trunk接口,支持两种模式接口之间的切换。路由模式的Eth-Trunk接口与路由模式的以太网接口类似,可以配置IP地址,运行各种路由协议、MPLS VPN等多种业务。交换模式的Eth-Trunk接口与交换模式的以太网接口类似,可以加入VLAN,运行STP等协议。Eth-Trunk接口的主要应用特点有拓展接口带宽,增加链路可靠性以及流量的负载分担。' ]9 W, K- }6 x# u3 g6 I3 J
  步骤 1 配置NE40E& I# R( L; |+ \+ G- p  @" v- p
   system-view
% _/ _0 _* g6 n1 x% X" P  [Quidway] sysname NE40E ; x% a3 W- _/ @( [$ X
  创建Eth-Trunk接口,并配置IP地址。
/ z' ~7 z$ |' E: R  [NE40E] interface eth-trunk 1 0 {# a) h5 z' e2 V
  [NE40E-Eth-Trunk1] ip address 100.1.1.1 24 ( S! T# J) _/ P$ E# x
  [NE40E-Eth-Trunk1] quit 6 }) j, u( I$ R/ W: l0 B2 B( o
  华为路由器NE40E、NE80E的Eth-trunk默认情况下是路由模式的,如果要绑定VLAN,Eth-Trunk接口需要从三层模式切换到二层模式。可以通过命令将模式更改为交换模式。 . y5 w! ~) Y" {7 N; O& w+ X
  [NE40E] interface eth-trunk 1 - O: Y/ L9 E& b" N
  [NE40E-Eth-Trunk1]portswitch - W( ]& U( N# E
  执行命令portswitch,将Eth-Trunk接口从三层模式切换到二层模式。切换到二层模式时,Eth-Trunk的三层功能和标识被禁止,采用SRU板(主控板)上Meth0接口的MAC地址。执行undo portswitch命令可以将Eth-Trunk接口从二层模式切换回三层模式。
+ [" d8 W  s; A1 c  将端口GE1/0/0、GE2/0/0加入到Eth-Trunk 1中。
! E6 f: E, C) p9 Q7 i+ ~  [NE40E] interface gigabitethernet 1/0/0 ( _6 j" o4 f7 [7 j9 d
  [NE40E-GigabitEthernet1/0/0] eth-trunk 1 2 A" R' `# q9 z$ w% ]
  [NE40E-GigabitEthernet1/0/0] quit
# |6 j* w# Q: l4 M  [NE40E] interface gigabitethernet 2/0/0
% ?$ m: S- r' X0 `, l  [NE40E-GigabitEthernet2/0/0] eth-trunk 1 ) o: \9 {" R$ l7 \7 _. x$ e2 L" @
  [NE40E-GigabitEthernet2/0/0] quit 6 I: J2 m* W* d7 [( j6 D9 |4 |
  步骤 2 检查配置结果( e1 O5 w; [: d+ I* w  U. L# z" d: }
  在NE40E上执行display interface eth-trunk命令,可以看到接口状态为UP。
7 j5 o( {" m7 |4 g: O9 G4 L1 P3 ~  [NE40E] display interface eth-trunk 18 `, ~" M. S- A  c
  Eth-Trunk1 current state : UP. s6 ^+ Z6 }1 j/ U7 T( \
  Line protocol current state : UP/ w( K  F" @; N' l* _- P
  Description : HUAWEI, Quidway Series, Eth-Trunk1 Interface, Route Port$ t% f  ]/ M' b* o* c
  Hash arithmatic : According to IP
! I' _0 ~& U8 z+ [& @6 }" k( \5 _8 Y  The Maximum Transmit Unit is 1500 bytes" Y/ T$ @/ Y8 v  U
  Internet Address is 100.1.1.1/24
5 x7 W+ T9 [% O7 O1 U+ T7 B3 ~6 H  IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc0e-a4215 L1 J9 B& H* }) `. t- W9 W
  Physical is ETH_TRUNK
  a% u' w( n' H! r  s  5 minutes input rate 0 bytes/sec, 0 packets/sec
. ?1 y. Z0 N9 R1 V  5 minutes output rate 0 bytes/sec, 0 packets/sec
: d) F/ t' n% B  }4 Q. A- ]  0 packets input, 0 bytes, 0 drops
6 V% O7 M3 C7 q% Y0 `- {1 m) G# `  0 packets output, 0 bytes, 0 drops
9 i4 q3 O0 ]% L& W  Hash arithmetic : According to MAC
8 ]' W9 C2 u) m  当路由器工作在交换模式的时候使用根据MAC地址进行散列# A8 y+ e1 P+ R+ @& ]6 `
  Hash arithmatic : According to IP" C4 q) ^% e4 y5 v
  当路由器工作在路由模式的时候使用根据IP地址进行散列
/ \0 s* j4 w- h6 [# S. ^  [NE40E] display trunkmembership eth-trunk 1* E' g" p( o# c' R
  Trunk ID: 17 l0 T6 C) g7 Z
  used status: VALID$ F0 p+ `; S2 x
  TYPE: ethernet' D$ ~  p% b! x; d* O* V9 M1 j0 `
  Number Of Ports in Trunk = 2  G3 `1 n' m/ w; T5 {% w2 E- `
  Number Of UP Ports in Trunk = 1
& ^( r& T$ e, l5 u7 x3 z  operate status: up
) S0 i1 o8 R3 ?( |, n3 t  Interface GigabitEthernet1/0/0, valid, selected,operate up,weight=1,
, n5 L6 G- d) B: y/ _  standby interface NULL9 q5 |$ ^  i, L% p
  Interface GigabitEthernet2/0/0, valid, selected,operate down,weight=1,
+ Z& J/ b1 |; p1 e! v  standby interface NULL
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-9-23 21:22 , Processed in 0.173492 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表