.. Welcome ..



.. Welcome to 'Komunitas Cisco' site ..



Minggu, 28 April 2013

Konfigurasi VLAN pada Cisco Catalyst Switch tahap 1


Konfigurasi Inter-vlan routing pada Cisco Catalyst Switch

melanjutkan konfigurasi pada lab sebelumnya, sekarang kita akan mencoba membuat vlan yang berbeda dapat saling berkomunikasi dengan cara menambahkan sebuah router seperti gambar diatas. konfigurasi ini umum disebut inter-vlan routing atau router on stick. Dari contoh diatas digunakan contoh vlan 2 dan vlan 3 yang akan mencoba saling berkomunikasi, berikut langkah-langkahnya:

Task 1: Konfigurasi VTP
(config)# vtp mode transparent
(config)# vtp domain ccna

Task 2: Konfigurasi VLAN Trunking
SWITCH-A:
(config)# int f0/12
(config-if-range)# description  Link to Switch-B
(config-if-range)# switchport mode trunk
(config-if-range)# no shutdown

(config)# int f0/10
(config-if-range)# description  Link to Router
(config-if-range)# switchport mode trunk
(config-if-range)# no shutdown


SWITCH-B:
(config)# int f0/12
(config-if-range)# description  Link to Switch-A
(config-if-range)# switchport mode trunk
(config-if-range)# exit

Task 3: Membuat VLAN
(config)# vlan 2
(config-vlan)# name vlan-2
(config-vlan)# vlan 3
(config-vlan)# name vlan-3
(config-vlan)# exit

Task 4: Konfigurasi VLAN-membership
SWITCH-A:
(config-if)# int f0/2
(config-if)# description *** TO LAPTOP-XXX ***
(config-if)# switchport mode access
(config-if)# switchport access vlan 2

SWITCH-B:
(config-if)# int f0/2
(config-if)# description *** TO LAPTOP-XXX ***
(config-if)# switchport mode access
(config-if)# switchport access vlan 3

ALL SWITCHES:
# copy run start      ATAU # write memory
# sh int f0/12 switchport    --> trunk port
# sh int f0/12 trunk
# sh int f0/2 switchport --> access-port
# sh vlan
# sh vtp status

Task 5: Konfigurasi Router-on-a-stick
Router:
> enable
# erase start
# reload

Tunggu sampai selesai booting:
Would you like to enter initial configuration? n

> enable
# conf t
(config)# host Router-Cisco
(config)# enable secret cisco

(config)# line vty 0 4
(config-line)# no login

(config)# int f0/0
(config-if)# no shutdown

(config-if)# int f0/0.1
(config-subif)# desc    *** TO VLAN-1 ***
(config-subif)# encapsulation dot1q 1 native
(config-subif)# ip address  10.1.1.1  255.255.255.0

(config-if)# int f0/0.2
(config-subif)# desc  *** TO VLAN-2 ***
(config-subif)# encapsulation dot1q 2
(config-subif)# ip address 10.1.2.1 255.255.255.0
  
(config-subif)# int f0/0.3
(config-subif)# desc   *** TO VLAN-3 ***
(config-subif)# encap dot1q 3
(config-subif)# ip address 10.1.3.1 255.255.255.0
(config-subif)# end

# sh ip route   --> melihat routing table
# ping 10.1.1.10
# ping 10.1.1.20

Verifikasi:
PC-A:
C:> ping 10.1.2.1  --> gateway-nya (vlan 2)
C:> ping 10.1.1.10  --> switch-A (vlan 1)
C:> ping 10.1.1.20
C:> ping 10.1.3.1 --> vlan 3
C:> ping 10.1.3.21 --> vlan 3

Task 6: Menghapus Konfigurasi VLAN:
Router:
# erase startup-config   ATAU    # write erase
# reload

ALL SWITCHES:
(config)# vtp mode transparent

(config)# int range f0/1 – 12
(config-if-range)# switchport mode access
(config-if-range)# switchport access vlan 1
(config-if-range)# exit

(config)# no vlan 2
(config)# no vlan 3
(config)# end

# copy run start




3 komentar: