[K12OSN] Finding MAC address for NIC
Doug Simpson
simpsond at leopards.k12.ar.us
Thu Apr 27 12:44:05 UTC 2006
On Wed, 26 Apr 2006, Angus Carr wrote:
> Doug Simpson wrote:
> > I have a server that has 3 NICs in it.
> >
> > Eth0 and Eth2 are configured.
> >
> > Eth0 is private and Eth2 is public in this K12LTSP server.
> >
> > What I want to do is enable eth1, give it a public number and use it to
> > monitor traffic in and out of our LAN by connecting it to a *hub* that is
> > between our router and our first public switch.
> >
> > I think all I need is to know how to determine the MAC address on the NIC
> > so I can configure it.
> >
> > I can shutdown the server, remove the NIC and let kudzu remove it, then
> > restart it and let kudzu re-configure it, and that may work, but I can't
> > take it down to do that since it is our main server.
> >
> > Any ideas?
> >
> Try "ifconfig eth1" which will give you the MAC ID whether or not it's
> configured/connected/etc - just as long as it is present.
This does not give a MAC address, either. The interface has to be
configured for ifconfig to show it as far as I can tell.
>
> For that matter, I can also get mine with "cat /proc/net/arp", but that
> may only work with configured and connected if's.
> /proc/net/dev contains a list of network devices, which also has MAC ID.
> Again, this may only be the configured ones...
>
> Angus Carr.
>
>
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>
More information about the K12OSN
mailing list