ifconfig 查看网卡信息 ifconfig -a 查看有无可用网卡 ifconfig eth0 up 启用 eth0网卡 ip设置: ifconfig eth0 192.168.2.112 netmask 255.255.0.0 route add default gw 192.168.0.1 DNS设置: nano /etc/resolv.conf name server 8.8.8.8 配置成功!