CRCinAU | Hi all, so I'm mucking around with netplan on Ubuntu 20.04..... | 04:05 |
---|---|---|
CRCinAU | I'm trying to figure out how to handle a USB ethernet adapter to want to do DHCP on it | 04:05 |
CRCinAU | given the interface name seems to contain the MAC address, all I know is that it'll be called something like: enx<mac> | 04:06 |
CRCinAU | how can I make a config statement to auto-set these up as DHCP? | 04:06 |
LukasM[m] | CRCinAU: if you know the mac address, you can match it using that, e.g. via the "match.macaddress" setting. Then you can simply use "dhcp4: yes" and "dhcp6: yes" to enable DHCP | 09:34 |
LukasM[m] | See https://netplan.io/reference/#common-properties-for-all-device-types | 09:34 |
LukasM[m] | alternatively, you could match by driver, or by interface name (or a combination of all 3) | 09:35 |
LukasM[m] | so you could for example also match on network.ethernets.usb-adapter.match.name="enx*" | 09:36 |
CRCinAU | I'll be honest, I ended up just switching it to NetworkManager... For the USB ethernet parts - it just does what I wanted out of the box | 10:28 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!