0% found this document useful (0 votes)
147 views53 pages

Sri Bohay

The document discusses configuring VLANs and trunking between two switches. The key steps are: 1) Create VLANs 10 and 20 on each switch and assign interface ports to the appropriate VLAN. 2) Configure one switch interface as a trunk port to connect the switches and allow both VLANs to cross over. 3) Verify connectivity by pinging hosts on different VLANs but connected to different switches.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
147 views53 pages

Sri Bohay

The document discusses configuring VLANs and trunking between two switches. The key steps are: 1) Create VLANs 10 and 20 on each switch and assign interface ports to the appropriate VLAN. 2) Configure one switch interface as a trunk port to connect the switches and allow both VLANs to cross over. 3) Verify connectivity by pinging hosts on different VLANs but connected to different switches.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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:

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

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

Menghubungkan vlan pada 2 switch

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

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

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

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

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

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

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#

%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

Konfigurasi pada CLI untuk memberi IP dengan menggunakan DHCP

Konfigurasi pada DHCP1:

Konfigurasi pada DHCP2:

Rubah IP CONFIGURATION dari static menjadi DHCP

Pada PC

Pada LAPTOP:

Kemudian PING

Antara PC dengan PC

Antara LAPTOP dengan LAPTOP

Antara PC dengan LAPTOP

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 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

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)#

Menganti root bridge


Menganti root brigde dan main link pada
stp

Switch>en

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
Cost

0001.426C.4ACA
19

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

Fa1/1

Altn BLK 19

128.1 P2p
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

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#

%SYS-5-CONFIG_I: Configured from console by


console

kiri#sh pr
kiri#sh sp
kiri#conf t]

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:

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-idext 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

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

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

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

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

kanan(config-if)#ex
kanan(config)#

mengganti ip address pada laptop 4

Mengganti ip address pada laptop 5

MENGANTI IP ADDRESS PADA PC 8

MENGGANTI IP ADDRESS PADA PC9

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

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

Mengubah ip address pada laptop 7

Tugas static routing

config router 1(hostname medan)

Config router 2(hostname jakarta)

Config router 3(hostname bali)

You might also like