ubuntu 常用命令

1,绑定ip,固定ip

vim /etc/network/interfaces

修改eth0为

auto eth0
iface eth0 inet static
address 192.168.1.103
netmask 255.255.255.0
gateway 192.168.1.255

 

2,固定dns,修改dns,绑定dns

vim /etc/resolv.conf

nameserver 192.168.1.1

 

3,查看ubuntu 版本号

cat /etc/issue

 

posted on 2015-12-28 15:27  shires  阅读(111)  评论(0编辑  收藏  举报