LightAtom

ifconfig Command on Mac

ifconfig shows every network interface on your Mac with its addresses, status and settings. Here's how to read it and which interface is which.

ifconfig en0

Show the Wi-Fi interface (en0 on most Macs).

beginner5 minNeeds: Terminal

When to use it

Use ifconfig to see an interface's IPv4 and IPv6 addresses, MAC address, MTU and link status, or to see which virtual interfaces VPNs, Docker and Continuity have created.

Steps

  1. List interfaces

    A Mac has many: physical ports plus virtual ones.
    ifconfig -l
  2. Show one interface

    Most details you need are in a few lines.
    ifconfig en0
  3. Find active interfaces

    status: active means a link is up.
    ifconfig | grep -B8 'status: active' | grep '^[a-z]'
  4. Map names to ports

    networksetup tells you which enX is Wi-Fi, Ethernet or Thunderbolt.
    networksetup -listallhardwareports

Output explained

en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	ether a6:c7:2b:7c:db:e4
	inet6 fe80::5f:daca:262:290f%en0 prefixlen 64 secured scopeid 0xe
	inet 192.168.1.23 netmask 0xffffff00 broadcast 192.168.1.255
	inet6 2001:db8:452b:8d00:dd9c:206e:79c:6f02 prefixlen 64 autoconf temporary
	status: active
  • flags UP and RUNNING: the interface is enabled and has a link. mtu 1500 is the standard Ethernet size.
  • ether: the MAC address in use.
  • inet / netmask: the IPv4 address and mask (0xffffff00 = /24).
  • inet6 … temporary / deprecated: rotating privacy addresses; deprecated ones are being phased out.

Common interfaces: lo0 loopback, en0 Wi-Fi, en1–en9 Ethernet and Thunderbolt, utun0+ VPNs and system tunnels, awdl0 and llw0 AirDrop and Continuity, bridge100 Internet Sharing or virtual machines, anpi Apple USB-C network devices.

Options and variations

FlagMeaningExample
-lInterface names onlyifconfig -l
-aAll interfaces (default)ifconfig -a
IFOne interfaceifconfig en0
IF mtu NSet MTU temporarily (sudo)sudo ifconfig en0 mtu 1400
IF down / upDisable / enable an interface (sudo)sudo ifconfig en0 down

Common errors

ErrorCauseFix
Changes disappearifconfig changes aren't savedUse System Settings or networksetup for permanent settings.
Lots of utun interfacesmacOS and VPN apps create tunnelsNormal; utun interfaces with no inet address are idle.

Do it in the app

LightAtom shows connections whichever interface they use, including the VPN app's own connection to its server.

Frequently asked questions

Is ifconfig deprecated on Mac?

No. ifconfig is still included and works on macOS 15. For settings that persist, use networksetup or System Settings.

What is en0 on a Mac?

Usually the Wi-Fi interface. Check with networksetup -listallhardwareports, which lists each hardware port and its device name.

What is utun on a Mac?

A tunnel interface used by VPNs and system services (iCloud Private Relay, Back to My Mac's successors). Several utun interfaces are normal.

LightAtom team

The people who build LightAtom, a network monitor for macOS.