Cara Configurasi Cisco IOS Switch Layer 2 Trunk

Topologi










Switch-1
---------------------------------------------------------------------------------
Aktifkan/Enable Semua Interface

Switch-1>enable
Switch-1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch-1(config)#interface range ethernet 0/0-3
Switch-1(config-if-range)#shutdown

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

interface Ethernet0/0
switchport access vlan 22
switchport mode access

interface Ethernet0/1
switchport access vlan 23
switchport mode access

interface Ethernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
#write


Switch-2

---------------------------------------------------------------------------------
Aktifkan/Enable Semua Interface

Switch-2>enable
Switch-2#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch-2(config)#interface range ethernet 0/0-3
Switch-2(config-if-range)#shutdown


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

interface Ethernet0/0
switchport access vlan 22
switchport mode access

interface Ethernet0/1
switchport access vlan 23
switchport mode access

interface Ethernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
#write

Kita juga bisa memfilter vlan berapa saja yang boleh lewat di interface trunk

Switch-1(config-if)#switchport trunk allowed vlan 22,23
Switch-2(config-if)#switchport trunk allowed vlan 22,23

Semoga Bermanfaat
Penulis : Een Pahlefi,S.Kom

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel