[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to find out ethernet device name



Ben Caradoc-Davies wrote:
> On 18/04/18 09:46, Don Armstrong wrote:
>> On Tue, 17 Apr 2018, Long Wind wrote:
>>> we used to call them eth0, eth1 ...now we use new names
>>> i have a ethernet card in stretchhow to find out its name? Thanks!
>> sudo ip link;
>> will show you what the available interface names are.
>
> And if you want the old style (eth0, eth1, wlan0, ...) interface names 
> that are not generated from the hardware MAC address, append the kernel 
> command line parameter net.ifnames=0 to GRUB_CMDLINE_LINUX in 
> /etc/default/grub, run update-grub, and restart.

or just set a udev rule.

-- 
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281


Reply to: