loading...
مرجع آموزش برنامه نویسی و شبکه
پیام صادقپور بازدید : 178 جمعه 05 اردیبهشت 1393 نظرات (0)

در کل ما سه نوع ether channel  داریم :

اول “unconditional” یا  Static Ether Channel    یا حالت On

دوم Link Aggregation Control Protocol (LACP)

سوم Port Aggregation Protocol (PAgP).

LACPاستاندارد IEEEمیباشد

PAgP اختصاصی سیسکو است و فقط بین دیوایزهای سیسکو کاربرد دارد

LACP and PAgP are dynamic ether-channel protocols 

LACP, PAgP and Static EtherChannel’s are not compatible with one another

خب برای شروع ما از حالت اول استفاده می کنیم .

شکل زیر رو در نظر بگیرید:

برای کانفیگ به صورت زیر عمل می کنیم:

Switch>en

Switch#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#int range fa0/1-2

Switch(config-if-range)#switchport mode trunk

Switch(config-if-range)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

 

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up

Switch(config-if-range)#channel-group 1 mode on

Switch(config-if-range)#

Creating a port-channel interface Port-channel 1

%LINK-5-CHANGED: Interface Port-channel 1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up

Switch(config-if-range)#

حالا همین تنظیمات رو در  SW2هم انجام بدید.

میبینید که چراغ های 4 پورت متصل به هم سبز میشه و این به این معنی هست که تنظیمات با

موفقیت انجام شده و از Spanning treeخبری نیست.

دستور show etherchannel summary     برای نمایش مشخصات Ether Channelمانند channel-group

number, ports in the channel groupو ......

Switch#show etherchannel summary

Flags:  D - down        P - in port-channel

        I - stand-alone s - suspended

        H - Hot-standby (LACP only)

        R - Layer3      S - Layer2

        U - in use      f - failed to allocate aggregator

        u - unsuitable for bundling

        w - waiting to be aggregated

        d - default port

Number of channel-groups in use: 1

Number of aggregators:           1

Group  Port-channel  Protocol    Ports

------+-------------+-----------+----------------------------------------------

1      Po1(SU)           -      Fa0/1(P) Fa0/2(P)

 

دستور show etherchannel  port-channel

 

Switch#show etherchannel port-channel

                Channel-group listing:

                ----------------------

 

Group: 1

----------

                Port-channels in the group:

                ---------------------------

 

Port-channel: Po1

------------

Age of the Port-channel   = 00d:00h:14m:30s

Logical slot/port   = 2/1       Number of ports = 2

GC                  = 0x00000000      HotStandBy port = null

Port state          = Port-channel

Protocol            =   PAGP

Port Security       = Disabled

Ports in the Port-channel:

Index   Load   Port     EC state        No of bits

------+------+------+------------------+-----------

  0     00     Fa0/1    On                 0

  0     00     Fa0/2    On                 0

Time since last port bundled:    00d:00h:14m:30s    Fa0/2

 

حالت دوم Etherchannel  (LACP)

LACPدارای دو حالت یا  Mode میباشد: active and Passive

حالت Active  پورت یک حالت بدون قید و شرط است مانند حالت On  در بالا

حالت Passiveپورت از دیوایز هایی که حالت آنها Activeاست etherchannel را می پذیرد.

برای کانفیگ یک سنا ریو مانند شکل بالا به صورت زیر عمل می کنیم:

SW1>enable

SW1#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

SW1(config)#interface range f0/10 - 12

SW1(config-if-range)#no shut

SW1(config-if-range)#channel-group 1 mode active

Creating a port-channel interface Port-channel 1

SW1(config-if-range)#end

 

در سویچ دوم :

SW2>enable

SW2#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

SW2(config)#interface range f0/10 - 12

SW2(config-if-range)#no shut

SW2(config-if-range)#channel-group 1 mode passive

Creating a port-channel interface Port-channel 1

SW2(config-if-range)#end

 

SW1#show etherchannel summary

Flags:  D - down        P - bundled in port-channel

        I - stand-alone s - suspended

        H - Hot-standby (LACP only)

        R - Layer3      S - Layer2

        U - in use      f - failed to allocate aggregator

 

        M - not in use, minimum links not met

        u - unsuitable for bundling

        w - waiting to be aggregated

        d - default port

 

 

Number of channel-groups in use: 1

Number of aggregators:           1

 

Group  Port-channel  Protocol    Ports

------+-------------+-----------+-----------------------------------------------

1      Po1(SU)         PAgP      Fa0/10(P)   Fa0/11(P)   Fa0/12(P)  

 

حالت سوم   (PAgP)   ether channel

 PAgP  دارای دو حالت یا Mode  میباشد:Auto and desirable

Desirable :  : آغاز گر مذاکره است.

Auto: پذیرنده ether channelاز سایر دیوازهایی است کا در مد desirableقرار دارند.

برای کانفیگ یک سنا ریو مانند شکل بالا به صورت زیر عمل می کنیم:

SW1>enable

SW1#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

SW1(config)#interface range f0/10 - 12

SW1(config-if-range)#channel-group 1 mode desirable

Creating a port-channel interface Port-channel 1

SW1(config-if-range)#no shut

SW1(config-if-range)#end

 

در سویچ دوم :

SW2>enable

SW2#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

SW2(config)#interface range f0/10 - 12

SW2(config-if-range)#channel-group 1 mode auto

Creating a port-channel interface Port-channel 1

SW2(config-if-range)#no shut

SW2(config-if-range)#end

 

 

SW1#show etherchannel summary

Flags:  D - down        P - bundled in port-channel

        I - stand-alone s - suspended

        H - Hot-standby (LACP only)

        R - Layer3      S - Layer2

        U - in use      f - failed to allocate aggregator

 

        M - not in use, minimum links not met

        u - unsuitable for bundling

        w - waiting to be aggregated

        d - default port

 

 

Number of channel-groups in use: 1

Number of aggregators:           1

 

Group  Port-channel  Protocol    Ports

------+-------------+-----------+-----------------------------------------------

1      Po1(SU)         PAgP      Fa0/10(P)   Fa0/11(P)   Fa0/12(P)  

 

مطالب مرتبط
ارسال نظر برای این مطلب

کد امنیتی رفرش
اطلاعات کاربری
  • فراموشی رمز عبور؟
  • آرشیو
    آمار سایت
  • کل مطالب : 35
  • کل نظرات : 0
  • افراد آنلاین : 1
  • تعداد اعضا : 9
  • آی پی امروز : 9
  • آی پی دیروز : 0
  • بازدید امروز : 11
  • باردید دیروز : 1
  • گوگل امروز : 0
  • گوگل دیروز : 0
  • بازدید هفته : 27
  • بازدید ماه : 19
  • بازدید سال : 408
  • بازدید کلی : 11,059