Where do I find the UUID of a network connection on Ubuntu Server? (no Network-Manager)

28,168

Solution 1

The UUID is part of Network Manager. If you don't have Network Manager installed and enabled, then you don't have this UUID.

It is not related to OpenStack Quantum UUID at all.

Therefore, you cannot find the UUID. It does not exist.

Solution 2

The UUID is generated with a tool from the util-linux package: uuidgen, this generates random numbers. uuidgen is also used to generate UUID's for partitions at their creation and invoked by tune2fs when you request it to create a new UUID for a partition.

Expect several tools to identify a device as new when you change the UUID in configuration files.

Share:
28,168

Related videos on Youtube

tudor -Reinstate Monica-
Author by

tudor -Reinstate Monica-

Updated on September 18, 2022

Comments

  • tudor -Reinstate Monica-
    tudor -Reinstate Monica- over 1 year

    I have a clean installation of Ubuntu 12.04 Server. I would like to find the UUID for a network connection. How do I find this?

    ifconfig -a does not list it:

    eth0      Link encap:Ethernet  HWaddr 00:1e:67:6a:78:a8  
              inet addr:192.168.50.18  Bcast:192.168.50.255  Mask:255.255.255.0
              inet6 addr: fe80::21e:67ff:fe6a:78a8/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:572287 errors:0 dropped:0 overruns:0 frame:0
              TX packets:70324 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:222908307 (222.9 MB)  TX bytes:7982096 (7.9 MB)
              Interrupt:16 Memory:c2300000-c2320000 
    

    nmcli is not installed (because this is Ubuntu server):

    user@server# nmcli
    The program 'nmcli' is currently not installed.  You can install it by typing:
    apt-get install network-manager
    

    From a desktop install, I can do:

    user@desktop# nmcli c list
    NAME                      UUID                                   TYPE              TIMESTAMP-REAL                    
    Wired connection 2        d00a6778-80d6-4812-ad54-041de24e47fe   802-3-ethernet    Mon 16 Dec 2013 12:20:09 EST      
    Wired connection 1        4fb95570-1922-495a-b498-846b7a6b0655   802-3-ethernet    Tue 17 Dec 2013 11:20:03 EST      
    miwifi                    f3182ff5-81c2-44c4-9c4b-d3a1f0a550e9   802-11-wireless   never   
    

    How do I find it when network-manager isn't installed? Surely I don't have to install network-manager?

    • Jay _silly_evarlast_ Wren
      Jay _silly_evarlast_ Wren about 11 years
      uuid for what? In linux, network connections don't have uuid. Its possible dbus assigns a uuid to a network connection in ubuntu. Is this what you mean?
    • tudor -Reinstate Monica-
      tudor -Reinstate Monica- over 10 years
      Apologies for the delay. I have added extra info from a desktop machine. It's possible that the UUID is created by Network-Manager which would be frustrating. I also saw UUIDs being used for network connections in OpenStack Quantum and thought it might be lower-level, but perhaps they're both implementing their own UUIDs for the connections.