Little boy questioned his mother, he asked what he can be in the future..with a sad smile, she tells him he can be anything he wants to be.... Boy said he’d become (an) astronaut and fly out into space crews around the universe he wanted to see the stars and also see other planets in outer space------------- "Why don’t we just keep dreaming, let’s keep our mind with dream and faith, as long as we wish we can make it come true, how old you are never forget your dream and keep dreaming "

Sunday 27 May 2018

Link Layer Discovery Protocol (LLDP)

Link Layer Discovery Protocol

Selain CDP, ada protokol lain yang digunakan untuk mengumpulkan dan berbagi informasi perangkat jaringan yaitu protokol standar terbuka yang dibuat oleh IEEE (Institute of Electrical and Electronics Engineers) dengan menetapkan protokol yang disebut 802.1AB for Station and Media Access Control Connectivity Discovery, yang lebih dikenal dengan Link Layer Discovery Protocol (LLDP). LLDP berfungsi sama seperti CDP akan tetapi dapat berjalan pada jaringan multi vendor.

Atribut yang didukung mencakup type, length dan value descuption atau disebut TLV. Perangkat LLDP dapat menggunakan TLV untuk mengirim dan menerima informasi ke perangkat lainnya di jaringan. Detail seperti informasi konfigurasi, kapabilitas perangkat, dan identitas perangkat dapat bagikan menggunakan protokol ini. secara umum terdiri dari :
  • DCBXP (The Data Center Bridging Exchange Protocol)
  • Management address 
  • Port description
  • Port VLAN 
  • System capabilities 
  • System description 
  • System name
LLDP didukung oleh perangkat Cisco akan tetapi secara default LLDP tidak aktif pada perangkat Cisco Router ataupun Switch.
SW1#show lldp 
% LLDP is not enabled
SW2#show lldp 
% LLDP is not enabled
RT1#sh lldp 
% LLDP is not enabled
RT1
Gi0/0
192.168.1.1/24
Gi0/1
192.168.2.1/24
SW1
VLAN1
192.168.1.10/24
Gateway
192.168.1.1/24
SW2
VLAN1
192.168.2.10/24
Gateway
192.168.2.1/24

Mengaktifkan LLDP dan Menonkatifkan LLDP

Untuk mengaktifkan LLDP gunakan perintah ini pada mode konfigurasi global :

RT1(config)#lldp run
SW1(config)#lldp run
SW2(config)#lldp run

Sedangkan untuk menonaktifkan LLDP menggunakan perintah :

RT1(config)#no lldp run
SW1(config)#no lldp run
SW2(config)#no lldp run

Perintah show lldp akan memberi informasi tentang LLDP global parameter yang kurang lebih sama seperti CDP seperti :
  • LLDP Advetisements :  Membatasi seberapa sering paket LLDP dikirim keluar ke semua interface yang aktif.
  • LLDP Holdtime : Membatasi jumlah waktu perangkat akan menerima dan menyimpan informasi paket LLDP yang diterima dari perangkat tetangga.
  • LLDP interface reinitialisation delay : Membatasi jumlah waktu perangkat LLDP untuk melakukan inisialisasi pada setiap interface.
Output dari perintah show lldp pada SW1, SW2 dan RT1 sebagai berikut :

SW1#show lldp 

Global LLDP Information:
    Status: ACTIVE
    LLDP advertisements are sent every 30 seconds
    LLDP hold time advertised is 120 seconds
    LLDP interface reinitialisation delay is 2 seconds

SW2#show lldp 

Global LLDP Information:
    Status: ACTIVE
    LLDP advertisements are sent every 30 seconds
    LLDP hold time advertised is 120 seconds
    LLDP interface reinitialisation delay is 2 seconds

RT1#show lldp 

Global LLDP Information:
    Status: ACTIVE
    LLDP advertisements are sent every 30 seconds
    LLDP hold time advertised is 120 seconds
    LLDP interface reinitialisation delay is 2 seconds

Dari informasi diatas, paket LLDP dikirmkan setiap 30 detik dan disimpan pada perangkat LLDP selama 120 detik, perlu waktu 2 detik untuk melakukan inisialisasi pada setiap interface yang menjalankan protokol LLDP.

Untuk mengatur waktu tersebut bisa menggunakan perintah :
- Mengatur LLDP holdtime
SW1(config)# lldp holdtime [waktu dalam detik]

- Mengatur LLDP reinit delay
SW1(config)# lldp reinit [waktu dalam detik]

- Mengatur LLDP advertisements time
SW1(config)# lldp timer [waktu dalam detik]

Pada Cisco Packet Tracer parameter parameter tsb tidak dapat diubah. Parameter dapat dirubah pada simulasi real seperti GNS3 dengan Cisco IOU.

Menampilkan informasi LLDP

Perintah show lldp neighbor memberikan informasi tentang perangkat yang terhubung secara langsung yang menjalakan protokol LLDP.

SW1
SW1#show lldp neighbors 
Capability codes:
    (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
    (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
Device ID           Local Intf     Hold-time  Capability      Port ID
RT1                 Fa0/1          120        R               Gig0/0
RT1                 Fa0/1          120        R               Gig0/1

Total entries displayed: 2

RT1
RT1#sh lldp neighbors 
Capability codes:
    (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
    (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other
Device ID           Local Intf     Hold-time  Capability      Port ID
SW1                 Gig0/0         120        B               Vlan
SW2                 Gig0/1         120        B               Vlan
SW2                 Gig0/1         120        B               Fa0/1
SW1                 Gig0/0         120        B               Fa0/1

Total entries displayed: 4

Untuk menampilkan informasi yang lebih detail, gunakan perintah show lldp neighbor detail :

SW1#show lldp neighbors detail 
------------------------------------------------
Chassis id: 0003.E45B.9D01
Port id: Gig0/0
Port Description: GigabitEthernet0/0
System Name: RT1
System Description:
Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.1(4)M4, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Thurs 5-Jan-12 15:41 by pt_team
Time remaining: 90 seconds
System Capabilities: R
Enabled Capabilities: R
Management Addresses - not advertised
Auto Negotiation - supported, enabled
Physical media capabilities:
    100baseT(FD)
Media Attachment Unit type: 10
Vlan ID: 1
------------------------------------------------
Chassis id: 0003.E45B.9D02
Port id: Gig0/1
Port Description: GigabitEthernet0/1
System Name: RT1
System Description:
Cisco IOS Software, C2900 Software (C2900-UNIVERSALK9-M), Version 15.1(4)M4, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Thurs 5-Jan-12 15:41 by pt_team
Time remaining: 90 seconds
System Capabilities: R
Enabled Capabilities: R
Management Addresses - not advertised
Auto Negotiation - supported, enabled
Physical media capabilities:
    100baseT(FD)
Media Attachment Unit type: 10
Vlan ID: 1

Total entries displayed: 2

RT1#sh lldp neighbors detail 
------------------------------------------------
Chassis id: 0001.6414.0C97
Port id: Vlan
Port Description: Vlan1
System Name: SW1
System Description:
Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(25)FX, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Wed 12-Oct-05 22:05 by pt_team
Time remaining: 90 seconds
System Capabilities: B
Enabled Capabilities: B
Management Addresses - not advertised
Auto Negotiation - supported, enabled
Physical media capabilities:
    100baseT(FD)
    100baseT(HD)
    1000baseT(HD)
Media Attachment Unit type: 10
Vlan ID: 1
------------------------------------------------
Chassis id: 0030.F251.5009
Port id: Vlan
Port Description: Vlan1
System Name: SW2
System Description:
Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(25)FX, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Wed 12-Oct-05 22:05 by pt_team
Time remaining: 90 seconds
System Capabilities: B
Enabled Capabilities: B
Management Addresses - not advertised
Auto Negotiation - supported, enabled
Physical media capabilities:
    100baseT(FD)
    100baseT(HD)
    1000baseT(HD)
Media Attachment Unit type: 10
Vlan ID: 1
------------------------------------------------
Chassis id: 0090.2BD7.0001
Port id: Fa0/1
Port Description: FastEthernet0/1
System Name: SW2
System Description:
Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(25)FX, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Wed 12-Oct-05 22:05 by pt_team
Time remaining: 90 seconds
System Capabilities: B
Enabled Capabilities: B
Management Addresses - not advertised
Auto Negotiation - supported, enabled
Physical media capabilities:
    100baseT(FD)
    100baseT(HD)
    1000baseT(HD)
Media Attachment Unit type: 10
Vlan ID: 1
------------------------------------------------
Chassis id: 00D0.FF52.4301
Port id: Fa0/1
Port Description: FastEthernet0/1
System Name: SW1
System Description:
Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(25)FX, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Wed 12-Oct-05 22:05 by pt_team
Time remaining: 90 seconds
System Capabilities: B
Enabled Capabilities: B
Management Addresses - not advertised
Auto Negotiation - supported, enabled
Physical media capabilities:
    100baseT(FD)
    100baseT(HD)
    1000baseT(HD)
Media Attachment Unit type: 10
Vlan ID: 1

Total entries displayed: 4
Dari output detail LLDP diatas didapat informasi tambahan seperti Chassis ID (MAC Address), Tipe dan versi IOS, VLAN ID dan kapabilitas perangkat lainnya.

No comments:

Post a Comment