You are on page 1of 7

+

Praktikum Jaringan
Telekomunikasi (EL5140 &
ET3003)
Modul 3 : Switching

+
Outline

Basic Configuration of VLAN

Route on Stick Configuration

Inter-VLAN Routing Configuration

+
Basic Configuration of VLAN

VLAN (Virtual Local Area Network)

Isolate host within physical switch into


multiple broadcast domain

Work on layer 2

Standard

Inter-switch link (ISL) : proprietary


cisco

Standard 802.1Q

Add 32bit header into frame

TPID, Tag protocol identifier


(16bit) : distinguish the frame from
untagged frames

TCI, Tag control information (16bit)

PCP, Priority code point (3bit) :


priority level {0|2|3||7}

DEI, Drop Eligible Indicator


(1bit) : mark eligible frame to
dropped during congestion

VID, VLAN identifier (12bit) :


specify VLAN number a frame
belong

+
Basic Configuration of VLAN

Technic

Port based

Port 1 VLAN 100


Port 2 VLAN 200

Protocol based

IP VLAN 50

VLAN Membership

Static

Dynamic

Port link-type/switchport mode

IPX VLAN 60

Subnet-based

167.205.23.0 VLAN 23

Trunk : carry tagged frame

router <-> switch

Switch <-> switch

Access : terminate tagged


frame

167.205.24.0 VLAN 24

End-user <-> switch

Hybrid : carry multiple VLAN


also allow untagged one

+
Implementasi VLAN di
perangkat Huawei

Objective

Isolate host based on VLAN

Configuration Step

Create VLAN

Interface ether 0/0/2


port link-type access
Interface ether 0/0/3
port link-type access
[SW2 ]vlan 100
port ethernet 0/0/2
vlan 200
port giga 0/0/3
[SW1] vlan 100
port giga 0/0/2
vlan 200
port giga 0/0/3

Verification Step

On SW1 & SW2

display vlan

Configure VLAN port trunk

Ping client on same switch

[SW2&1] interface giga 0/0/1

Ping client on same VLAN at


different switch

port link-type trunk


port trunk allow-pass vlan 100 200

+
Route on Stick Configuration

Objective

Route host on different VLAN using


subinterface

Create VLAN & trunk port


[SW1]
interface giga 0/0/2
port link-type access
Interface giga 0/0/3
port link-type access
vlan 100
port giga 0/0/2
vlan 200
port giga 0/0/3
interface giga 0/0/1
port link-type trunk
port trunk allow-pass vlan 100 200

Configure subinterface on router


[RT1] interface giga 0/0/0.1
vlan-type dot1q vid 100
ip address 172.16.10.1 24
[RT1] Interface giga 0/0/0.2
vlan-type dot1q vid 200
ip address 172.16.20.1

Verification
[SW1] display vlan
[RT1] display ip routing-table
Client 1 Ping Client 2

+
Inter-VLAN Routing
Configuration

Objective

Isolate host using VLAN

Route host using switch vlan interfacece

Configure VLAN
[SW2] vlan 100
port giga 0/0/2
vlan 200
port giga 0/0/3
interface giga 0/0/1
port link-type trunk
port trunk allow-pass vlan 100 200
[SW1] vlan 100
port giga 0/0/2
Interface giga 0/0/1
port link-type trunk
port trunk allow-pass vlan 100 200

Configure layer 3 interface on router


[SW2] interface vlan-interface 10

ip address 172.16.10.1 255.255.255.0

[SW2] ip route-static 172.16.30.0 24

interface vlan-interface 20

[SW1] ip route-static 172.16.10.0 24

ip address 172.16.20.1 255.255.255.0

[SW1] ip route-static 172.16.20.0 24

interface vlan-interface 1
ip address 172.16.1.1 255.255.255.0
[SW1] interface vlan-interface 10
ip address 172.16.30.1
interface vlan-interface 1
ip address 172.16.1.1

Configure static route

Verification

Check routing table on SW1 & SW2

display ip routing-table

Ping from all

You might also like