1
6
2014
2

装机配置网络

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: 936
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

Avatar_small
pavzi.com 说:
2024年1月20日 15:01

Pavzi.com provides all the news about Gadgets, the Economy, Technology, Business, Finance and many more. The main concept or our aim behind this website has been the will to provide resources with full information on each topic which can be accessed through the Internet. To ensure that every reader gets what is important and worthy about the topic they search and link to hear from us. pavzi.com Our site is a multiple Niche or category website which will ensure to provide information and resources on each and every topic. Some of the evergreen topics you will see on our website are Career, Job Recruitment, Educational, Technology, Reviews and others. We are targeting mostly so it is true that Tech, Finance, and Product Reviews. The only reason we have started this website is to make this site the need for your daily search use.


登录 *


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