How to find MAC address in Ubuntu?

6,832

Both. You have two network interfaces, hence the two lines.

  • enp0s31f6 is most probably a wired interface, its MAC is d8:9q:26:7d:34:ff,
  • wlp1s0 is a wireless interface, its MAC is f8:71:38:53:e9:1p.
Share:
6,832

Related videos on Youtube

user768490
Author by

user768490

Updated on September 18, 2022

Comments

  • user768490
    user768490 almost 2 years

    I am trying

    ifconfig | grep HWaddr
    

    it gives me output in two lines

    enp0s31f6 Link encap:Ethernet  HWaddr d8:9q:26:7d:34:ff  
    wlp1s0    Link encap:Ethernet  HWaddr f8:71:38:53:e9:1p  
    

    Which one is my MAC address ?