ポート27とポート28でポートチャネルを組んで、そのIDに対しトランクポートとして
VLANを設定する場合、以下の流れで設定してください。
※部分は下記の3パターンがありますので、動作させたいモードを任意に選択頂ければと存じます。
<※部分で選択可能なモードの説明>
①on:インターフェースがチャネルグループのスタティックなメンバーの場合に指定します。
②active:インターフェースを LACP アクティブモードで動作させる場合に指定します。
③passive:インターフェースを LACP パッシブモードで動作させる場合に指定します。
<手順例>
# configure terminal
・(config)# interface range port 1/0/27-28
・(config-if-port-range)# channel-group 1 mode active(※)
・(config-if-port-range)# exit
・(config)# interface port-channel 1
・(config-if-port-channel)# switchport mode trunk
・(config-if-port-channel)# switchport trunk allowed vlan 100,200,300
・(config-if-port-channel)# exit
・(config)# exit
・#
上記設定後のconfigは以下の通りです。
# LACP
interface port 1/0/27
channel-group 1 mode active
interface port 1/0/28
channel-group 1 mode active
# VLAN
vlan 100,200,300
interface port-channel 1
switchport mode trunk
switchport trunk allowed vlan 100,200,300
なお、ポート1/0/28の設定を削除したい場合は、
以下のコマンドでデフォルト状態に戻すことができます。
# configure terminal
・(config)# interface port 1/0/28
・(config-if-port)# no switchport mode
・(config-if-port)# exit
・(config)# exit
・#