kali ini saya akan memfungsikan switch sebagai DHCP
topologi yg saya pakai masih sama
tambahkan konfigurasi DHCP server berikut :
Switch(config)#ip dhcp pool VLAN10
Switch(dhcp-config)#network 10.10.10.0 255.255.255.0
Switch(dhcp-config)#dns-server 200.200.200.200
Switch(dhcp-config)#default-router 10.10.10.1
Switch(dhcp-config)#ex
Switch(config)#ip dhcp pool VLAN20
Switch(dhcp-config)#network 20.20.20.0 255.255.255.0
Switch(dhcp-config)#dns-server 200.200.200.200
Switch(dhcp-config)#default-router 20.20.20.1
Switch(dhcp-config)#ex
bilamana ip yg di reserved yg tidak akan di alokasikan oleh DHCP server,maka gunakan exclude-address.
Switch(config)#ip dhcp excluded-address 10.10.10.1 10.10.10.10
Switch(config)#ip dhcp excluded-address 20.20.20.1 20.20.20.20
Switch(config)#ex
dengan konfigurasi di atas,maka user vlan 10 akan mendapat ip mulai dari 10.10.10.11 dan user vlan 20 akan mendapatkan ip mulai dari 20.20.20.21
selanjutnya rubah setingan ip pada PC menjadi dynamic dengan klik pilihan "obtain an ip address automatically"dan selanjutnya buka command prompt dan ketikan ipconfig ,pastilah sudah mendapatkan alokasi ip addressnya.
setelah smua pc mendapatkan ip addressnya,pada switch ketikan perintah berikut untuk mengetahui PC siapa dan mendapatkan ip berapa.
Switch#show ip dhcp binding
IP address Client-ID/ Lease expiration Type
Hardware address
10.10.10.11 00E0.F7A6.4560 -- Automatic
10.10.10.12 000A.F3B7.7A2D -- Automatic
20.20.20.21 00E0.B05C.5769 -- Automatic
20.20.20.22 00D0.BC9E.83DA -- Automatic
Switch#
cek pengunjung
Senin, 23 Juli 2012
Belajar menghubungkan switch layer 3
ok,ketemu lagi dengan saya,disini saya akan belajar bagaimana cara'a menggunakan switch layer 3
dengan topologi sebagai berikut :
hal pertama yg harus di lakukan adalah membuat 2 buah Vlan
buatlah vlan 10 dan 20.
Switch#enable
Switch#conf t
Switch(config)#vlan 10
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name sales
Switch(config-vlan)#vlan 10
Switch(config-vlan)#name manager
Switch(config-vlan)#exit
Assign VLAN 10 dan 20 ke masing" port interface switch :
Switch(config)#int fa0/1
Switch(config-if)#switchport access vlan 10
Switch(config-if)#ex
Switch(config)#int fa0/2
Switch(config-if)#switchport access vlan 10
Switch(config-if)#ex
Switch(config)#int fa0/3
Switch(config-if)#switchport access vlan 20
Switch(config-if)#ex
Switch(config)#int fa0/4
Switch(config-if)#switchport access vlan 20
Switch(config-if)#ex
lalu konfigurasikan IP Address interface si VLAN tersebut :
Switch(config)#int vlan 10
Switch(config-if)#ip address 10.10.10.1 255.255.255.0
Switch(config-if)#ex
Switch(config)#int vlan 20
Switch(config-if)#ip address 20.20.20.1 255.255.255.0
Switch(config-if)#ex
aktifkan ip routing agar bisa merouting antar vlan yg berbeda .
Switch(config)#ip routing
kemudian konfigurasikan masing" ip address pada setiap PC dengan IP 10.10.10.1 sebagai gateway PC si VLAN 10 dan IP 20.20.20.1 sebagai IP gateway PC VLAN 20.
Pengetesan'a,lakukan test ping ke IP gateway'a terlebih dahulu,bila mendapat reply,selanjutnya lakukan ke PC lain yg berbeda VLAN.
Switch#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES unset up up
FastEthernet0/2 unassigned YES unset up up
FastEthernet0/3 unassigned YES unset up up
FastEthernet0/4 unassigned YES unset up up
FastEthernet0/5 unassigned YES unset down down
FastEthernet0/6 unassigned YES unset down down
FastEthernet0/7 unassigned YES unset down down
FastEthernet0/8 unassigned YES unset down down
FastEthernet0/9 unassigned YES unset down down
FastEthernet0/10 unassigned YES unset down down
FastEthernet0/11 unassigned YES unset down down
FastEthernet0/12 unassigned YES unset down down
FastEthernet0/13 unassigned YES unset down down
FastEthernet0/14 unassigned YES unset down down
FastEthernet0/15 unassigned YES unset down down
FastEthernet0/16 unassigned YES unset down down
FastEthernet0/17 unassigned YES unset down down
FastEthernet0/18 unassigned YES unset down down
FastEthernet0/19 unassigned YES unset down down
FastEthernet0/20 unassigned YES unset down down
FastEthernet0/21 unassigned YES unset down down
FastEthernet0/22 unassigned YES unset down down
FastEthernet0/23 unassigned YES unset down down
FastEthernet0/24 unassigned YES unset down down
GigabitEthernet0/1 unassigned YES unset down down
GigabitEthernet0/2 unassigned YES unset down down
Vlan1 unassigned YES unset administratively down down
Vlan10 10.10.10.1 YES manual up up
Vlan20 20.20.20.1 YES manual up up
setelah semua pc di ping satu per satu,tampilkan mac address table'a
Switch#
Switch#show mac-address-table
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
10 000a.f3b7.7a2d DYNAMIC Fa0/2
10 00e0.f7a6.4560 DYNAMIC Fa0/1
20 00d0.bc9e.83da DYNAMIC Fa0/4
20 00e0.b05c.5769 DYNAMIC Fa0/3
Switch#
ok,sampai disini dulu perjumpaan tentang switch layer 3 saya...
sampai ketemu di lain kesempatan...:D
dengan topologi sebagai berikut :
hal pertama yg harus di lakukan adalah membuat 2 buah Vlan
buatlah vlan 10 dan 20.
Switch#enable
Switch#conf t
Switch(config)#vlan 10
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name sales
Switch(config-vlan)#vlan 10
Switch(config-vlan)#name manager
Switch(config-vlan)#exit
Assign VLAN 10 dan 20 ke masing" port interface switch :
Switch(config)#int fa0/1
Switch(config-if)#switchport access vlan 10
Switch(config-if)#ex
Switch(config)#int fa0/2
Switch(config-if)#switchport access vlan 10
Switch(config-if)#ex
Switch(config)#int fa0/3
Switch(config-if)#switchport access vlan 20
Switch(config-if)#ex
Switch(config)#int fa0/4
Switch(config-if)#switchport access vlan 20
Switch(config-if)#ex
lalu konfigurasikan IP Address interface si VLAN tersebut :
Switch(config)#int vlan 10
Switch(config-if)#ip address 10.10.10.1 255.255.255.0
Switch(config-if)#ex
Switch(config)#int vlan 20
Switch(config-if)#ip address 20.20.20.1 255.255.255.0
Switch(config-if)#ex
aktifkan ip routing agar bisa merouting antar vlan yg berbeda .
Switch(config)#ip routing
kemudian konfigurasikan masing" ip address pada setiap PC dengan IP 10.10.10.1 sebagai gateway PC si VLAN 10 dan IP 20.20.20.1 sebagai IP gateway PC VLAN 20.
Pengetesan'a,lakukan test ping ke IP gateway'a terlebih dahulu,bila mendapat reply,selanjutnya lakukan ke PC lain yg berbeda VLAN.
Switch#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES unset up up
FastEthernet0/2 unassigned YES unset up up
FastEthernet0/3 unassigned YES unset up up
FastEthernet0/4 unassigned YES unset up up
FastEthernet0/5 unassigned YES unset down down
FastEthernet0/6 unassigned YES unset down down
FastEthernet0/7 unassigned YES unset down down
FastEthernet0/8 unassigned YES unset down down
FastEthernet0/9 unassigned YES unset down down
FastEthernet0/10 unassigned YES unset down down
FastEthernet0/11 unassigned YES unset down down
FastEthernet0/12 unassigned YES unset down down
FastEthernet0/13 unassigned YES unset down down
FastEthernet0/14 unassigned YES unset down down
FastEthernet0/15 unassigned YES unset down down
FastEthernet0/16 unassigned YES unset down down
FastEthernet0/17 unassigned YES unset down down
FastEthernet0/18 unassigned YES unset down down
FastEthernet0/19 unassigned YES unset down down
FastEthernet0/20 unassigned YES unset down down
FastEthernet0/21 unassigned YES unset down down
FastEthernet0/22 unassigned YES unset down down
FastEthernet0/23 unassigned YES unset down down
FastEthernet0/24 unassigned YES unset down down
GigabitEthernet0/1 unassigned YES unset down down
GigabitEthernet0/2 unassigned YES unset down down
Vlan1 unassigned YES unset administratively down down
Vlan10 10.10.10.1 YES manual up up
Vlan20 20.20.20.1 YES manual up up
setelah semua pc di ping satu per satu,tampilkan mac address table'a
Switch#
Switch#show mac-address-table
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
10 000a.f3b7.7a2d DYNAMIC Fa0/2
10 00e0.f7a6.4560 DYNAMIC Fa0/1
20 00d0.bc9e.83da DYNAMIC Fa0/4
20 00e0.b05c.5769 DYNAMIC Fa0/3
Switch#
ok,sampai disini dulu perjumpaan tentang switch layer 3 saya...
sampai ketemu di lain kesempatan...:D
Kamis, 21 Juni 2012
belajar menghubungkan switch ke router
pada router kita membuat sub interface sejumlah VLAN yg di lewatkan,dalam hal ini,hanya ada 2 VLAN,maka kita akan membuat 2 sub interface pada router
berikut adalah topologi'a :
hal yg pertama kali harus di lakukan adalah:
login ke dalam router dan mulai membuat konfigurasi sub interface
Router>
Router>en
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/0
Router(config-if)#no shut
Router(config-if)#int f0/0.10
Router(config-subif)#
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip address 10.10.10.1 255.255.255.0
Router(config)#int f0/0.20
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip address 20.20.20.1 255.255.255.0
Router(config-subif)#exit
setelah selesai membuat sub interface kita mencoba melakukan pengetesan terhadap router.
Router>
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#do sh ip int br
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES manual up up
FastEthernet0/0.10 10.10.10.1 YES manual up up
FastEthernet0/0.20 20.20.20.1 YES manual up up
FastEthernet0/1 unassigned YES unset administratively down down
FastEthernet0/0/0 unassigned YES unset administratively down down
FastEthernet0/0/1 unassigned YES unset administratively down down
FastEthernet0/0/2 unassigned YES unset administratively down down
FastEthernet0/0/3 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down
Router(config)#
setelah semua konfigurasi selesai sekarang tinggal masukan masing" IP address ke dalam PC,ingat VLAN 10 memakai gateway 10.10.10.1,sedangkan VLAN 20 memakai gateway 20.20.20.1
ip address VLAN 10 dimulai dari 10.10.10.2 sampai dengan 254,sedangkan untuk VLAN 20 memakai ip address dimulai dari 20.20.20.2 sampai dengan 254 karna 10.10.10.1 dan 20.20.20.1 sudah di gunakan sebagai gateway si router.
untuk konfigurasi VLAN dan Trunk ada di pembahasan sebelumnya
thanks
Rabu, 20 Juni 2012
belajar menghubungkan switch dengan Trunk
berikut adalah konfigurasi sederhana koneksi antar switch dengan menggunakan Trunk
Switch(config)#int f0/10
Switch(config-if)#switchport mode trunk
Switch#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa0/10 on 802.1q trunking 1
Port Vlans allowed on trunk
Fa0/10 1-1005
Port Vlans allowed and active in management domain
Fa0/10 1,10,20,400,402
Port Vlans in spanning tree forwarding state and not pruned
Fa0/10 1,10,20,400,402
Switch1(config)#int f0/10
Switch1(config-if)#switchport mode trunk
Switch1#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa0/10 on 802.1q trunking 1
Port Vlans allowed on trunk
Fa0/10 1-1005
Port Vlans allowed and active in management domain
Fa0/10 1,10,20,400,402
Port Vlans in spanning tree forwarding state and not pruned
Fa0/10 1,10,20,400,402
sederhana kan....:))
Switch(config)#int f0/10
Switch(config-if)#switchport mode trunk
Switch#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa0/10 on 802.1q trunking 1
Port Vlans allowed on trunk
Fa0/10 1-1005
Port Vlans allowed and active in management domain
Fa0/10 1,10,20,400,402
Port Vlans in spanning tree forwarding state and not pruned
Fa0/10 1,10,20,400,402
Switch1(config)#int f0/10
Switch1(config-if)#switchport mode trunk
Switch1#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa0/10 on 802.1q trunking 1
Port Vlans allowed on trunk
Fa0/10 1-1005
Port Vlans allowed and active in management domain
Fa0/10 1,10,20,400,402
Port Vlans in spanning tree forwarding state and not pruned
Fa0/10 1,10,20,400,402
sederhana kan....:))
configurasi vlan basic
Vlan itu adalah Virtual Lan.
Vlan fingsi'a untuk memisahkan atau mengelompokan user" tertentu sesuai dengan kebutuhan'a
berikut konfigurasi dasar mengenai Vlan :
Switch>enable
Switch#conf t
Switch(config)#vlan 10
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name sales
Switch(config-vlan)#vlan 400
Switch(config-vlan)#name teknisi
Switch(config-vlan)#vlan 402
Switch(config-vlan)#name manager
Switch(config-vlan)#int f0/1
Switch(config-if)#switchport access vlan 10
Switch(config-if)#int f0/2
Switch(config-if)#switchport access vlan
Switch(config-if)#switchport access vlan 10
Switch(config-if)#
Switch(config-if)#int f0/3
Switch(config-if)#switchport access vlan 20
Switch(config-if)#int f0/4
Switch(config-if)#switchport access vlan 20
untuk mengecek apakah vlan itu bekerja atau tidak
ketikan perintah berikut:
Switch#sh vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active 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
10 VLAN0010 active Fa0/1, Fa0/2
20 sales active Fa0/3, Fa0/4
400 teknisi active
402 manager active
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
400 enet 100400 1500 - - - - - 0 0
402 enet 100402 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
selesai
Langganan:
Postingan (Atom)