1
6
2014
1

装机配置网络

1.装机完毕后要增加新用户,指令如下

sudo passwd root(root 为你要添加的用户名字),然后设置密码。OK。

附录:如果在已经有root用户的基础上再添加用户,则为:

useradd name

passwd name

userdel name

2.装机完毕后配置ip地址,在/etc/network/interfaces  文件下添加

 auto eth0

iface eht0 inet static

address *.*.*.* ip地址

netmask *.*.*.* 掩码

gateway *.*.*.* 网关

dns-nameservers *.*.*.*  dns解析地址

 

如下图:

然后输入:etc/init.d/networking restart

若上述restart后还是不能ping 通,在etc/resolvconf/resolv.conf.d 目录下添加tail文件 vim tail

在tail里添加如下:

 nameserver *.*.*.* 该处地址与上面红色部分相同

然后输入/etc/init.d/resolvconf  restart

 

Category: Linux | Tags: | Read Count: 901
Avatar_small
Digital Ali 说:
2021年9月07日 14:53

This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here keep up the good work 123movies


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter

Host by is-Programmer.com | Power by Chito 1.3.3 beta | Theme: Aeros 2.0 by TheBuckmaker.com