How to Set/Get UUID for a NIC

Rejy M Cyriac rcyriac at redhat.com
Fri Jan 11 07:12:55 UTC 2013


On 01/09/2013 09:07 PM, Michael Hennebry wrote:
> On Wed, 9 Jan 2013, Khemara Lyn wrote:
>
>> Ok, thank you; it's that simple! I've thought about it in a harder way.
>
> Actually, it's even easier.
> NICs come with built-in six-byte MAC adddresses
> that are supposed to be unique.
> They are not random.
> ifconfig will give them to you.
>
>  From googling, I gather that network cards can have UUIDs.
> So far I cannot find one for my eth0.
> Maybe that is because my network card is the motherboard.
> My ifcfg-eth0 does not mention a UUID.
> network-functions does have UUID.
> get_uuid_by_config seems to be at least one way to fetch a value,
> but I don't understand it.
>
> uuidgen emits a UUID to standard out.
> It does not directly affect any NIC.

'uuidgen' is a generic tool for generating a Universally Unique 
IDentifier (UUID), intended to be used anywhere, and not just for NIC 
config files alone.

The output of the 'uuidgen' tool can be put into the NIC config file as 
a value for the key 'UUID='

- rejy (rmc)

>
>> On 01/09/2013 01:09 PM, Ed Greshko wrote:
>>> On 01/09/2013 10:55 AM, Khemara Lyn wrote:
>>>> Dear All,
>>>>
>>>> Sorry if this had been covered before.
>>>>
>>>> How can I set or get the UUID for a NIC? I have installed new system,
>> initially with a single NIC; now I've added another NIC and would like
>> to create a new UUID to be used in the new network-script file (e.g.
>> ifcfg-em2).
>
>>> Simply run uuidgen to create one
>



More information about the users mailing list