
Example, Im trying to do this: 1) Get interface name with mac address '68:05:ca:0e:74:c4'.

In theory that should be all you need, though at some point something broke in the kernel and it would cause it to.
You should see yours listed, along with the MAC address for other installed network interfaces. Right now its easy to change the name with this example: ip link set eth1 nameFor a list of all default gateways, use mezgani's answer, duplicated (and slightly simplified) here: /sbin/ip route | awk '/^default/ "Īs noted in the comments, this has the advantage of setting a sensible exit-code, which may be useful in a broader programmatic context. ip a In the screenshot below, we have highlighted our MAC address for the enp0s3 interface.
