Q
Problem solve Get help with specific problems with your technologies, process and projects.

How can I generate a packet containing both broadcast MAC and IP addresses?

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.

This was last published in April 2004

Dig Deeper on Network Infrastructure

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchUnifiedCommunications

SearchMobileComputing

SearchDataCenter

SearchITChannel

Close