我刚刚安装了14.04服务器,安装程序能够连接到互联网来完成安装。但是,在安装结束时重新启动后,我无法连接到网络。安装程序无法自动设置网络连接,所以我已经手动设置了。现在,我不能在本地网络上打开路由器或任何其他计算机。有人对从哪里开始有建议吗?
这就是我的/etc/网络/接口文件的样子:
# 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的输出:
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网络的输出:
*-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发布于 2016-03-23 15:48:55
你确定你把网络电缆插上了吗?
UBUNTU基础安装为IPaddresses分配DHCP。除非在安装过程中,$USER分配了一个静态IPaddress。
从最初的岗位。
输出lshw -C network
*-网络:1个逻辑名称:eth1
输出ethtool eth1:
eth1的设置:
Link detected: noifconfig“发布输出”。IPaddress, NETWORK, SUBNETMASK, GATEWAY, BROADCAST, DNS,
hostname -I“发布输出”。
IPaddress, NETWORK, SUBNETMASK, GATEWAY (S),假设你只有一个路由器?发送路由器的“私有IPaddress, NETWORK, SUBNETMASK, GATEWAY__”。
注意:“移除”路由器的公共IP地址:X.X.X.X它可以在“我的IP地址”页面找到。(从连接到您的局域网的另一台计算机)
例如,如果您的家庭中有多台计算机,您可能希望在您的家庭内的每台计算机的私有IP地址。
路由器获取公共IP地址,连接到路由器的计算机、平板电脑和智能手机(通过有线或wifi)通过DHCP协议或静态分配从路由器或服务器获得私有IP地址。这超出了问题的范围。
https://askubuntu.com/questions/689857
复制相似问题