Gambar. Mode pada LACP
Untuk dapat membentu link,antara switch harus sama-sama on atau active/passive dengan active. Mode On merupakan mode dimana antara Switch tidak melakukan pertukaran LACP.
Konfigurasi S1
Switch#configure terminal
Switch(config)#hostname S1
S1(config)#vlan 10
S1(config-vlan)#name data
S1(config-vlan)#vlan 99
S1(config-vlan)#name mgmt
S1(config)#interface fastEthernet 0/1
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 10
S1(config-if)#exit
S1(config)#interface vlan 99
S1(config-if)#ip address 172.16.99.1 255.255.255.0
S1(config-if)#no shutdown
S1(config-if)#exit
S1(config)#interface range gigabitEthernet 0/1-2
S1(config-if-range)#switchport mode trunk
S1(config-if-range)#switchport trunk native vlan 99
S1(config-if-range)#switchport trunk allowed vlan all
S1(config-if-range)#channel-group 1 mode active
S1(config-if-range)#no shutdown
S1#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) LACP Gig0/1(P) Gig0/2(P)
S1#
Konfigurasi S2
Switch#configure terminal
Switch(config)#hostname S2
S2(config)#vlan 10
S2(config-vlan)#name data
S2(config-vlan)#vlan 99
S2(config-vlan)#name mgmt
S2(config)#interface fastEthernet 0/1
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan 10
S2(config-if)#exit
S2(config)#interface vlan 99
S2(config-if)#ip address 172.16.99.2 255.255.255.0
S2(config-if)#no shutdown
S2(config-if)#exit
S2(config)#interface range gigabitEthernet 0/1-2
S2(config-if-range)#switchport mode trunk
S2(config-if-range)#switchport trunk native vlan 99
S2(config-if-range)#sw trunk allowed vlan all
S2(config-if-range)#channel-group 1 mode passive
S2(config-if-range)#no shutdown
S2#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) LACP Gig0/1(P) Gig0/2(P)
S2#
0 comments:
Post a Comment