Beranda > @GNS3 Lab, ccna > GNS3 Lab ICND2: Konfigurasi VLAN dan VTP

GNS3 Lab ICND2: Konfigurasi VLAN dan VTP

icnd2_topology1
IOS Router & Switch: c3640-jk9s-mz.124-16a

Module Switch: NM-16ESW

Konfigurasi Trunks

Langkah 1 : Setting IP Address pada setiap switch

S1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
S1(config)#int vlan1
S1(config-if)#ip addr 192.168.1.10 255.255.255.0
S1(config-if)#no shut
S1(config-if)#^Z
S1#
S2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
S2(config)#int vlan1
S2(config-if)#ip addr 192.168.1.11 255.255.255.0
S2(config-if)#no shut
S2(config-if)#exit
S2(config)#^Z
S3#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
S3(config)#int vlan1
S3(config-if)#ip addr 192.168.1.12 255.255.255.0
S3(config-if)#no shut
S3(config-if)#^Z
S3#

Tes koneksi

S3#ping 192.168.1.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.10, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 12/73/184 ms
S3#ping 192.168.1.11
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.11, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 8/80/156 ms
S3#

Semua sudah berjalan dengan baik

Langkah 2 : Konfigurasi Trunks pada S1,S2,and S3

S1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
S1(config)#int fa0/11
S1(config-if)#switchport trunk encapsulation dot1q
S1(config-if)#switchport mode trunk
S1(config-if)#int fa0/12
S1(config-if)#switchport trunk encapsulation dot1q
S1(config-if)#switchport mode trunk
S1(config-if)#^Z
S1#
S1#conf t
S1(config)#int range fastEthernet 0/1 – 10
S1(config-if-range)#switchport mode access
S1(config-if-range)#exit
S1(config)#int range fastEthernet 0/13 – 15
S1(config-if-range)#switchport mode access
S1(config-if-range)#exit
S1(config)#^Z
S1#
S2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
S2(config)#int fa0/1
S2(config-if)#switchport trunk encapsulation dot1q
S2(config-if)#switchport mode trunk
S2(config-if)#int range fa 0/2 – 15
S2(config-if-range)#switchport mode access
S2(config-if-range)#^Z
S2#
S3#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
S3(config)#int fa0/1
S3(config-if)#switchport trunk encapsulation dot1q
S3(config-if)#switchport mode trunk
S3(config-if)#int range fa0/2 – 15
S3(config-if-range)#switchport mode access
S3(config-if-range)#^Z
S3#

Kita dapat mengecek interface mana saja yang sudah dikonfigurasi sebagai trunk dengan perintah berikut

S1#sh int trunk
Port      Mode         Encapsulation  Status        Native vlan
Fa0/11    on           802.1q         trunking      1
Fa0/12    on           802.1q         trunking      1
Port      Vlans allowed on trunk
Fa0/11    1-1005
Fa0/12    1-1005
Port      Vlans allowed and active in management domain
Fa0/11    1,10,20,30
Fa0/12    1,10,20,30
Port      Vlans in spanning tree forwarding state and not pruned
Fa0/11    1,10,20,30
Fa0/12    1,10,20,30

Langkah 3 : Konfigurasi VTP dan VLAN

  1. Setting VTP domain name
  2. Configure VTP mode

Kita konfigurasi agar S1 sebagai server, dan S2,S3 sebagai VTP client

S1#vlan database
S1(vlan)#vtp domain DUKTEK
Changing VTP domain name from NULL to DUKTEK
S1(vlan)#APPLY
APPLY completed.
S1(vlan)#exit
APPLY completed.
Exiting….
S1#sh vtp status
VTP Version                     : 2
Configuration Revision          : 0
Maximum VLANs supported locally : 256
Number of existing VLANs        : 5
VTP Operating Mode              : Server
VTP Domain Name                 : DUKTEK
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0×27 0xED 0x2C 0xBC 0x7B 0xA4 0×07 0xB6
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Local updater ID is 192.168.1.10 on interface Vl1 (lowest numbered VLAN interface found)
S1#

Setting S2 dan S3 sebagai mode vtp client

S2#vlan database
S2(vlan)#vtp client
Setting device to VTP CLIENT mode.
S2(vlan)#apply
Apply not allowed when device is in CLIENT state.
S2(vlan)#exit
In CLIENT state, no apply attempted.
Exiting….
S2#sh vtp stat
VTP Version                     : 2
Configuration Revision          : 0
Maximum VLANs supported locally : 256
Number of existing VLANs        : 5
VTP Operating Mode              : Client
VTP Domain Name                 : DUKTEK
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0×27 0xED 0x2C 0xBC 0x7B 0xA4 0×07 0xB6
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
S2#
S3#vlan database
S3(vlan)#vtp clie
S3(vlan)#vtp client
Setting device to VTP CLIENT mode.
S3(vlan)#apply
Apply not allowed when device is in CLIENT state.
S3(vlan)#exit
In CLIENT state, no apply attempted.
Exiting….
S3#sh vtp status
VTP Version                     : 2
Configuration Revision          : 0
Maximum VLANs supported locally : 256
Number of existing VLANs        : 5
VTP Operating Mode              : Client
VTP Domain Name                 : DUKTEK
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0×27 0xED 0x2C 0xBC 0x7B 0xA4 0×07 0xB6
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
S3#

Kini kita tidak bisa memodifikasi vlan pada S2 atau S3 karena keduanya berada pada mode client. Konfigurasi vlan akan kita lakukan pada S1, dan dengan VTP, vlan pada S2 dan S3 akan otomatis mengikuti konfigurasi pada S1, kita tambahkan VLAN10 pada S1

S1#vlan data
S1(vlan)#vlan 10 name VLAN10
VLAN 10 modified:
Name: VLAN10
S1(vlan)#apply
APPLY completed.
S1(vlan)#exit
APPLY completed.
Exiting….
S1#sh vtp status
VTP Version                     : 2
Configuration Revision          : 1
Maximum VLANs supported locally : 256
Number of existing VLANs        : 6
VTP Operating Mode              : Server
VTP Domain Name                 : DUKTEK
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0xE8 0xC8 0×53 0×77 0x8E 0×65 0×59 0×55
Configuration last modified by 192.168.1.10 at 3-1-02 01:10:06
Local updater ID is 192.168.1.10 on interface Vl1 (lowest numbered VLAN interface found)
S1#
S1#sh vlan-s
VLAN Name                             Status    Ports
—- ——————————– ——— ——————————-
1    default                          active    Fa0/0, Fa0/1, Fa0/2, Fa0/3
Fa0/4, Fa0/5, Fa0/6, Fa0/7
Fa0/8, Fa0/9, Fa0/10, Fa0/13
Fa0/14, Fa0/15
10   VLAN10                           active
1002 fddi-default                     active
1003 token-ring-default               active
1004 fddinet-default                  active
1005 trnet-default                    active
VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
—- —– ———- —– —— —— ——– —- ——– —— ——
1    enet  100001     1500  -      -      -        -    -        1002   1003
10   enet  100010     1500  -      -      -        -    -        0      0
1002 fddi  101002     1500  -      -      -        -    -        1      1003
1003 tr    101003     1500  1005   0      -        -    srb      1      1002
1004 fdnet 101004     1500  -      -      1        ibm  -        0      0
1005 trnet 101005     1500  -      -      1        ibm  -        0      0
S1#

Lalu kita lihat status VTP pada S2 atau S3 yang telah berubah, dan konfigurasi VLAN10 telah ada pada kedua switch tersebut

S2#sh vtp status
VTP Version                     : 2
Configuration Revision          : 1
Maximum VLANs supported locally : 256
Number of existing VLANs        : 6
VTP Operating Mode              : Client
VTP Domain Name                 : DUKTEK
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0xE8 0xC8 0×53 0×77 0x8E 0×65 0×59 0×55
Configuration last modified by 192.168.1.10 at 3-1-02 01:10:06

Baris terakhir menunjukkan bahwa konfigurasi pada S2 terakhir kali dilakukan oleh 192.168.1.10 (yakni S1 sebagai VTP server)

S2#sh vlan-s
VLAN Name                             Status    Ports
—- ——————————– ——— ——————————-
1    default                          active    Fa0/0, 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
10   VLAN10                           active
1002 fddi-default                     active
1003 token-ring-default               active
1004 fddinet-default                  active
1005 trnet-default                    active
VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
—- —– ———- —– —— —— ——– —- ——– —— ——
1    enet  100001     1500  -      -      -        –    -        1002   1003
10   enet  100010     1500  -      -      -        -    -        0      0
1002 fddi  101002     1500  -      0      -        -    -        1      1003
1003 tr    101003     1500  1005   0      -        -    srb      1      1002
1004 fdnet 101004     1500  -      -      1        ibm  -        0      0
1005 trnet 101005     1500  -      -      1        ibm  -        0      0
S2#

Kita tambahkan 2 VLAN lagi

S1#
S1#vlan data
S1(vlan)#vlan 20 name VLAN20
VLAN 20 added:
Name: VLAN20
S1(vlan)#vlan 30 name VLAN30
VLAN 30 added:
Name: VLAN30
S1(vlan)#apply
APPLY completed.
S1(vlan)#exit
APPLY completed.
Exiting….
S1#

Bersambung… :D

About these ads
Kategori:@GNS3 Lab, ccna Tag:, ,
  1. Agustus 14, 2009 pukul 1:35 pm

    mantappppppppppppppppppppp

  2. September 8, 2009 pukul 8:31 am

    keren!

  3. September 8, 2009 pukul 8:32 am

    susah nya konfigurasi!

  4. erni
    Juni 12, 2010 pukul 3:29 pm

    kalau 2 server dengan beda vlan (vlan 10,20 di server-1 dan vlan 30,40 diserver-2) bisa nggak?clientnya dapet smua vlan itu?thanks

  1. April 17, 2009 pukul 3:58 pm

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Logout / Ubah )

Twitter picture

You are commenting using your Twitter account. Logout / Ubah )

Facebook photo

You are commenting using your Facebook account. Logout / Ubah )

Google+ photo

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

Ikuti

Get every new post delivered to your Inbox.

%d bloggers like this: