01-30-2009
User with root privileges:
ifconfig -a
Should give you ip address and mac address for all interfaces in your system.
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
jdbreg(8) System Manager's Manual jdbreg(8)
NAME
jdbreg - Registers hosts in the DHCP dynamic databases.
SYNOPSIS
/usr/sbin/jdbreg [-d] [-e] [-f character] [-s] [-l | -n] [-o] [-w] filename...
OPTIONS
Deletes the records whose keys are implied by the input file(s). Uses character as the field separator. The default is the pipe | charac-
ter. Display all currently registered hosts.
DESCRIPTION
The jdbreg program registers (or removes) hosts for configuration by DHCP. When the registered_hosts_only policy is in effect, the server
configure only clients whose MAC addresses are so registered. When this policy is not in effect, registering hosts has no effect.
Each record to be loaded is terminated by a newline, and the fields within each record delimited by default with the pipe (|) character,
although this may be changed with the -f command line option.
The fields within the data file(s) to be loaded are as follows: MAC address MAC address type MAC address length (octets)
RESTRICTIONS
Because the database used by join does not support multiuser concurrently, applications that write to it, lock the entire database. This
means that you cannot use jdbreg while joind is running. The converse is also true.
FILES
SEE ALSO
Commands: joind(8)
jdbreg(8)