Rabu, 17 Oktober 2012

Membuat Vlan Di Paket Tracer dan DHCP

Mandailing Natal Membuat Vlan Di Paket Tracer - tulisan ini bukan bermaksud menggurui anda yang expert di cisco networking, atau lebih paham tentang cisco dan paket tracert. Tulisan tentang vlan di bawah ini, tak lain adalah media saya belajar memahami consep vlan.

Vlan yang saya buat ini masih sederhana, di hubungkan oleh satu  Switch dan 3 HUB

VLAN 2 ip : 192.168.1.1/24 clientnya DHCP
VLAN 3 ip : 192.168.2.1/24 client dhcp juga
VLAN 4 ip : 192.168.3.1/24 client ip static
Router(config-if)#exit
Router(config)#int f0/0.2

%LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.2, changed state to up
Router(config-subif)#encapsulation dot1Q 2
Router(config-subif)#ip add 192.168.1.1 255.255.255.0
Router(config-subif)#ip dhcp pool LAB
Router(dhcp-config)#network 192.168.1.2 255.255.255.0
Router(dhcp-config)#default-router 192.168.1.1
Router(dhcp-config)#dns-server 192.168.1.1
Router(dhcp-config)#exit

Router(config)#int f0/0.3
%LINK-5-CHANGED: Interface FastEthernet0/0.3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.3, changed state to up

Router(config-subif)#encapsulation dot1Q 3
Router(config-subif)#ip add 192.168.2.1 255.255.255.0
Router(config-subif)#ip dhcp pool STAF
Router(dhcp-config)#network 192.168.2.2 255.255.255.248
Router(dhcp-config)#default-router 192.168.2.1
Router(dhcp-config)#dns-server 192.168.1.1
Router(config-subif)#ip dhcp pool STAF
Router(dhcp-config)#network 192.168.2.2 255.255.255.0
Router(dhcp-config)#dns-server 192.168.1.1
Router(dhcp-config)#default-router 192.168.2.1
Router(dhcp-config)#exit

Router(config)#int f0/0.4

%LINK-5-CHANGED: Interface FastEthernet0/0.4, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.4, changed state to up

Router(config-subif)#no shut
Router(config-subif)#encapsulation dot1Q 4
Router(config-subif)#ip dhcp pool BINGUNG
Router(dhcp-config)#network 192.168.4.2 255.255.255.248
Router(dhcp-config)#default-router 192.168.4.1
Router(dhcp-config)#dns-server 192.168.1.1
Configuras switch nya..
Switch>en
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#int f0/23
Switch(config-if)#int f0/24
Switch(config-if)#no shut
Switch(config-if)#switchport mode trunk

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up

Switch(config-if)#exit
Switch(config)#int f0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access VLAN 2
% Access VLAN does not exist. Creating vlan 2
Switch(config-if)#exit


Switch(config)#int f0/2
Switch(config-if)#no shut
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access VLAN 3
% Access VLAN does not exist. Creating vlan 3
Switch(config-if)#exit
Switch(config)#
Untuk set yang vlan 4 saya tidak tulis lagi saya anggap anda telah paham :)