Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 18th March 2012, 01:58 PM
settingsun Offline
Registered User
 
Join Date: Aug 2011
Posts: 150
windows_xp_2003firefox
How do I find the mac address of a USB to ethernet adaptor?

I'm learning to install a USB to ethernet adaptor to give my fedora laptop a second nic that can run https. I assume every nic needs its own configuration file in /etc/sysconfig/network-scripts.

When I plugged it into the laptop and used network manager, the manger created a ifcfg-eth2 file but gave it no mac address. I want to put the mac address into ifcfg-eth2 manually, or just make my own ifcfg-eth1.

I did a search and found an article that says the mac address is printed on the back of the device. There are 3 numbers on the back of my device. One starts with "S/N:", another starts with "H/W", but this is only 4 characters long, and another is on a barcode.

Does anyone know if one of these is the mac?

Btw, why would the network manager go from eth0 to eth2? Why skip eth1?

Thanks
Reply With Quote
  #2  
Old 18th March 2012, 04:04 PM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,613
linuxfirefox
Re: How do I find the mac address of a USB to ethernet adaptor?

running the arp command as root user should give you the MAC address of your ethernet adapters.
Reply With Quote
  #3  
Old 18th March 2012, 06:26 PM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
linuxfirefox
Re: How do I find the mac address of a USB to ethernet adaptor?

The following command will display the mac address on the first line (HWaddr):

ifconfig eth2

As far as going from eth0 to eth2, have a look in the file /etc/udev/rules.d/70-persistent-net.rules. Each time a network card is plugged in it gets added to this file (mac address to ethX). Also I think wireless cards appear in the file (wlanX). You are allowed to edit this file to change it if you want. I believe the exceptions to being included in this file are for embedded cards (they get emX) and pci (they get names that start with p)

Last edited by JEO; 18th March 2012 at 06:34 PM.
Reply With Quote
  #4  
Old 18th March 2012, 07:03 PM
settingsun Offline
Registered User
 
Join Date: Aug 2011
Posts: 150
windows_xp_2003firefox
Re: How do I find the mac address of a USB to ethernet adaptor?

Thanks to everyone for replying.

JEO - cat /etc/udev/rules/70-persistent-net.rules showed me the USB device with an ATTR{address}=="00:xx:xx:xx:xx:xx"


Is this the mac?


The name entry is: NAME="eth1"

That doesn't make sense, because the network manager shows it as eth2.

Last edited by settingsun; 18th March 2012 at 07:22 PM.
Reply With Quote
  #5  
Old 18th March 2012, 07:21 PM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
linuxfirefox
Re: How do I find the mac address of a USB to ethernet adaptor?

Yes the ATTR{address} is the same thing as the HWaddr or mac address.
Reply With Quote
  #6  
Old 18th March 2012, 07:24 PM
settingsun Offline
Registered User
 
Join Date: Aug 2011
Posts: 150
windows_xp_2003firefox
Re: How do I find the mac address of a USB to ethernet adaptor?

Thanks again -

I was typing another message as you were replying, so I'll type it again here:

The Name entry reads like this: NAME="eth1"

This is strange because network manager shows it as eth2.
Reply With Quote
  #7  
Old 18th March 2012, 07:29 PM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
linuxfirefox
Re: How do I find the mac address of a USB to ethernet adaptor?

NetworkManager might also be renaming the interface. I'm pretty sure if that is the case the renaming will show up in /var/log/messages each time NetworkManager sees the interface.
Reply With Quote
  #8  
Old 18th March 2012, 07:43 PM
settingsun Offline
Registered User
 
Join Date: Aug 2011
Posts: 150
windows_xp_2003firefox
Re: How do I find the mac address of a USB to ethernet adaptor?

Thanks very much for your help.
Reply With Quote
Reply

Tags
adaptor, address, ethernet, mac, usb

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Many ethernet cards. Howto find "vendor / model" == "MAC address" ? tim4dev Hardware & Laptops 3 8th October 2010 06:00 AM
FC4 didn't detect ethernet address... alexnardini Hardware & Laptops 1 19th January 2006 08:33 AM
FC4-Configure ethernet , using dynamic i/p address musicmaniac Servers & Networking 2 26th October 2005 07:57 AM
Limit ethernet adaptor to 10Mb pketa Servers & Networking 4 22nd February 2005 06:51 PM
ethernet mac address robghealey Servers & Networking 1 2nd July 2004 03:49 PM


Current GMT-time: 08:58 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat