ネットワーク構成

以下のネットワーク構成でLACPおよびPAgPでイーサチャネルのネゴシエーションを行います。

図 LACP/PAgPのshowコマンド ネットワーク構成
図 LACP/PAgPのshowコマンド ネットワーク構成

それぞれのスイッチで、LACPおよびPAgPの以下のshowコマンドを確認します。

  • show lacp internal
  • show lacp neighbor
  • show pagp internal
  • show pagp neighbor

LACP

設定

Cat3750-1からLACPでイーサチャネルのネゴシエーションを開始するようにモードをactiveに設定します。Cat3750-2は、passiveで設定します。

Cat3750-1

interface range FastEthernet1/0/9,FastEthernet1/0/11
 channel-group 1 mode active

Cat3750-2

interface range FastEthernet1/0/9,FastEthernet1/0/11
 channel-group 1 mode passive

showコマンド

show lacp internalでスイッチ自身のLACPの状態を確認できます。また、show lacp neighborで対向のLACPの状態がわかります。

Cat3750-1

Cat3750-1#show lacp internal
Flags:  S - Device is requesting Slow LACPDUs
        F - Device is requesting Fast LACPDUs
        A - Device is in Active mode       P - Device is in Passive mode

Channel group 1
                            LACP port     Admin     Oper    Port     Port
Port      Flags   State     Priority      Key       Key     Number   State
Fa1/0/9   SA      bndl      32768         0x1       0x1     0xB      0x3D
Fa1/0/11  SA      bndl      32768         0x1       0x1     0xD      0x3D
Cat3750-1#show lacp neighbor
Flags:  S - Device is requesting Slow LACPDUs
        F - Device is requesting Fast LACPDUs
        A - Device is in Active mode       P - Device is in Passive mode

Channel group 1 neighbors

Partner's information:

                  LACP port                        Oper    Port     Port
Port      Flags   Priority  Dev ID         Age     Key     Number   State
Fa1/0/9   SP      32768     0013.6060.6480  19s    0x1     0xB      0x3C
Fa1/0/11  SP      32768     0013.6060.6480  14s    0x1     0xD      0x3C

Cat3750-2

Cat3750-2#show lacp internal
Flags:  S - Device is requesting Slow LACPDUs
        F - Device is requesting Fast LACPDUs
        A - Device is in Active mode       P - Device is in Passive mode

Channel group 1
                            LACP port     Admin     Oper    Port     Port
Port      Flags   State     Priority      Key       Key     Number   State
Fa1/0/9   SP      bndl      32768         0x1       0x1     0xB      0x3C
Fa1/0/11  SP      bndl      32768         0x1       0x1     0xD      0x3C
Cat3750-2#show lacp neighbor
Flags:  S - Device is requesting Slow LACPDUs
        F - Device is requesting Fast LACPDUs
        A - Device is in Active mode       P - Device is in Passive mode

Channel group 1 neighbors

Partner's information:

                  LACP port                        Oper    Port     Port
Port      Flags   Priority  Dev ID         Age     Key     Number   State
Fa1/0/9   SA      32768     0012.8049.3600  17s    0x1     0xB      0x3D
Fa1/0/11  SA      32768     0012.8049.3600  26s    0x1     0xD      0x3D

PAgP

設定

Cat3750-1からPAgPでイーサチャネルのネゴシエーションを開始するようにモードをdesirableに設定します。Cat3750-2は、autoで設定します。

Cat3750-1

interface range FastEthernet1/0/9,FastEthernet1/0/11
 channel-group 1 mode desirable

Cat3750-2

interface range FastEthernet1/0/9,FastEthernet1/0/11
 channel-group 1 mode auto

showコマンド

show pagp internalでスイッチ自身のPAgPの状態を確認できます。また、show pagp neighborで対向のPAgPの状態がわかります。

Cat3750-1

Cat3750-1#show pagp internal
Flags:  S - Device is sending Slow hello.  C - Device is in Consistent state.
        A - Device is in Auto mode.        d - PAgP is down
Timers: H - Hello timer is running.        Q - Quit timer is running.
        S - Switching timer is running.    I - Interface timer is running.

Channel group 1
                                Hello    Partner  PAgP     Learning  Group
Port      Flags State   Timers  Interval Count   Priority   Method  Ifindex
Fa1/0/9   SC    U6/S7   H       30s      1        128        Any      5001
Fa1/0/11  SC    U6/S7   H       30s      1        128        Any      5001
Cat3750-1#show pagp neighbor
Flags:  S - Device is sending Slow hello.  C - Device is in Consistent state.
        A - Device is in Auto mode.        P - Device learns on physical port.

Channel group 1 neighbors
          Partner              Partner          Partner         Partner Group
Port      Name                 Device ID        Port       Age  Flags   Cap.
Fa1/0/9   Cat3750-2            0013.6060.6480   Fa1/0/9      2s SAC     10001
Fa1/0/11  Cat3750-2            0013.6060.6480   Fa1/0/11     2s SAC     10001

Cat3750-2

Cat3750-2#show pagp internal
Flags:  S - Device is sending Slow hello.  C - Device is in Consistent state.
        A - Device is in Auto mode.        d - PAgP is down
Timers: H - Hello timer is running.        Q - Quit timer is running.
        S - Switching timer is running.    I - Interface timer is running.

Channel group 1
                                Hello    Partner  PAgP     Learning  Group
Port      Flags State   Timers  Interval Count   Priority   Method  Ifindex
Fa1/0/9   SAC   U6/S7   HQ      30s      1        128        Any      5001
Fa1/0/11  SAC   U6/S7   HQ      30s      1        128        Any      5001
Cat3750-2#show pagp neighbor
Flags:  S - Device is sending Slow hello.  C - Device is in Consistent state.
        A - Device is in Auto mode.        P - Device learns on physical port.

Channel group 1 neighbors
          Partner              Partner          Partner         Partner Group
Port      Name                 Device ID        Port       Age  Flags   Cap.
Fa1/0/9   Cat3750-1            0012.8049.3600   Fa1/0/9     11s SC      10001

レイヤ2スイッチの仕組み