| Cisco Catalyst 2950 12port |
Untuk melakukan konfigurasi VLAN, pastikan kita berada pada mode Priviledge. Berikut tahapannya:
1. Masuk kedalam mode priviledge:
switch>enable
switch#
2. Melihat data VLAN (sebelum konfigurasi):
switch#show 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
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
Remote SPAN VLANs
------------------------------------------------------------------------------
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
3. Dari informasi diatas, semua port (Fa0/1 s.d Fa0/12) berada dalam satu VLAN, yakni VLAN1. Selanjutnya kita akan mengkonfigurasi ip address pada port1:
switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)#interface vlan1
switch(config-if)#ip address 192.168.1.100 255.255.255.0
switch(config-if)#no shutdown
4. Melihat ip address pada interface VLAN1 (termasuk semua port):
switch#show ip interface
Vlan1 is up, line protocol is down
Internet address is 192.168.1.100/24
Broadcast address is 255.255.255.255
Address determined by setup command
MTU is 1500 bytes
...
Dari informasi diatas kita akan menggunakan port 1 (VLAN1) untuk akses cadangan kedalam switch. Sedangkan untuk port yang lainnya akan kita rubah VLAN nya.
5. Membuat VLAN baru (VLAN10, VLAN20, VLAN30):
switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.
switch(vlan)#vlan 10
VLAN 10 added:
Name: VLAN0010
switch(vlan)#vlan 20
VLAN 20 added:
Name: VLAN0020
switch(vlan)#vlan 30
VLAN 30 added:
Name: VLAN0030
switch(vlan)#exit
APPLY completed.
Exiting....
5. Menambahkan Port kedalam VLAN yang sudah dibuat:
switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)#interface range fastethernet0/2 - 4
switch(config-if-range)#switchport access vlan 10
switch(config-if-range)#exit
switch(config)#interface range fastethernet0/5 - 8
switch(config-if-range)#switchport access vlan 20
switch(config-if-range)#exit
switch(config)#interface range fastethernet0/9 - 12
switch(config-if-range)#switchport access vlan 30
switch(config-if-range)#exit
switch(config)#exit
switch#
00:29:24: %SYS-5-CONFIG_I: Configured from console by console
6. Melihat informasi VLAN yang sudah dibuat:
switch#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1
10 VLAN0010 active Fa0/2, Fa0/3, Fa0/4
20 VLAN0020 active Fa0/5, Fa0/6, Fa0/7, Fa0/8
30 VLAN0030 active Fa0/9, Fa0/10, Fa0/11, Fa0/12
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
30 enet 100030 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
Remote SPAN VLANs
------------------------------------------------------------------------------
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
Dengan penandaan VLAN pada port tersebut, bisa kita gunakan untuk keperluan selanjutnya. Misalnya, untuk dihubungkan ke perangkat lain seperti Mikrotik, atau penggunaan jaringan yang berbeda dalam satu internal, dan sebagainya.
0 komentar:
Posting Komentar