macOSMedium

Resetting macOS Network Settings: A Complete Guide to Fixing Connection Issues

In this guide, you'll learn how to perform a full reset of network settings on macOS using built-in tools and Terminal. This will resolve connection issues, incorrect IP addresses, and network failures.

Updated at February 16, 2026
10-15 min
Medium
FixPedia Team
Применимо к:macOS 10.12+

Introduction / Why This Is Needed

macOS network settings can become "cluttered" over time: old configurations accumulate, incorrect IP addresses get cached, problematic DNS servers persist. This leads to symptoms such as:

  • Inability to connect to Wi‑Fi despite a correct password.
  • Random connection drops.
  • No internet despite a proper connection.
  • Slow network performance without an obvious cause.

Resetting network settings returns macOS to the "factory" state for network services. After this, the system requests a new IP address from the router, clears the list of known networks, and resets caches. This is one of the most effective ways to solve problems without resorting to complex diagnostics.

In this guide, we'll cover two methods: the standard one (via System Settings) and the advanced one (via Terminal). The first is suitable for most users, the second—for stubborn issues.

Requirements / Preparation

Before you begin, ensure that:

  1. You have administrator privileges on your Mac (a password will be required for some actions).
  2. You are running macOS 10.12 (Sierra) or newer. The instructions are current for Ventura, Sonoma, and older versions, but the interface may differ slightly.
  3. (Optional) A backup of important data has been created via Time Machine or another method. Although a reset does not affect user files, this is a good habit before system changes.
  4. You have physical access to the router (if a router reboot will be needed after the reset).

This method uses the graphical interface and is safe for most users. It removes saved Wi‑Fi networks and resets the current IP configuration.

Step 1: Release DHCP Lease

  1. Open System Settings (System Settings) via the Apple menu or Spotlight.
  2. Navigate to the Network section in the sidebar.
  3. Select the active interface: Wi‑Fi or Ethernet (depending on how you are connected).
  4. Click the Details (Advanced) button at the bottom of the window.
  5. Go to the TCP/IP tab.
  6. Click the Renew DHCP Lease button. This will force your Mac to request a new IP address from the router.
  7. Click OK, then Apply.

💡 Tip: If you are using a static IP, switch to DHCP before releasing the lease; otherwise, the reset will not work.

Step 2: Remove Saved Wi‑Fi Networks

  1. In the same Network section, select Wi‑Fi from the list of interfaces.
  2. Click Details (Advanced).
  3. Go to the Wi‑Fi tab.
  4. In the Known Networks list, you will see all networks your Mac has previously connected to.
  5. Select each network (you can select multiple with the Cmd key held down) and click the (minus) button to remove them.
  6. Confirm the deletion.
  7. Click OK, then Apply.

Now your Mac will "forget" all Wi‑Fi passwords and settings.

Step 3: Reset Network Service Order (Optional)

Sometimes resetting the order of network interfaces helps:

  1. In the Network section, click the Details (Advanced) button on any tab.
  2. Go to the Network tab—you will see a list of services (Wi‑Fi, Ethernet, Thunderbolt Ethernet, etc.).
  3. Drag the services into the desired order (e.g., Wi‑Fi above Ethernet if you want Wi‑Fi priority).
  4. Or click Restore Default Order.
  5. Click OK and Apply.

This step is not mandatory, but it can help if your Mac is selecting the wrong interface.

Method 2: Full Reset via Terminal (More Radical)

If problems persist after the first method, perform a full reset by deleting network configuration files. This is a more aggressive method, but it resolves most "deep" glitches.

Open Terminal (via Spotlight or Finder → Utilities). Enter the following commands, pressing Enter after each. You will need an administrator password.

# Stop network services (may require password entry)
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.networkd.plist
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.ipsd.plist

If the services are already stopped, you will see a "No such process" error—this is normal.

Step 2: Delete Network Configuration Files

Execute the command that deletes key files in the /Library/Preferences/SystemConfiguration/ and ~/Library/Preferences/SystemConfiguration/ folders. These files store network settings, caches, and the interface list.

# Delete system network configuration files (requires sudo)
sudo rm -f /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist
sudo rm -f /Library/Preferences/SystemConfiguration/com.apple.network.eppc.plist
sudo rm -f /Library/Preferences/SystemConfiguration/com.apple.netshadow.plist
sudo rm -f /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
sudo rm -f /Library/Preferences/SystemConfiguration/preferences.plist

# Delete user-specific files (without sudo, from home folder)
rm -f ~/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist
rm -f ~/Library/Preferences/SystemConfiguration/com.apple.network.eppc.plist
rm -f ~/Library/Preferences/SystemConfiguration/com.apple.netshadow.plist
rm -f ~/Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
rm -f ~/Library/Preferences/SystemConfiguration/preferences.plist

⚠️ Important: Ensure you type the commands exactly as shown. Deleting other files in these folders may cause loss of other settings (e.g., printers).

Step 3: Clear Caches (Optional)

For a complete clean, you can delete network caches:

# Clear network extension cache
sudo rm -rf /Library/Caches/com.apple.networkextension.cache
rm -rf ~/Library/Caches/com.apple.networkextension.cache

Step 4: Reboot Your Mac

After deleting the files, you must restart your computer. This will restore network services from scratch.

# Reboot (you can also do this via the Apple menu)
sudo reboot

Or select Apple → Restart.

Verifying the Result

After rebooting:

  1. Connect to a Wi‑Fi network via the menu bar (or configure Ethernet).
  2. Open System Settings → Network and verify the status is "Connected" and an IP address is obtained (not 169.254.x.x).
  3. Open Terminal and run:
    ping -c 4 ya.ru
    
    If packets are sent and received, the internet is working.
  4. Check speed and stability by opening several websites.

If the connection is not established automatically, you may need to manually select the network and enter the password.

Potential Issues

Cannot execute command with sudo

Ensure you are logged into an account with administrator privileges. When prompted for a password, enter your account password (characters are not displayed—this is normal).

Files do not delete (Operation not permitted)

Starting with macOS Catalina, System Integrity Protection (SIP) may block deletion of some files even with sudo. In this case:

  • Ensure you did not make a typo in the path.
  • Try disabling SIP (not recommended for average users). It's better to use the first method or boot into Recovery Mode and execute the commands there.

Wi‑Fi does not see networks after reset

Check that Wi‑Fi is enabled in System Settings → Network. If the interface is disabled, enable it. You can also try resetting the SMC (for Intel-based Macs) or resetting NVRAM—this sometimes helps with hardware-related Wi‑Fi issues.

Ethernet does not work after reset

Ensure the cable is firmly connected. Check if the en0 or en1 interface appears in ifconfig. If not, the issue may be with drivers or hardware.

DNS resolution fails

After a reset, DNS servers may default to automatic (from the router). If you use custom DNS (e.g., 8.8.8.8), configure them manually in System Settings → Network → Details → DNS.

F.A.Q.

What's the difference between resetting via System Preferences and resetting via Terminal?
Is it necessary to restart the Mac after resetting network settings?
Will this reset the Wi-Fi network password?
Can I reset only Wi-Fi without affecting Ethernet?

Hints

Back up important data
Reset network settings via System Preferences (recommended method)
Full reset via Terminal (alternative method)
Restart network services and Mac
Check connection and reconfigure
FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community