Switch does not learn mac of a host until we assign IP to the host
I have three queries:
- Why switch does not learn the MAC address of a host connected to it's port, until unless we assign an IP address to the host.
- What is the purpose of having a mac address of every switchport in layer2 switch ? Since communication is based on sender's and receiver's mac addresses.
- When switch start-up, does it send any broadcast to the hosts connected to it's switchports ? Let's say hosts are sitting idle, how will switch learn mac addresses of those hosts (IP is assigned to the hosts) ?
Generally a switch will not send a packet to a connected host when it starts (and there can be exceptions depending on what is configured on the switch). It will only learn the MAC address(es) that are down an interface when the device(s) send a single packet into the switch.
Devices do normally send packets when they start or when the interface becomes active, but not always.
If a remote device tries to send a packet to the local device by its IP address, the first packet issued should be an ARP request (which is flooded to all switch ports) and the local device should respond to this. When it does, the switch will learn the MAC address.
However, if a device has a configured static IP (or other type of) address and neither generates a packet nor responds to a packet sent to it, then the switch will never learn the MAC address. This would be unusual but not impossible behaviour.
1. Log into CLI of DNAC:
ssh maglev@< DNAC appliance IP> -p 2222
2. Run this curl command to get token to get member id:
curl -X POST -u admin:<admin user password> -H -V https://<CLUSTER-IP>/api/system/v1/identitymgmt/token
Enterprise Switching Business Unit is glad to announce Beta release 16.12.2 for all Catalyst 9200/9300/9400/9500/9600 and Catalyst 3650/3850 Platforms. This release is made available to allow users to test, evaluate and share fee...
Purpose of the document
This document describes the general recommendations or best practices when designing and deploying the Cisco SD-Access technology. The document assumes that the reader has a general overview of Cisco's SD-Access for Distributed C...
Do you currently have hands-on networking experience? If you do, we'd love to hear from you!
Your feedback will be reviewed and analyzed by our team to directly influence a networking management and monitoring product.
Take the 20-min or les...