最近折腾了一个VPS,因为安装的差错只能手动设置IP和DNS Server。导致进去系统后,无法对域名进行解析。
Linux中配置固定ip地址
sudo vim /etc/network/interfaces
在文件中添加与自身配置相适合的东西。。
auto eth0
iface eth0 inet static
address 10.10.60.14
netmask 255.255.255.0
gateway 10.10.60.254
:wq 保存退出
Linux修改DNS、设置IP
最近折腾了一个VPS,因为安装的差错只能手动设置IP和DNS Server。导致进去系统后,无法对域名进行解析。
Linux中配置固定ip地址
sudo vim /etc/network/interfaces
在文件中添加与自身配置相适合的东西。。
auto eth0
iface eth0 inet static
address 10.10.60.14
netmask 255.255.255.0
gateway 10.10.60.254
:wq 保存退出