February 24, 2026

mengaktifkan switch jadi Layer-3

Untuk “mengaktifkan switch jadi Layer-3” di Cisco, intinya ada 2 hal:

  1. Switch harus memang mendukung L3 (mis. Catalyst 3560/3650/3850/9K).
  2. Aktifkan routing + pakai SVI (interface vlan) atau routed port.

1) Cek switch mendukung Layer-3 atau tidak

show version
show sdm prefer

Kalau perintah ip routing tidak ada, besar kemungkinan switch-nya Layer-2 saja (mis. banyak seri 2960).

2) Aktifkan fungsi routing (jadikan L3)

conf t
ip routing
end
wr mem

3) Buat SVI sebagai gateway VLAN (Inter-VLAN Routing)

Contoh VLAN 10 & 20:

conf t
vlan 10
vlan 20

interface vlan 10
 ip address 192.168.10.1 255.255.255.0
 no shutdown

interface vlan 20
 ip address 192.168.20.1 255.255.255.0
 no shutdown
end
wr mem

Pastikan ada port access/trunk yang membawa VLAN itu dan link up, supaya SVI statusnya up/up.

4) (Opsional) Uplink sebagai routed port ke router/ISP

Kalau mau port fisik jadi interface L3:

conf t
interface gi0/1
 no switchport
 ip address 10.0.0.2 255.255.255.252
 no shutdown
end
wr mem

5) Verifikasi

show ip route
show ip interface brief
show vlan brief

Catatan penting

  • Switch L3 tetap bisa switch VLAN (L2) dan routing antar VLAN (L3).
  • Kalau switch kamu L3 tapi belum bisa routing antar VLAN, biasanya lupa ip routing atau SVI belum up.

 

Related Articles