Inspect and Temporarily Configure Interfaces with ifconfig
Use BSD ifconfig on macOS to view en0 details, bounce an interface, or add a temporary secondary IP alias.
01Command
$ ifconfig en0
sudo ifconfig en1 down && sudo ifconfig en1 up
sudo ifconfig en0 alias 192.168.9.10 255.255.255.002What it does
macOS ships the classic BSD ifconfig, which reports interface flags, MAC address, and IPv4/IPv6 addresses in one dump — handy when System Settings is unreachable over SSH. An `alias` adds a second IP without touching your DHCP lease, and `-alias` removes it. Crucially, all ifconfig changes are runtime-only: they disappear on reboot or link renegotiation, so use networksetup for anything permanent.
03Risk
04Undo
$ sudo ifconfig en0 -alias 192.168.9.1005Sources
- ifconfig — macOS Command ReferenceEvidence: Documents up/down, alias and -alias subcommands for BSD ifconfig.
Last verified: 2026-09-17 · Category: Network
06Related solutions
Erase the broken Spotlight database so macOS re-indexes your drive from scratch.
Read the serial number, model identifier and chip without opening About This Mac.
See how many charge cycles the battery has used and its health condition.