点击此处详细配置
使用到的一些配置命令
设置IP和掩码
ifconfig eth0 192.168.5.40 netmask 255.255.255.0
设置网关
route add default gw 192.168.5.1
设置DNS
root用户打开 /etc/resolv.conf 编辑 nameserver
虚拟机下Linux使用NAT上网
最新推荐文章于 2019-07-04 17:11:56 发布
点击此处详细配置
使用到的一些配置命令
设置IP和掩码
ifconfig eth0 192.168.5.40 netmask 255.255.255.0
设置网关
route add default gw 192.168.5.1
设置DNS
root用户打开 /etc/resolv.conf 编辑 nameserver