Linux中,ifconfig只有lo0,没有网卡驱动(eth0,eth1等)
1.开启eth0:ifconfig eth0 up
2.更新IP地址:sudo dhclient eth0
3.然后运行:sudo ifconfig eth0
4.reboot
5.dhclient eth0
1.开启eth0:ifconfig eth0 up
2.更新IP地址:sudo dhclient eth0
3.然后运行:sudo ifconfig eth0
4.reboot
5.dhclient eth0