01-30-2009
Need help with IP and MAC addresses
Hi,
i am working on a project where i have to write a script to find out MAC addresses of the systems with given IP address.
Can anybody tell me which command i can use to find MAC address if you know IP address of the machine.
Thanks
Last edited by manmeet; 01-30-2009 at 05:49 PM..
5 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am training to be support on our solaris based network and was wondering why solaris seems to assign the same mac address to all NICs placed in the machine regardless of how many NICs are in there, when i do a ifconfig -a all nics have same MAC.
Presumably this is a feature and there is... (1 Reply)
Discussion started by: hcclnoodles
1 Replies
2. UNIX for Dummies Questions & Answers
Hello all.
I have a large number of text files outputted from various Netstumbler Wireless Scans; from which I need to extract the MAC addresses of the various Access Points.
The Text files look like this:
# $Creator: Network Stumbler Version 0.4.0
# $Format: wi-scan summary with... (9 Replies)
Discussion started by: dhs23
9 Replies
3. UNIX for Dummies Questions & Answers
If a web search is done on this topic there are many links but no information included in the documents. So my questions are;
Why does a NIC card have it's own permanent ID. Why can't it share the host name? An ID is an ID.
Why does a computer need two ways to ID it.
If the network... (3 Replies)
Discussion started by: theKbStockpiler
3 Replies
4. Shell Programming and Scripting
I have a problem with a script , i want to see my devices there are up in my network. I want as output the ip addresses of the devices and also the mac address but I only had the ip addresses
#!/bin/bash
while ]
do
-mac)
Extension=5
shift
mac=$1
shift
;;
esac... (1 Reply)
Discussion started by: Roggy
1 Replies
5. Shell Programming and Scripting
Hy over there,
Lets make it simple :)
Using a bash script, how to grep only the ip address and the mac address and put them in a file:.
for example from the dhcp.conf file we got such things:
The script will end up with two columns IP's and MAC adresses as it is showed below:
... (9 Replies)
Discussion started by: hermouche
9 Replies
LEARN ABOUT CENTOS
dhcp_release
DHCP_RELEASE(1) General Commands Manual DHCP_RELEASE(1)
NAME
dhcp_release - Release a DHCP lease on a the local dnsmasq DHCP server.
SYNOPSIS
dhcp_release <interface> <address> <MAC address> <client_id>
DESCRIPTION
A utility which forces the DHCP server running on this machine to release a DHCP lease.
Send a DHCPRELEASE message via the specified interface to tell the local DHCP server to delete a particular lease.
The interface argument is the interface in which a DHCP request _would_ be received if it was coming from the client, rather than being
faked up here.
The address argument is a dotted-quad IP addresses and mandatory.
The MAC address is colon separated hex, and is mandatory. It may be prefixed by an address-type byte followed by -, eg
10-11:22:33:44:55:66
but if the address-type byte is missing it is assumed to be 1, the type for ethernet. This encoding is the one used in dnsmasq lease files.
The client-id is optional. If it is "*" then it treated as being missing.
NOTES
MUST be run as root - will fail otherwise.
LIMITATIONS
Only usable on IPv4 DHCP leases.
SEE ALSO
dnsmasq(8)
AUTHOR
This manual page was written by Simon Kelley <simon@thekelleys.org.uk>.
DHCP_RELEASE(1)