Anda di halaman 1dari 11

Sekilas mengenai VLAN

Sebelum kita memulai penjelasan mengenai topologi dan konfigurasi menggunakan Konfigurasi InterVLAN
Routing, ada baiknya kita memahami ataupun mengulas tentang VLAN terlebih dahulu.
Pengertian VLAN
Virtual LAN atau disingkat VLAN merupakan sekelompok perangkat pada satu LAN atau lebih yang
dikonfigurasikan (menggunakan perangkat lunak pengelolaan) sehingga dapat berkomunikasi seperti halnya
bila perangkat tersebut terhubung ke jalur yang sama, padahal sebenarnya perangkat tersebut berada pada
sejumlah segmen LAN yang berbeda.
Mengapa menggunakan InterVLAN Routing?
[+] Dengan mengunakan InterVLAN Routing, kita dapat membangun sebuah jaringan dengan menggunakan
biaya yang cukup rendah karena kita hanya menggunakan satu buah router. Seperti yang kita ketahui bahwa
router memiliki interface yang terbatas.
[+] Kita dapat meningkatkan keamanan sebuah jaringan.
[+] Memberikan performa yang baik.
[+] ++
Konfigurasi InterVLAN Routing
Berikut gambaran topologi yang akan kita konfigurasi :

Topologi di atas terdiri dari:


- 4 VLAN (dua, tiga, empat, dan lima)
- 3 Switch yang bertindak sebagai server (Switch0, Switch1, dan Switch2),
- 4 Switch yang bertindak sebagai client (Switch3, Switch4, Switch5 dan Switch6),
- 1 Router sebagai one stack router (R0), dan
- 8 PC (masing 2 PC untuk tiap VLAN).
Saya rasa, Anda sudah mulai tahu dan terbiasa dengan konfigurasi-konfigurasi yang telah saya buat pada
postingan-postingan sebelumnya, jadi kita langsung saja masuk ke konfigurasi dari topologi di atas tanpa
penjelasan yang mendetail seperti postingan sebelumnya. ^^.
Memulai konfigurasi :
Konfigurasi pada Switch0:
Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vtp mode server
Device mode already VTP SERVER.
Switch(config)#vtp domain zuyan
Changing VTP domain name from NULL to zuyan
Switch(config)#vtp pass aji
Setting device VLAN database password to aji
Switch(config)#vlan 2

Switch(config-vlan)#name dua
Switch(config-vlan)#ex
Switch(config)#vlan 3
Switch(config-vlan)#name tiga
Switch(config-vlan)#ex
Switch(config)#vlan 4
Switch(config-vlan)#name empat
Switch(config-vlan)#ex
Switch(config)#vlan 5
Switch(config-vlan)#name lima
Switch(config-vlan)#ex
Switch(config)#^Z
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#sh vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- -----------------------------1
default
active
Fa0/1, Fa0/2, Fa0/3,
Fa0/4
Fa0/5, Fa0/6, Fa0/7,
Fa0/8
Fa0/9, Fa0/10, Fa0/11,
Fa0/12
Fa0/13, Fa0/14, Fa0/15,
Fa0/16
Fa0/17, Fa0/18, Fa0/19,
Fa0/20
Fa0/21, Fa0/22, Fa0/23,
Fa0/24
2
dua
active
3
tiga
active
4
empat
active
5
lima
active
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup
1004 fddinet-default
act/unsup
1005 trnet-default
act/unsup
VLAN Type
Trans2
---- --------1
enet
2
enet
3
enet
4
enet
5
enet
1002 fddi
0
1003 tr
0
1004 fdnet
0
1005 trnet

SAID

MTU

Parent RingNo BridgeNo Stp

BrdgMode Trans1

---------- ----- ------ ------ -------- ---- -------- ------ 100001


100002
100003
100004
100005
101002

1500
1500
1500
1500
1500
1500

0
0
0
0
0
0

101003

1500

101004

1500

ieee -

101005

1500

ibm

0
0
0
0
0

0
Remote SPAN VLANs
-----------------------------------------------------------------------------

Primary Secondary Type


Ports
------- --------- ----------------- ----------------------------------------Switch#conf t
Switch(config)#int ra fa0/1-3
Switch(config-if-range)#switchport mode trunk
Switch(config-if-range)#switchport trunk native vlan 1
Konfigurasi pada Switch1:
Switch>en
Switch#conf t
Switch(config)#vtp mode server
Device mode already VTP SERVER.
Switch(config)#vtp domain zuyan
Domain name already set to zuyan.
Switch(config)#vtp password aji
Setting device VLAN database password to aji
Switch(config)#int ra fa0/1-3
Switch(config-if-range)#switchport mode trunk
Switch(config-if-range)#switchport trunk native vlan 1
Switch(config-if-range)#^Z
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#sh vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- -----------------------------1
default
active
Fa0/4, Fa0/5, Fa0/6,
Fa0/7
Fa0/8, Fa0/9, Fa0/10,
Fa0/11
Fa0/12, Fa0/13, Fa0/14,
Fa0/15
Fa0/16, Fa0/17, Fa0/18,
Fa0/19
Fa0/20, Fa0/21, Fa0/22,
Fa0/23
Fa0/24
2
dua
active
3
tiga
active
4
empat
active
5
lima
active
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup
1004 fddinet-default
act/unsup
1005 trnet-default
act/unsup

VLAN Type
Trans2
---- --------1
enet
2
enet
3
enet
4
enet
5
enet
1002 fddi
0
1003 tr
0
1004 fdnet
0
1005 trnet
0

SAID

MTU

Parent RingNo BridgeNo Stp

BrdgMode Trans1

---------- ----- ------ ------ -------- ---- -------- ------ 100001


100002
100003
100004
100005
101002

1500
1500
1500
1500
1500
1500

0
0
0
0
0
0

101003

1500

101004

1500

ieee -

101005

1500

ibm

0
0
0
0
0

Remote SPAN VLANs


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

Primary Secondary Type


Ports
------- --------- ----------------- ----------------------------------------Switch#
Konfigurasi pada Switch2:
Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vtp mode server
Device mode already VTP SERVER.
Switch(config)#vtp domain zuyan
Domain name already set to zuyan.
Switch(config)#vtp password aji
Setting device VLAN database password to aji
Switch(config)#int ra fa0/1-3
Switch(config-if-range)#switchport mode trunk
Switch(config-if-range)#switchport trunk native vlan 1
Switch(config-if-range)#^Z
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#sh vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- -----------------------------1
default
active
Fa0/4, Fa0/5, Fa0/6,
Fa0/7
Fa0/8, Fa0/9, Fa0/10,
Fa0/11
Fa0/12, Fa0/13, Fa0/14,

Fa0/15
Fa0/16, Fa0/17, Fa0/18,
Fa0/19
Fa0/20, Fa0/21, Fa0/22,
Fa0/23
Fa0/24
2
3
4
5
1002
1003
1004
1005

dua
tiga
empat
lima
fddi-default
token-ring-default
fddinet-default
trnet-default

VLAN Type
Trans2
---- --------1
enet
2
enet
3
enet
4
enet
5
enet
1002 fddi
0
1003 tr
0
1004 fdnet
0
1005 trnet
0

SAID

MTU

active
active
active
active
act/unsup
act/unsup
act/unsup
act/unsup
Parent RingNo BridgeNo Stp

BrdgMode Trans1

---------- ----- ------ ------ -------- ---- -------- ------ 100001


100002
100003
100004
100005
101002

1500
1500
1500
1500
1500
1500

0
0
0
0
0
0

101003

1500

101004

1500

ieee -

101005

1500

ibm

0
0
0
0
0

Remote SPAN VLANs


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

Primary Secondary Type


Ports
------- --------- ----------------- ----------------------------------------Switch#
Konfigurasi pada Switch3:
Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vtp mode server
Device mode already VTP SERVER.
Switch(config)#vtp domain zuyan
Domain name already set to zuyan.
Switch(config)#vtp password aji
Setting device VLAN database password to aji
Switch(config)#int ra fa0/1-3
Switch(config-if-range)#switchport mode trunk

Switch(config-if-range)#switchport trunk native vlan 1


Switch(config-if-range)#^Z
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#sh vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- -----------------------------1
default
active
Fa0/4, Fa0/5, Fa0/6,
Fa0/7
Fa0/8, Fa0/9, Fa0/10,
Fa0/11
Fa0/12, Fa0/13, Fa0/14,
Fa0/15
Fa0/16, Fa0/17, Fa0/18,
Fa0/19
Fa0/20, Fa0/21, Fa0/22,
Fa0/23
Fa0/24
2
dua
active
3
tiga
active
4
empat
active
5
lima
active
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup
1004 fddinet-default
act/unsup
1005 trnet-default
act/unsup
VLAN Type
Trans2
---- --------1
enet
2
enet
3
enet
4
enet
5
enet
1002 fddi
0
1003 tr
0
1004 fdnet
0
1005 trnet
0

SAID

MTU

Parent RingNo BridgeNo Stp

BrdgMode Trans1

---------- ----- ------ ------ -------- ---- -------- ------ 100001


100002
100003
100004
100005
101002

1500
1500
1500
1500
1500
1500

0
0
0
0
0
0

101003

1500

101004

1500

ieee -

101005

1500

ibm

0
0
0
0
0

Remote SPAN VLANs


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

Primary Secondary Type


Ports
------- --------- ----------------- ----------------------------------------Switch#

Konfigurasi pada Switch4:


Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vtp mode client
Setting device to VTP CLIENT mode.
Switch(config)#vtp domain zuyan
Domain name already set to zuyan.
Switch(config)#vtp password aji
Setting device VLAN database password to aji
Switch(config)#in fa 0/1
Switch(config-if)#sw trunk native vlan 1
Switch(config-if)#ex
Switch(config)#int ra fa0/2-3
Switch(config-if-range)#switchport access vlan 3
Switch(config-if-range)#^Z
Switch#sh vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- -----------------------------1
default
active
Fa0/4, Fa0/5, Fa0/6,
Fa0/7
Fa0/8, Fa0/9, Fa0/10,
Fa0/11
Fa0/12, Fa0/13, Fa0/14,
Fa0/15
Fa0/16, Fa0/17, Fa0/18,
Fa0/19
Fa0/20, Fa0/21, Fa0/22,
Fa0/23
Fa0/24
2
dua
active
3
tiga
active
Fa0/2, Fa0/3
4
empat
active
5
lima
active
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup
1004 fddinet-default
act/unsup
1005 trnet-default
act/unsup
VLAN Type
Trans2
---- --------1
enet
2
enet
3
enet
4
enet
5
enet
1002 fddi
0
1003 tr
0
1004 fdnet
0

SAID

MTU

Parent RingNo BridgeNo Stp

BrdgMode Trans1

---------- ----- ------ ------ -------- ---- -------- ------ 100001


100002
100003
100004
100005
101002

1500
1500
1500
1500
1500
1500

0
0
0
0
0
0

101003

1500

101004

1500

ieee -

0
0
0
0
0

1005 trnet 101005


0

1500

ibm

Remote SPAN VLANs


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

Primary Secondary Type


Ports
------- --------- ----------------- ----------------------------------------Switch#
Konfigurasi pada Switch5:
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vtp mode client
Setting device to VTP CLIENT mode.
Switch(config)#vtp domain zuyan
Domain name already set to zuyan.
Switch(config)#vtp password aji
Setting device VLAN database password to aji
Switch(config)#int fa0/1
Switch(config-if)#switchport mode tr
Switch(config-if)#switchport tr na vlan 1
Switch(config-if)#ex
Switch(config)#int ra fa0/2-3
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 4
Switch(config-if-range)#^Z
Switch#
%SYS-5-CONFIG_I: Configured from console by console
sh vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- -----------------------------1
default
active
Fa0/4, Fa0/5, Fa0/6,
Fa0/7
Fa0/8, Fa0/9, Fa0/10,
Fa0/11
Fa0/12, Fa0/13, Fa0/14,
Fa0/15
Fa0/16, Fa0/17, Fa0/18,
Fa0/19
Fa0/20, Fa0/21, Fa0/22,
Fa0/23
Fa0/24
2
dua
active
3
tiga
active
4
empat
active
Fa0/2, Fa0/3
5
lima
active
1002 fddi-default
act/unsup
1003 token-ring-default
act/unsup
1004 fddinet-default
act/unsup

1005 trnet-default
VLAN Type
Trans2
---- --------1
enet
2
enet
3
enet
4
enet
5
enet
1002 fddi
0
1003 tr
0
1004 fdnet
0
1005 trnet
0

SAID

act/unsup
MTU

Parent RingNo BridgeNo Stp

BrdgMode Trans1

---------- ----- ------ ------ -------- ---- -------- ------ 100001


100002
100003
100004
100005
101002

1500
1500
1500
1500
1500
1500

0
0
0
0
0
0

101003

1500

101004

1500

ieee -

101005

1500

ibm

0
0
0
0
0

Remote SPAN VLANs


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

Primary Secondary Type


Ports
------- --------- ----------------- ----------------------------------------Switch#
Konfigurasi pada Switch6:
Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vtp mode client
Setting device to VTP CLIENT mode.
Switch(config)#vtp domain zuyan
Domain name already set to zuyan.
Switch(config)#vtp password aji
Setting device VLAN database password to aji
Switch(config)#int fa0/1
Switch(config-if)#switchport mode tr
Switch(config-if)#sw tr na vlan 1
Switch(config-if)#ex
Switch(config)#int ra fa0/2-3
Switch(config-if-range)#sw mode access
Switch(config-if-range)#switchport ac vlan 5
Switch#
%SYS-5-CONFIG_I: Configured from console by console
sh vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- -----------------------------1
default
active
Fa0/4, Fa0/5, Fa0/6,

Fa0/7
Fa0/8, Fa0/9, Fa0/10,
Fa0/11
Fa0/12, Fa0/13, Fa0/14,
Fa0/15
Fa0/16, Fa0/17, Fa0/18,
Fa0/19
Fa0/20, Fa0/21, Fa0/22,
Fa0/23
2
3
4
5
1002
1003
1004
1005

Fa0/24
active
active
active
active
Fa0/2, Fa0/3
act/unsup
act/unsup
act/unsup
act/unsup

dua
tiga
empat
lima
fddi-default
token-ring-default
fddinet-default
trnet-default

VLAN Type
Trans2
---- --------1
enet
2
enet
3
enet
4
enet
5
enet
1002 fddi
0
1003 tr
0
1004 fdnet
0
1005 trnet
0

SAID

MTU

Parent RingNo BridgeNo Stp

BrdgMode Trans1

---------- ----- ------ ------ -------- ---- -------- ------ 100001


100002
100003
100004
100005
101002

1500
1500
1500
1500
1500
1500

0
0
0
0
0
0

101003

1500

101004

1500

ieee -

101005

1500

ibm

0
0
0
0
0

Remote SPAN VLANs


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

Primary Secondary Type


Ports
------- --------- ----------------- ----------------------------------------Switch#
Konfigurasi pada Router0:
Router>en
Router#conf t
Enter configuration commands, one per line.
Router(config)#int fa0/0
Router(config-if)#no sh
Router(config-if)#ex
Router(config)#in fa0/0.2

End with CNTL/Z.

Router(config-subif)#encapsulation dot1Q 2
Router(config-subif)#ip address 192.168.47.30 255.255.255.224
Router(config-subif)#ex
Router(config)#int fa0/0.3
Router(config-subif)#encapsulation dot1Q 3
Router(config-subif)#ip address 192.168.47.62 255.255.255.224
Router(config-subif)#ex
Router(config)#int fa0/0.4
Router(config-subif)#encapsulation dot1Q 4
Router(config-subif)#ip ad 192.168.47.94 255.255.255.224
Router(config-subif)#ex
Router(config)#in fa 0/0.5
Router(config-subif)#encapsulation dot1Q 5
Router(config-subif)#ip address 192.168.47.126 255.255.255.224
Router(config-subif)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console

Anda mungkin juga menyukai