Sri Bohay

53
VLAN adalah suatu pengelompokan host-host mengurangi tingkat traffic. Kelebihan VLAN Mengurangi broadcast domain Mengelompokan host-host Memperkuat keamanan CARA MEMBUAT VLAN PADA SWITCH: CARA MEMBUAT VLAN PADA SWITCH:

description

description

Transcript of Sri Bohay

Page 1: Sri Bohay

VLAN adalah suatu pengelompokan host-host mengurangi

tingkat traffic.

Kelebihan VLAN

• Mengurangi broadcast domain

• Mengelompokan host-host

• Memperkuat keamanan

CARA MEMBUAT VLAN PADA SWITCH:

• CARA MEMBUAT VLAN PADA SWITCH:

Page 2: Sri Bohay

Switch(config)#vlan 10

Switch(config-vlan)#name srii

Switch(config-vlan)#ex

Switch(config)#vlan 20

Switch(config-vlan)#name hartinahhh

Switch(config-vlan)#int fa0/1

Switch(config-if)#swi

Switch(config-if)#switchport mode access

Switch(config-if)#switchport vlan 10

^

% Invalid input detected at '^' marker.

Switch(config-if)#sw

Switch(config-if)#switchport access vlan 10

Switch(config-if)#ex

Switch(config)#int fa1/1

Page 3: Sri Bohay

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 10

Switch(config-if)#ex

Switch(config)#int fa2/1

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 20

Switch(config-if)#ex

Switch(config)#int fa3/1

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 20

Switch(config-if)#ex

Page 4: Sri Bohay

• Menghubungkan vlan pada 2 switch

Page 5: Sri Bohay

• Tambahkan vlan 10 dan 20 dan beri nama pada kedua switch

Switch(config)#vlan 10

Switch(config-vlan)#name sri

Switch(config-vlan)#ex

Switch(config)#vlan 20

Switch(config-vlan)#name hartina

• Kemudian kita kelompokan host-host tersebut berdasarkan interface pada switch

pertama:

Switch(config-vlan)#int fa0/1

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 10

Page 6: Sri Bohay

Switch(config-if)#ex

• Kemudian kita kelompokan host-host tersebut berdasarkan interface pada switch

kedua:

Switch(config)#int fa1/1

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 20

Switch(config-if)#ex

Switch(config)#int fa2/1

Switch(config-if)#switchport mode tr

Switch(config-if)#switchport mode trunk

Page 7: Sri Bohay

Switch>en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#int fa3/1

Switch(config-if)#no sw

Switch(config-if)#no switchport access vlan 20

Switch(config-if)#ex

Switch(config)#int fa3/1

Page 8: Sri Bohay

Switch(config-if)#swi

Switch(config-if)#switchport mode tr

Switch(config-if)#switchport mode trunk

Switch>en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#vlan 10

Switch(config-vlan)#name sri

Switch(config-vlan)#ex

Switch(config)#vlan 20

Switch(config-vlan)#name hartinah

Switch(config-vlan)#ex

Switch(config)#int fa1/1

Switch(config-if)#sw

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 10

Switch(config-if)#ex

Switch(config)#int fa2/1

Switch(config-if)#sw

Page 9: Sri Bohay

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 20

Switch(config-if)#ex

Switch(config)#int fa0/1

Switch(config-if)#swi

Switch(config-if)#switchport mode access

Switch(config-if)#

Switch>en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#int fa0/1

Switch(config-if)#swi

Switch(config-if)#switchport mode tr

Switch(config-if)#switchport mode trunk

Page 10: Sri Bohay

Switch>en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#int vlan 10

Switch(config-if)#ex

Switch(config)#

Switch(config)#ex

Page 11: Sri Bohay

Switch#

%SYS-5-CONFIG_I: Configured from console by console

Switch#en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#ip rout

Switch(config)#ip routing

Switch>en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#int vlan 20

Switch(config-if)#

%LINK-5-CHANGED: Interface Vlan20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up

Switch(config-if)#no sh

Switch(config-if)#ex

Switch(config)#ip rou

Switch(config)#ip routing

Switch(config)#ex

Switch#

Page 12: Sri Bohay

%SYS-5-CONFIG_I: Configured from console by console

Switch#en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#int vlan 10

Switch(config-if)#ip addr 10.10.10.1 255.255.255.0

Switch(config-if)#no sh

Switch(config-if)#ex

Switch(config)#int vlan 20

Switch(config-if)#ip addr 20.20.20.1 255.255.255.0

Switch(config-if)#no sh

Switch(config-if)#ex

KONFIGURASI DHCP PADA SWITCH MULTI LAYER

Page 13: Sri Bohay

• Konfigurasi pada CLI untuk memberi IP dengan menggunakan DHCP

• Konfigurasi pada DHCP1:

• Konfigurasi pada DHCP2:

Page 14: Sri Bohay

• Rubah IP CONFIGURATION dari static menjadi DHCP

• Pada PC

Page 15: Sri Bohay

• Pada LAPTOP:

Page 16: Sri Bohay
Page 17: Sri Bohay

• Kemudian PING

• Antara PC dengan PC

Page 18: Sri Bohay

• Antara LAPTOP dengan LAPTOP

Page 19: Sri Bohay

• Antara PC dengan LAPTOP

Page 20: Sri Bohay
Page 21: Sri Bohay

Switch>en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#vlan 10

Switch(config-vlan)#name sri

Switch(config-vlan)#ex

Page 22: Sri Bohay

Switch(config)#vlan 20

Switch(config-vlan)#name hartinah

Switch(config-vlan)#ex

Switch(config)#int fa0/1

Switch(config-if)#swit

Switch(config-if)#switchport mode access

Switch(config-if)#swit

Switch(config-if)#switchport acc

Switch(config-if)#switchport access vlan 10

Switch(config-if)#ex

Switch(config-if)#swit

Switch(config-if)#switchport mode acc

Switch(config-if)#switchport mode access

Switch(config-if)#swit

Switch(config-if)#switchport acc

Switch(config-if)#switchport access vlan 10

Switch(config-if)#ex

Switch(config)#int fa2/1

Switch(config-if)#swit

Switch(config-if)#switchport mode acc

Switch(config-if)#switchport mode access

Page 23: Sri Bohay

Switch(config-if)#swit

Switch(config-if)#switchport acc

Switch(config-if)#switchport access vlan 10

Switch(config-if)#ex

Switch(config)#int fa3/1

Switch(config-if)#swi

Switch(config-if)#switchport mode access

Switch(config-if)#swit

Switch(config-if)#switchport access vlan 10

Switch(config-if)#ex

Switch(config)#

Page 24: Sri Bohay
Page 25: Sri Bohay
Page 26: Sri Bohay
Page 27: Sri Bohay
Page 28: Sri Bohay
Page 29: Sri Bohay
Page 30: Sri Bohay
Page 31: Sri Bohay
Page 32: Sri Bohay
Page 33: Sri Bohay

Menganti root bridge

• Menganti root brigde dan main link pada

stp

Switch>en

Page 34: Sri Bohay

Switch#conf t

Enter configuration commands, one per line. End with

CNTL/Z.

Switch(config)#ho

Switch(config)#hostname kiri

kiri(config)#ex

kiri#

%SYS-5-CONFIG_I: Configured from console by console

kiri#conf t

Enter configuration commands, one per line. End

with CNTL/Z.

kiri(config)#sh sp

kiri#sh sp

kiri#sh spanning-tree

VLAN0001

Spanning tree enabled protocol ieee

Root ID Priority 32769

Address 0001.426C.4ACA

Cost 19

Page 35: Sri Bohay

Port 1(FastEthernet0/1)

Hello Time 2 sec Max Age 20 sec

Forward Delay 15 sec

Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)

Address 0010.1180.6C7A

Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Aging Time 20

Interface Role Sts Cost Prio.Nbr Type

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

Fa0/1 Root FWD 19 128.1 P2p

Fa1/1 Altn BLK 19 128.2 P2p

0 4096 8192 12288 16384 20480 24576

28672

kiri(config)#

kiri(config)#ex

kiri#

%SYS-5-CONFIG_I: Configured from console by

console

Page 36: Sri Bohay

kiri#conf t

Enter configuration commands, one per line. End

with CNTL/Z.

kiri(config)#int fa0/1

kiri(config-if)#sp

kiri(config-if)#speed 10

kiri(config-if)#ex

kiri(config)#ex

kiri#

%SYS-5-CONFIG_I: Configured from console by

console

kiri#sh sp

kiri#sh spanning-tree vlan 1 pr

kiri#conf t

Enter configuration commands, one per line. End

with CNTL/Z.

kiri(config)#sh sp

kiri(config)#ex

kiri#

Page 37: Sri Bohay

%SYS-5-CONFIG_I: Configured from console by

console

kiri#sh pr

kiri#sh sp

kiri#conf t]

0 4096 8192 12288 16384 20480 24576 28672

32768 36864 40960 45056 49152 53248 57344

61440

kiri(config)#spanning-tree vlan 1 priority 32679

% Bridge Priority must be in increments of 4096.

% Allowed values are:

0 4096 8192 12288 16384 20480 24576

28672

32768 36864 40960 45056 49152 53248 57344

61440

kiri(config)#spanning-tree vlan 1 priority 32769

% Bridge Priority must be in increments of 4096.

% Allowed values are:

Page 38: Sri Bohay

0 4096 8192 12288 16384 20480 24576

28672

32768 36864 40960 45056 49152 53248 57344

61440

kiri(config)#ex

Root ID Priority 4097

Address 0010.1180.6C7A

This bridge is the root

Hello Time 2 sec Max Age 20 sec

Forward Delay 15 sec

Bridge ID Priority 4097 (priority 4096 sys-id-

ext 1)

Address 0010.1180.6C7A

Hello Time 2 sec Max Age 20 sec

Forward Delay 15 sec

Aging Time 20

Interface Role Sts Cost Prio.Nbr Type

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

Fa0/1 Desg FWD 100 128.1 P2p

Page 39: Sri Bohay

Fa1/1 Desg FWD 19 128.2 P2p

Root ID Priority 4097

Address 0010.1180.6C7A

This bridge is the root

Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 4097 (priority 4096 sys-id-ext 1)

Address 0010.1180.6C7A

Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Aging Time 20

Root ID Priority 8193

Address 0010.1180.6C7A

Cost 19

Port 2(FastEthernet1/1)

Hello Time 2 sec Max Age 20 sec

Forward Delay 15 sec

Bridge ID Priority 32769 (priority 32768

sys-id-ext 1)

Address 0001.426C.4ACA

Page 40: Sri Bohay

Hello Time 2 sec Max Age 20 sec

Forward Delay 15 sec

Aging Time 20

Root ID Priority 4097

Address 0001.426C.4ACA

This bridge is the root

Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 4097 (priority 4096 sys-id-ext 1)

Address 0001.426C.4ACA

Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Aging Time 20

Interface Role Sts Cost Prio.Nbr Type

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

Fa1/1 Desg FWD 19 128.2 P2p

Fa0/1 Desg LSN 100 128.1 P2p

Switch>en

Switch#conf t

Page 41: Sri Bohay

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#hos

Switch(config)#hostname kanan

kanan(config)#ex

kanan#

%SYS-5-CONFIG_I: Configured from console by console

kanan#conf t

Enter configuration commands, one per line. End with CNTL/Z.

kanan(config)#sp

kanan(config)#spanning-tree

% Incomplete command.

kanan(config)#

kanan(config)#sp

kanan(config)#spanning-tree

% Incomplete command.

kanan(config)#ex

MENGGUNAKAN ETHERCHANNEL LACP

Page 42: Sri Bohay

kanan>en

kanan#conf t

Enter configuration commands, one per line. End with CNTL/Z.

kanan(config)#int ran fa0/5

kanan(config-if-range)#ex

kanan(config)#int port-ch

kanan(config)#int port-channel 1

kanan(config-if)#swi

kanan(config-if)#switchport mode tr

kanan(config-if)#switchport mode trunk

Page 43: Sri Bohay

kanan(config-if)#ex

kanan(config)#

mengganti ip address pada laptop 4

• Mengganti ip address pada laptop 5

Page 44: Sri Bohay

• MENGANTI IP ADDRESS PADA PC 8

Page 45: Sri Bohay

• MENGGANTI IP ADDRESS PADA PC9

Page 46: Sri Bohay

MENGGUNAKAN ETHERCHANNEL PAGP

kiri#conf t

Enter configuration commands, one per line. End

with CNTL/Z.

kiri(config)#int ran fa0/1-3

kiri(config-if-range)#ex

kiri(config)#chan

Page 47: Sri Bohay

kiri(config)#channel-gr

kiri(config)#int ran fa0/1-3

kiri(config-if-range)#channel-group 1 mode desirable

kiri(config-if-range)#

Creating a port-channel interface Port-channel 1

• Mengubah ip address pada laptop 6

Page 48: Sri Bohay

• Mengubah ip address pada laptop 7

Page 49: Sri Bohay

“Tugas static routing”

config router 1(hostname medan)

Page 50: Sri Bohay

Config router 2(hostname jakarta)

Page 51: Sri Bohay

Config router 3(hostname bali)

Page 52: Sri Bohay
Page 53: Sri Bohay