Mac m1 system cannot be assigned an IP address when connected to wifi

Original link: https://chegva.com/5794.html

In the past few days, the computer has been unable to assign an IP address when connected to the wifi. This happened occasionally before. Just restart the computer and it will be fine. Restarting the computer today still doesn’t work. I checked online and deleted the wifi cache. After restarting the computer, it stopped convulsing and returned to normal. Mark.

Just delete the following 5 files. I just sudo move and then restart the computer.

 /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist 
  
/Library/Preferences/SystemConfiguration/com.apple.network.eapolclient.configuration.plist 
  
/Library/Preferences/SystemConfiguration/com.apple.wifi.message-tracer.plist 
  
/Library/Preferences/SystemConfiguration/NetworkInterfaces.plist 
  
/Library/Preferences/SystemConfiguration/preferences.plist 
  
 
  
# Add .bak-date suffix mov() { sudo mv "$@"{,.bak-`date +%Y%m%d`}; echo "`date +%Y-%m-%d` moved at $PWD/$@"; };mov preferences.plist 
  
preferences.plist → preferences.plist.bak-20230914 
  
 
  
# Delete .bak-date suffix nbak(){ local tmp="$@"; echo ${tmp%.bak*} | xargs -t -I _ mv $tmp _;}; nbak preferences.plist.bak-20230914 
  
preferences.plist.bak-20230914 → preferences.plist 

Reference: Solution to the problem that there is no IP address after the mac m1 system is connected to Wi-Fi (ask Apple for official solution)

This article is reproduced from: https://chegva.com/5794.html
This site is only for collection, and the copyright belongs to the original author.