Can I change uuid for network interface in ifcfg-eth* using uuidgen?

1,145

Yes, this article shows how. Keep NetworkManager in line, in case you use it.

Share:
1,145

Related videos on Youtube

Lawrence
Author by

Lawrence

Updated on September 18, 2022

Comments

  • Lawrence
    Lawrence over 1 year

    i'm relativity new to delphi and trying to write a complex search algorithm for my a2 computing coursework. i need to access my record field from a string variable. e.g.

             getfield(record,'name');
    

    I have found an article that may solve my problem but i cant make sense of it. please can someone shorten it down to just what i need. Thanks.

    http://theroadtodelphi.wordpress.com/2010/10/10/fun-with-delphi-rtti-dump-a-trttitype-definition/

    • David Heffernan
      David Heffernan over 11 years
      Why don't you try first, and ask a question if you get stuck.
    • Lawrence
      Lawrence over 11 years
      I have iv'e been trying for days now and i cant make sense of it im really just diving in the deep end here and i need a solution.
    • kludg
      kludg over 11 years
      Since the record field is yours you probably need not RTTI to access it at all. RTTI is required to get information about the types unknown at compile time.
    • LU RD
      LU RD over 11 years
      If you study my answer here, I'm sure you can figure it out: Convert Record to Serialized Form Data for sending via HTTP.
    • Arioch 'The
      Arioch 'The over 11 years
    • Rabin
      Rabin almost 10 years
      personally i don't see why not, i usually clone the ifcfg-* file and do the same.
    • LUIS FRANCO
      LUIS FRANCO almost 10 years
      Thanks @Rabin. Is it necessary to generate the UUID based on the mac address or it doesn't matter?
  • LU RD
    LU RD over 11 years
    @Serg, the field name could be unknown at compile time.
  • Pateman
    Pateman about 11 years
    I'm glad I was able to help. You can easily expand this to support more complex record fields. :) Just have a look at the reference I've used here and you should be able to figure it out in a flash.
  • Stack Overflow
    Stack Overflow over 6 years
    The article is correct that uuidgen will generate a new UUID that can be included in the ifcfg-x file. However, including the device name with uuidgen doesn't do anything at all. To answer the OP's question, yes, you can use any UUID value (generated by uuidgen or otherwise).