Dlink managed switch command similar to CISCO "show cdp neighbour"

vickygoa

Reputable
Sep 11, 2015
1
0
4,510
Hi All,

Im new to dlink managed switches , can anyone help me with a command similar to "show cdp neighbours" for dlink switches.

also " sh mac-address table "

thank u
 



HI there,

Plz help me with the same issue :
Model : DGS 1210 28PORT SWITCH

Need to know the following command
1) Show cdp neighbour
2) show mac-address table address ********
3)show mac-address table gi0/1

Thank you,

urgent need of the same, i have just joined a new location where there is no network diagram and using Dlink switch . plz Help.

 
You have to remember the world is being taken over by people who have to watch a youtube video to be able to use their toaster. Most people have no concept of command line and think everything uses a gui. Many devices you can only configure via gui....even some high end firewalls lately.

I doubt you are going to find cdp neighbor but many have menus that display the mac tables it is just a matter of digging though massive number of screens to find it. Unfortunately it seems companies like dlink never seem to do it the same between their models so there is no answer other than to read the manual for each model.

Now some low end switches support telnet and ssh even if they do not show examples in the manual how to use it. Most have some kind of help command so you can see what command are available. You might be able to use a debug or dump command to get what you need.

It is so funny to see a new networking guy think he can use the gui on a cisco and it comes up with a big black command window to do anything complex.
 
Page 91-99 of the manual has all the CLI you can use, it maybe limited.

Why does it have to be CLI? What's the objection of using its normal web interface?

If my memory don't fail me, CDP is Cisco proprietary, depending what exact information you want out of it.
 
thanks for your input. Ya i got the gui part where i have to check each mac on each switch, but the number of switches used are 30 !! so to go through MAC is pain..

Im still in favour of CISCO CLI cos no matter even if u have 50 switches and have no idea from where network flows you can draw a network diagram of uplinks PORT to PORT if ip addressing is done on switch .

 
There are a number of tools that will draw a network map using SNMP to extract the mac table/port mapping. Assuming the switch has a ip assigned to its management interface you should be able to get a function similar to cdp neighbor by looking for the switch mac addresses.

Then again this assumes the device has SNMP support and also has MIBS that will let you extract the mac tables.
 
Finally completed it.

To start of, i had 24 Switches with no idea of their mac address as its placed in racks and mac address are placed at the back. Removing each n every switch would have been a pain. This is wer Dlink utility came in handy "D-Link SmartConsole Utility" , it lets u change the ip address of each and every switch on your network without having to change your laptos network to 10.90.90.90 which is dlink default ip. Satrted by assing ip's to all the switches. then i noted mac address of each switch, after than it was pain staking to check which switch belonged wer.. so i had to literally connect my laptop to each and every switch physically and check via web interface on which switch my laptops mac is displaying. After completing this i was able to mark all switches with the correct ip as assigned.
Now to draw the diagram it was a bit tricky, having all uplinks going from two Dlink switches which were used as core distribution switch helped me though. Since i had mac of all swtches .. i started by checking Mac address table on web interface of each switch and tried to differentiate if they were comeing from local port or an uplink port. It were time consuming but somehw managed to put all the pieces togerther.

Also on web interface there a function called LLDP in that there LLDP remote port table.. which is similar functionality as sh cdp neighbour as it shows any other switches connected but you have to manually check on each port which is again a pain. I found this after i had completed my diagram , so only used it to verify if wat i drawed was correct. Also dont depent on this as sometimes is shows and clients MAC address aswell. might be a flaw .