首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >新安装14.04服务器网络无法工作

新安装14.04服务器网络无法工作
EN

Ask Ubuntu用户
提问于 2015-10-25 18:38:22
回答 1查看 499关注 0票数 2

我刚刚安装了14.04服务器,安装程序能够连接到互联网来完成安装。但是,在安装结束时重新启动后,我无法连接到网络。安装程序无法自动设置网络连接,所以我已经手动设置了。现在,我不能在本地网络上打开路由器或任何其他计算机。有人对从哪里开始有建议吗?

这就是我的/etc/网络/接口文件的样子:

代码语言: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 eth1
iface eth1 inet static
    address 192.168.0.9
    netmask 255.255.255.0
    network 192.168.0.0
    broadcast 192.168.0.255
gateway 192.168.0.1

这是eth1的输出:

代码语言:javascript
复制
Settings for eth1:
Supported ports: [ TP ]
Supported link modes:   10baseT/Half 10baseT/Full 
                        100baseT/Half 100baseT/Full 
                        1000baseT/Half 1000baseT/Full 
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes:  Not reported
Advertised pause frame use: Symmetric
Advertised auto-negotiation: No
Speed: Unknown!
Duplex: Unknown! (255)
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: off
MDI-X: Unknown
Supports Wake-on: g
Wake-on: g
Current message level: 0x000000ff (255)
               drv probe link timer ifdown ifup rx_err tx_err
Link detected: no

这是sudo lshw -C网络的输出:

代码语言:javascript
复制
  *-network:0 DISABLED
   description: Ethernet interface
   product: NetXtreme BCM5703X Gigabit Ethernet
   vendor: Broadcom Corporation
   physical id: 4
   bus info: pci@0000:02:01.0
   logical name: eth0
   version: 02
   serial: 00:0e:7f:ef:a5:df
   capacity: 1Gbit/s
   width: 64 bits
   clock: 66MHz
   capabilities: pcix pm vpd msi bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
   configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.137 firmware=5703-v2.22 latency=64 link=no mingnt=64 multicast=yes port=twisted pair
   resources: irq:18 memory:f2cf0000-f2cfffff memory:f0040000-f004ffff
  *-network:1
   description: Ethernet interface
   product: NetXtreme BCM5703X Gigabit Ethernet
   vendor: Broadcom Corporation
   physical id: 2
   bus info: pci@0000:02:02.0
   logical name: eth1
   version: 02
   serial: 00:0e:7f:ef:a5:de
   capacity: 1Gbit/s
   width: 64 bits
   clock: 66MHz
   capabilities: pcix pm vpd msi bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
   configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.137 firmware=5703-v2.22 ip=192.168.0.9 latency=64 link=no mingnt=64 multicast=yes port=twisted pair
   resources: irq:20 memory:f2ce0000-f2ceffff memory:f0050000-f005ffff
  *-network:2 DISABLED
   description: Ethernet interface
   product: NetXtreme BCM5701 Gigabit Ethernet
   vendor: Broadcom Corporation
   physical id: 1
   bus info: pci@0000:06:01.0
   logical name: eth2
   version: 15
   serial: 00:08:02:28:b1:60
   capacity: 1Gbit/s
   width: 64 bits
   clock: 66MHz
   capabilities: pcix pm vpd msi bus_master cap_list rom ethernet physical fibre 1000bt 1000bt-fd autonegotiation
   configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.137 firmware=5701s-v2.19 latency=64 link=no mingnt=64 multicast=yes port=fibre
   resources: irq:21 memory:f7ff0000-f7ffffff memory:f0060000-f006ffff
EN

回答 1

Ask Ubuntu用户

发布于 2016-03-23 15:48:55

你确定你把网络电缆插上了吗?

UBUNTU基础安装为IPaddresses分配DHCP。除非在安装过程中,$USER分配了一个静态IPaddress。

从最初的岗位。

输出lshw -C network

*-网络:1个逻辑名称:eth1

输出ethtool eth1

eth1的设置:

Link detected: no

  1. 检查一下网络电缆。
  2. 从shell提示符中输入命令ifconfig

“发布输出”。IPaddress, NETWORK, SUBNETMASK, GATEWAY, BROADCAST, DNS,

  1. 从shell提示符中输入命令hostname -I

“发布输出”。

  1. 登录到路由器/调制解调器/网桥并获得路由器的IPaddress, NETWORK, SUBNETMASK, GATEWAY (S),假设你只有一个路由器?

发送路由器的“私有IPaddress, NETWORK, SUBNETMASK, GATEWAY__”。

注意:“移除”路由器的公共IP地址:X.X.X.X它可以在“我的IP地址”页面找到。(从连接到您的局域网的另一台计算机)

例如,如果您的家庭中有多台计算机,您可能希望在您的家庭内的每台计算机的私有IP地址。

路由器获取公共IP地址,连接到路由器的计算机、平板电脑和智能手机(通过有线或wifi)通过DHCP协议或静态分配从路由器或服务器获得私有IP地址。这超出了问题的范围。

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/689857

复制
相关文章

相似问题

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