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
Langganan:
Postingan (Atom)