Erhan,
I assume you're talking about discovery protocols like edp or lldp.
In edp, if you use the detailed keyword you'll get a list of the vlans (and their ip addresses) available in the neighboring switches.
* lab1.sw2.1 # show edp ports all detailed
Port Neighbor Neighbor-ID Remote Age Num
Port Vlans
=============================================================================
6 lab1.sw1 00:00:00:01:30:df:01:01 1:6 15 3
7 lab1.sw1 00:00:00:01:30:df:01:01 1:7 15 3
=============================================================================
* lab1.sw2.2 # show edp ports 6 detail
=============================================================================
Port 6: EDP is Enabled
Tx stats: sw-pdu-tx=11 vlan-pdu-tx=10 pdu-tx-err=0
Rx stats: sw-pdu-rx=11 vlan-pdu-rx=11 pdu-rx-err=0
Time of last transmit error: None
Time of last receive error: None
Remote-System: lab1.sw1 Age = 27
Remote-ID: 00:00:00:01:30:df:01:01
Software version: 15.7.1.4
Remote-Port: 1:6
Port Type: Ethernet
Auto Negotiation: ON
Flow Control: NONE
Duplex Speed: Configured = AUTO Actual = FULL
Port Speed (MB): Configured = AUTO Actual = 100 Mbps
Remote-Vlans:
core (20, 10.0.20.11) Age = 27
data (10, 10.0.10.11) Age = 27
iscc (100, 10.0.100.11) Age = 27
=============================================================================
* lab1.sw2.3 #
On the other hand, if you are using lldp, you will need to configure the lldp ports to advertise management address information to its neighbors, as it is disabled by default.
configure lldp ports [all | port_list] [advertise | no-advertise] management-address
Then, if you request neighbor information with the detailed keyword it will display their management addresses.
* lab1.sw2.3 # show lldp neighbors detailed
-----------------------------------------------------------------------------
LLDP Port 6 detected 1 neighbor
Neighbor: 00:01:30:DF:01:01/6, age 25 seconds
- Chassis ID type: MAC address (4)
Chassis ID : 00:01:30:DF:01:01
- Port ID type: ifName (5)
Port ID : "6"
- Time To Live: 120 seconds
- Port Description: ""
- System Name: "lab1.sw1"
- System Description: "ExtremeXOS (Summit-PC) version 15.7.1.4 v1571b4 b\
y release-manager on Fri Feb 13 16:30:06 EST 2015"
- System Capabilities : "Bridge, Router"
Enabled Capabilities: "Bridge, Router"
- Management Address Subtype: IPv4 (1)
Management Address : 172.16.56.11
Interface Number Subtype : ifIndex (2)
Interface Number : 1000006
Object ID String : "null"
-----------------------------------------------------------------------------
LLDP Port 7 detected 1 neighbor
Neighbor: 00:01:30:DF:01:01/7, age 25 seconds
- Chassis ID type: MAC address (4)
Chassis ID : 00:01:30:DF:01:01
- Port ID type: ifName (5)
Port ID : "7"
- Time To Live: 120 seconds
- Port Description: ""
- System Name: "lab1.sw1"
- System Description: "ExtremeXOS (Summit-PC) version 15.7.1.4 v1571b4 b\
y release-manager on Fri Feb 13 16:30:06 EST 2015"
- System Capabilities : "Bridge, Router"
Enabled Capabilities: "Bridge, Router"
- Management Address Subtype: IPv4 (1)
Management Address : 172.16.56.11
Interface Number Subtype : ifIndex (2)
Interface Number : 1000006
Object ID String : "null"
* lab1.sw2.4 # If you see a MAC address instead of an IP address, then the mgmt vlan has no IP address configured.
Regards, Daniel