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?
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.
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.
The UUID for network card is a runtime thing, done by NetworkManager. The closest you can get to find your network card in "/dev" is actually to look into "/proc" instead, where you can see there is no UUID mentioned anywhere:
The "nmcli conn show enp1s0" command shows UUID and not the HW address.
The "nmcli device show enp1s0" command shows HWADDR and not the UUID.