networking:cisco:etherchannel

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
networking:cisco:etherchannel [2026/02/03 23:36] – [Konfigurasi] ilyasanetworking:cisco:etherchannel [2026/02/03 23:51] (current) – [Testing] ilyasa
Line 71: Line 71:
 </code> </code>
 ===== Konfigurasi ===== ===== Konfigurasi =====
-=== Headline ===+=== Konfigurasi Etherchannel LACP antara SW1 dan MLS1 === 
 +  * **SW1** 
 +<code js> 
 +SW1(config)#interface range ethernet 0/0 - 1 
 +SW1(config-if-range)#switchport trunk encapsulation dot1q 
 +SW1(config-if-range)#switchport mode trunk 
 +SW1(config-if-range)#channel-group 1 mode active 
 +</code> 
 +  * **MLS1** 
 +<code> 
 +MLS1(config)#interface range ethernet 0/2 - 3 
 +MLS1(config-if-range)#switchport trunk encapsulation dot1q 
 +MLS1(config-if-range)#switchport mode trunk 
 +MLS1(config-if-range)#channel-group 1 mode active 
 +MLS1(config-if-range)#exit 
 +</code> 
 +=== Konfigurasi Etherchannel PAgP antara SW2 dan MLS2 === 
 +  * **SW2** 
 +<code> 
 +SW2(config)#interface range ethernet 0/0 - 1 
 +SW2(config-if-range)#channel-group 1 mode desirable 
 +MLS2(config)#interface Port-Channel 1 
 +MLS2(config-if)#switchport trunk encapsulation dot1q 
 +MLS2(config-if)#switchport mode trunk 
 +</code> 
 +  * **MLS2** 
 +<code> 
 +MLS2(config)#interface range ethernet 0/2-3 
 +MLS2(config-if-range)#switchport trunk encapsulation dot1q 
 +MLS2(config-if-range)#switchport mode trunk 
 +MLS2(config-if-range)#channel-group 1 mode desirable 
 +</code> 
 +=== Konfigurasi Etherchannel Sttatic antara MLS1 dan MLS2 === 
 +  * **MLS1** 
 +<code> 
 +MLS1(config)#interface range ethernet 0/0 - 1 
 +MLS1(config-if-range)#no switchport 
 +MLS1(config-if-range)#channel-group 2 mode on 
 +Creating a port-channel interface Port-channel 2 
 +MLS1(config-if-range)#exit 
 +MLS1(config)#interface Port-Channel 2 
 +MLS1(config-if)#ip address 10.0.0.1 255.255.255.252 
 +</code> 
 +  * **MLS2** 
 +<code> 
 +MLS2(config)#interface range ethernet 0/0 - 1 
 +MLS2(config-if-range)#no switchport 
 +MLS2(config-if-range)#channel-group 2 mode on 
 +Creating a port-channel interface Port-channel 2 
 +MLS2(config-if-range)#exit 
 +MLS2(config)#interface port-channel 2 
 +MLS2(config-if)#ip address 10.0.0.2 255.255.255.252 
 +</code>
  
-  * **Step 1 : Pembuatan VLANs**+=== Mengatur static routing antar subnet jaringan === 
 +  * **MLS1**
 <code> <code>
-Switch(config)#vlan 10 +MLS1(config)#ip routing 
-Switch(config-vlan)#name BIRU +MLS1(config)#ip route 192.168.2.0 255.255.255.0 10.0.0.2 
-Switch(config-vlan)#exit+</code> 
 +  * **MLS2** 
 +<code> 
 +MLS2(config)#ip routing 
 +MLS2(config)#ip route 192.168.1.0 255.255.255.0 10.0.0.1 
 +</code> 
 +===== Testing ===== 
 +<hidden Testing Koneksifitas> 
 +* **PC1** 
 +<code> 
 +PC1> ip dhcp 
 +DORA IP 192.168.1.4/24 GW 192.168.1.1
  
-Switch(config)#vlan 20 +PC1> ping 192.168.2.2 
-Switch(config-vlan)#name MAGENTA + 
-Switch(config-vlan)#exit+84 bytes from 192.168.2.2 icmp_seq=1 ttl=62 time=3.365 ms 
 +84 bytes from 192.168.2.2 icmp_seq=2 ttl=62 time=1.824 ms 
 +84 bytes from 192.168.2.2 icmp_seq=3 ttl=62 time=2.193 ms 
 +84 bytes from 192.168.2.2 icmp_seq=4 ttl=62 time=2.082 ms 
 +84 bytes from 192.168.2.2 icmp_seq=5 ttl=62 time=2.116 ms 
 + 
 +PC1> trace 192.168.2.2 
 +trace to 192.168.2.2, 8 hops max, press Ctrl+C to stop 
 +   192.168.1.1   1.079 ms  0.725 ms  0.724 ms 
 +   10.0.0.2   1.328 ms  1.116 ms  1.100 ms 
 +   *192.168.2.2   1.595 ms (ICMP type:3, code:3, Destination port unreachable)
 </code> </code>
-  * **Step 2 : Assign VLANs ke Ports**+* **PC2**
 <code> <code>
-Switch(config)#interface f0/1 +PC2> ip dhcp 
-Switch(config-if)#switchport mode access  +DDORA IP 192.168.1.5/24 GW 192.168.1.1
-Switch(config-if)#switchport access vlan 10 +
-Switch(config-if)#exit+
  
-Switch(config)#interface f0/2 +PC2> ping 192.168.2.2 
-Switch(config-if)#switchport mode access  + 
-Switch(config-if)#switchport access vlan 10 +84 bytes from 192.168.2.2 icmp_seq=1 ttl=62 time=2.208 ms 
-Switch(config-if)#exit+84 bytes from 192.168.2.2 icmp_seq=2 ttl=62 time=1.843 ms 
 +84 bytes from 192.168.2.2 icmp_seq=3 ttl=62 time=2.169 ms 
 +84 bytes from 192.168.2.2 icmp_seq=4 ttl=62 time=2.413 ms 
 +84 bytes from 192.168.2.2 icmp_seq=5 ttl=62 time=2.028 ms 
 + 
 +PC2> trace 192.168.2.2 
 +trace to 192.168.2.2, 8 hops max, press Ctrl+C to stop 
 +   192.168.1.1   0.942 ms  0.671 ms  0.672 ms 
 +   10.0.0.2   1.183 ms  1.223 ms  1.034 ms 
 +   *192.168.2.2   2.217 ms (ICMP type:3, code:3, Destination port unreachable) 
 +</code> 
 +* **Server** 
 +<code> 
 +Server> ip dhcp 
 +DORA IP 192.168.2.2/24 GW 192.168.2.1 
 + 
 +Server> ping 192.168.1.5 
 + 
 +84 bytes from 192.168.1.5 icmp_seq=1 ttl=62 time=2.272 ms 
 +84 bytes from 192.168.1.5 icmp_seq=2 ttl=62 time=2.111 ms 
 +84 bytes from 192.168.1.5 icmp_seq=3 ttl=62 time=1.958 ms 
 +84 bytes from 192.168.1.5 icmp_seq=4 ttl=62 time=2.112 ms 
 +84 bytes from 192.168.1.5 icmp_seq=5 ttl=62 time=2.023 ms 
 + 
 +Server> trace 192.168.1.5 
 +trace to 192.168.1.5, 8 hops max, press Ctrl+C to stop 
 +   192.168.2.1   0.552 ms  0.370 ms  0.331 ms 
 +   10.0.0.1   0.962 ms  0.691 ms  0.934 ms 
 +   *192.168.1.5   1.634 ms (ICMP type:3, code:3, Destination port unreachable) 
 +</code> 
 +</hidden> 
 +* **MLS1** 
 +<code> 
 +MLS1#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      N - not in use, no aggregation 
 +        f - failed to allocate aggregator 
 + 
 +        M - not in use, minimum links not met 
 +        m - not in use, port not aggregated due to minimum links not met 
 +        u - unsuitable for bundling 
 +        w - waiting to be aggregated 
 +        d - default port 
 + 
 +        A - formed by Auto LAG 
 + 
 + 
 +Number of channel-groups in use: 2 
 +Number of aggregators:           2 
 + 
 +Group  Port-channel  Protocol    Ports 
 +------+-------------+-----------+----------------------------------------------- 
 +1      Po1(SU)         LACP      Et0/2(P)    Et0/3(P) 
 +2      Po2(RU)                 Et0/0(P   Et0/1(P) 
 +</code> 
 +* **MLS2** 
 +<code> 
 +MLS2#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      N - not in use, no aggregation 
 +        f - failed to allocate aggregator 
 + 
 +        M - not in use, minimum links not met 
 +        m - not in use, port not aggregated due to minimum links not met 
 +        u - unsuitable for bundling 
 +        w - waiting to be aggregated 
 +        d - default port 
 + 
 +        A - formed by Auto LAG 
 + 
 + 
 +Number of channel-groups in use: 2 
 +Number of aggregators:           2 
 + 
 +Group  Port-channel  Protocol    Ports 
 +------+-------------+-----------+----------------------------------------------- 
 +1      Po1(SU)         PAgP      Et0/2(P)    Et0/3(P
 +2      Po2(RU)                 Et0/0(P)    Et0/1(P)
 </code> </code>
  
-===== Testing ===== 
  • networking/cisco/etherchannel.1770136610.txt.gz
  • Last modified: 2026/02/03 23:36
  • by ilyasa