I need to generate a packet that will cause the station connected to my device to respond. However, I do not know its MAC or IP address and therefore this packet that I need to generate must contain both broadcast MAC and IP addresses. Is there such a packet?
I am not sure what you are trying to do here. Typically, in the real world a device will have a MAC or IP address to work with. As an example if you think about the process of just browsing www.searchnetworking.com, DNS takes that FQDN and converts it to an IP. After IP routes it to the searchnetworking network ARP resolves the IP address to the MAC address of the web server.
If the device is connected to you station as you suggest a Netstat should reveal its address. You can also type Arp –a to view all devices that have recently communicated with your PC. Finally, depending on the OS, a broadcast ping can be attempted. This will force all of the active devices on the subnet to respond.
Dig Deeper on Network Infrastructure
Related Q&A from Michael Gregg
Enterprise security expert, Michael Gregg answers a question regarding port 3389 issues when a user tries to open port 3389 RDP on their router to ... Continue Reading
Security expert Michael Gregg discusses the disadvantages to a layered approach to enterprise security. Continue Reading
Security expert Michael Gregg fields a question about unknown network cards gaining access to a user's network. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.