1、进入管理员账户,打开终端输入

sudo /sbin/dhclient

2、输入 ifconfig -a查看IP地址是否恢复

sudo ifconfig