配置ubuntu服务器的静态IP和DNS设置
发布时间
阅读量:
阅读量
ubuntu server 修改静态IP和DNS
- 设置固定网络地址
#vim /etc/network/interfaces
#auto lo
#iface lo inet loopback
#auto eth0
#iface eth0 inet dhcp
#以上是默认使用DHCP分配的IP,修改如下
auto lo
iface lo inet loopback
#让网卡开机自动挂载
auto eth0
iface eth0 inet static
address 10.32.0.150
netmask 255.255.255.0
gateway 10.32.0.1
- 设置DNS服务器
# vim /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by reso
全部评论 (0)
还没有任何评论哟~
