首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ubuntu 14.10上的网络错误

ubuntu 14.10上的网络错误
EN

Ask Ubuntu用户
提问于 2015-05-17 21:37:49
回答 1查看 716关注 0票数 0

我有一个ubuntu14.10服务器,它需要很长时间才能启动,当它启动的时候,它没有使用网络(它给了我很长的启动延迟)。dmesg | tail

代码语言:javascript
复制
[  225.013622] init: networking pre-start process (1401) terminated with status 1
[  225.015451] init: networking post-stop process (1405) terminated with status 100
[  228.512454] init: networking pre-start process (1415) terminated with status 1
[  228.514132] init: networking post-stop process (1419) terminated with status 100

谷歌一下,这个问题似乎与文件/etc/网络/接口有关,以下是文件的内容:(em1是唯一以太网接口的名称)

代码语言:javascript
复制
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto em1
iface em1 inet DHCP

# This is an autoconfigured IPv6 interface

我必须连接显示器和键盘,输入ifconfig em1; dhclient em1才能正常工作。太不方便了。有什么想法吗?谢谢。

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2015-05-17 21:48:41

我认为你应该将"DHCP“改为"dhcp”:

代码语言:javascript
复制
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto em1
iface em1 inet dhcp

# This is an autoconfigured IPv6 interface

并重新启动网络:

代码语言:javascript
复制
sudo /etc/init.d/networking restart
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/625026

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档