Cisco IOS – Enabling LLDP

KB ID 0001289 

Problem

If you’re running Cisco IOS on all you devices then you can use CDP  to see what’s directly connected, (unless you are on a Cisco firewall, but I did say IOS devices). 

[box]

Petes-Switch#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
                  D - Remote, C - CVTA, M - Two-port Mac Relay

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
Petes-CPE.petenetlive.com
                 Gig 1/0/19        148             R S I  CISCO2901 Gig 0/0
Petes-Switch#

[/box]

But just about every other vendor uses LLDP (Link Layer Discovery Protocol,) to do the same job. So how do you discover what ports you are plugged into on them, or what they are?

 

Solution

Well in most cases, (depending on your code) your devices also support LLDP, it’s just disabled by default. You simply turn it on with an ‘lldp run’ command.

[box]

Petes-Switch(config)#lldp run
Petes-Switch(config)#exit
Petes-Switch#show lldp ?
  entry      Information for specific neighbor entry
  errors     LLDP computational errors and overflows
  interface  LLDP interface status and configuration
  neighbors  LLDP neighbor entries
  traffic    LLDP statistics
  |          Output modifiers
  

[/box]

Now I see my neighbours, (yes that is how it’s spelt I’m English!) In my example below the neighbour is a Dell Switch.

[box]

Petes-Switch#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
90b1.1cf4.39e1      Gi1/0/11       120                        ManagementEthernet 0/0
90b1.1cf4.39e1      Gi1/0/14       120                        TenGigabitEthernet 1/45
90b1.1cf4.39e1      Gi2/0/13       120                        TenGigabitEthernet 0/44
90b1.1cf4.39e1      Gi1/0/13       120                        TenGigabitEthernet 1/44
90b1.1cf4.39e1      Gi2/0/14       120                        TenGigabitEthernet 0/45
90b1.1cf4.39e1      Gi1/0/16       120                        TenGigabitEthernet 1/47
90b1.1cf4.39e1      Gi2/0/16       120                        TenGigabitEthernet 0/46
90b1.1cf4.39e1      Gi1/0/15       120                        TenGigabitEthernet 1/46
90b1.1cf4.39e1      Gi2/0/15       120                        TenGigabitEthernet 0/47

Total entries displayed: 9

[/box]

 

Related Articles, References, Credits, or External Links

HP Networking – Tracing Networks and Locating IP addresses

HP Networking – Tracing Networks and Locating IP addresses

KB ID 0001110

After not touching one for a couple of years, I was back on HP switches recently, and I had to map out a clients switches. Now I could have used some software, but they didn’t have SNMP enabled so, I had to ‘re acquaint’ myself with LLDP.

For a basic LLDP View of attached devices.

[box]

HP-Switch-1# show lldp info remote-device

 LLDP Remote Devices Information

  LocalPort | ChassisId                 PortId PortDescr SysName
  --------- + ------------------------- ------ --------- ----------------------
  10        | Cisco1.petenetlive.com       Gig...
  10        | 00 1c f6 c8 55 8f         || ... Gigabi... Cisco1.petenetlive.com
  13        | Cisco1.petenetlive.com       Gig...
  13        | 00 1c f6 c8 55 92         || ... Gigabi... Cisco1.petenetlive.com
  23        | c0 91 34 dd 3b c0         23     23        HP-Switch-2
  24        | c0 91 34 dd 3b c0         24     24        HP-Switch-2

[/box]

For a More Detailed LLDP View of attached devices.

Note: This command will NOT show up in the help menu!

[box]

HP-Switch-1# show lldp info remote all

 LLDP Remote Device Information Detail

  Local Port   : 10
  ChassisType  : local
  ChassisId    : Cisco1.petenetlive.com
  PortType     : local
  PortId       : GigabitEthernet0/15
  SysName      :
  System Descr : Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Ver...
  PortDescr    :

  System Capabilities Supported  : bridge
  System Capabilities Enabled    : bridge

  Remote Management Address
     Type    : ipv4
     Address : 111.222.111.222

------------------------------------------------------------------------------
  Local Port   : 10
  ChassisType  : mac-address
  ChassisId    : 00 1c f6 c8 55 8f
  PortType     : inte...
  PortId       : || PeteNet || 10Mb ||...
  SysName      : Cisco1.petenetlive.com
  System Descr : Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Ver...
  PortDescr    : GigabitEthernet0/15

  System Capabilities Supported  : bridge, router
  System Capabilities Enabled    :

  Remote Management Address
     Type    : ipv4
     Address : 111.222.111.222

------------------------------------------------------------------------------
  Local Port   : 13
  ChassisType  : local
  ChassisId    : Cisco1.petenetlive.com
  PortType     : local
  PortId       : GigabitEthernet0/18
  SysName      :
  System Descr : Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Ver...
  PortDescr    :

  System Capabilities Supported  : bridge
  System Capabilities Enabled    : bridge

  Remote Management Address
     Type    : ipv4
     Address : 111.222.111.222

------------------------------------------------------------------------------
  Local Port   : 13
  ChassisType  : mac-address
  ChassisId    : 00 1c f6 c8 55 92
  PortType     : inte...
  PortId       : || PeteNet || Previou...
  SysName      : Cisco1.petenetlive.com
  System Descr : Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Ver...
  PortDescr    : GigabitEthernet0/18

  System Capabilities Supported  : bridge, router
  System Capabilities Enabled    :

  Remote Management Address
     Type    : ipv4
     Address : 111.222.111.222

------------------------------------------------------------------------------
  Local Port   : 23
  ChassisType  : mac-address
  ChassisId    : c0 91 34 dd 3b c0
  PortType     : local
  PortId       : 23
  SysName      : HP-Switch-2
  System Descr : HP J9145A 2910al-24G Switch, revision W.15.13.0014, ROM W...
  PortDescr    : 23

  System Capabilities Supported  : bridge, router
  System Capabilities Enabled    : bridge, router

  Remote Management Address
     Type    : ipv4
     Address : 192.168.1.221

  Poe Plus Information Detail

    Poe Device Type         : Type2 PSE
    Power Source            : Unknown
    Power Priority          : Unknown
    Requested Power Value   : 0 Watts
    Actual Power Value      : 0 Watts

------------------------------------------------------------------------------
  Local Port   : 24
  ChassisType  : mac-address
  ChassisId    : c0 91 34 dd 3b c0
  PortType     : local
  PortId       : 24
  SysName      : HP-Switch-2
  System Descr : HP J9145A 2910al-24G Switch, revision W.15.13.0014, ROM W...
  PortDescr    : 24

  System Capabilities Supported  : bridge, router
  System Capabilities Enabled    : bridge, router

  Remote Management Address
     Type    : ipv4
     Address : 192.168.1.221

  Poe Plus Information Detail

    Poe Device Type         : Type2 PSE
    Power Source            : Unknown
    Power Priority          : Unknown
    Requested Power Value   : 0 Watts
    Actual Power Value      : 0 Watts

[/box]

To find what Port an IP address is on

First ping the IP address, to make sure that the switch has the MAC address you are looking at, in its ARP cache.

  [box]

HP-Switch-1# ping 192.168.251.2
192.168.251.2 is alive, time = 3 ms

[/box]

Then look for it in the ARP cache;

[box]

HP-Switch-1# show arp

 IP ARP table

  IP Address       MAC Address       Type    Port
  ---------------  ----------------- ------- ----
  192.168.251.1    e8b748-c757b0     dynamic 13
  192.168.251.2    005056-a61c1c     dynamic 5  << It’s on port 5
  192.168.251.5    005056-a606d9     dynamic 7

[/box]

Or if you already know its MAC address;

[box]

HP-Switch-1# show mac-address 005056-a61c1c

 Status and Counters - Address Table - 005056-a61c1c

 Port
 -------
 5

[/box]

Related Articles, References, Credits, or External Links

Cisco IOS – Enabling LLDP

HP 1810-8G Switch – Setup and Management

 

KB ID 0000732 

Problem

For such a ‘baby’ switch this has a LOT of features, I had to lock down the speed and duplex settings on one of the switch ports today. The main details you will be looking for are,

Default IP address = 192.168.2.10

Default Password = blank

Solution

1. Put yourself on the same network: Windows Key+R > ncpa.cpl {enter} > Right click your network connection > Properties > Internet Protocol Version 4 (TCP/IP) > properties > Set yout IP to 192.168.2.11 and set the subnet mask to 255.255.255.0 > OK > OK.

2. Open a web browser and navigate to http://192.186.2.10 log in with a blank password.

3. To Change the Switches IP: Setup Network

4. To change Speed/Duplex Settings: Switching > Port Configuration

5. To change the password: Maintenance > Password Manager.

Related Articles, References, Credits, or External Links

NA