我本人使用的Linux为深度的发行版,其核心仍然是ubuntu,并且我的使用环境是VMware中。
其静态IP配置如下:
1.首先sudo vim /etc/network/interfaces
2.然后输入如下内容:
auto lo
iface lo inet loopback
#前两行是系统自带的。
auto eth0
iface eth0 inet static
address 192.168.77.5
netmask 255.255.255.0
gateway 192.168.77.2 #vmware nat方式的的网关一般都是2,前面地址根据自己的实际的ip段来设置。
broadcast 192.168.77.255