/etc/network/interfaces
/etc/resolv.conf
/etc/NetworkManager/NetworkManager.conf
在NetworkManager的图形化(即顶部面板中的网络菜单,然后单击编辑连接。在有线连接 )中也设置了
以下是一些信息,求帮助!
root@T52:/home/rosen# uname -a
代码: 全选
Linux T52 3.13.0-40-generic #69-Ubuntu SMP Thu Nov 13 17:53:56 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
代码: 全选
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.4 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 5 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a4)
00:1f.0 ISA bridge: Intel Corporation B75 Express Chipset LPC Controller (rev 04)
00:1f.2 IDE interface: Intel Corporation 7 Series/C210 Series Chipset Family 4-port SATA Controller [IDE mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
00:1f.5 IDE interface: Intel Corporation 7 Series/C210 Series Chipset Family 2-port SATA Controller [IDE mode] (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GK208 [GeForce GT 630 Rev. 2] (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 0e0f (rev a1)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
代码: 全选
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:03:00.0
logical name: eth0
version: 06
serial: 74:d4:35:10:48:3a
size: 100Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.039.00-NAPI duplex=half ip=192.168.1.52 latency=0 link=no multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:43 ioport:d000(size=256) memory:f2104000-f2104fff memory:f2100000-f2103fff
代码: 全选
eth0 Link encap:以太网 硬件地址 74:d4:35:10:48:3a
inet 地址:192.168.1.52 广播:192.168.1.255 掩码:255.255.255.0
inet6 地址: fe80::76d4:35ff:fe10:483a/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:732 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:0 (0.0 B) 发送字节:69788 (69.7 KB)
中断:43 基本地址:0xc000
lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 跃点数:1
接收数据包:2422 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:2422 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:224862 (224.8 KB) 发送字节:224862 (224.8 KB)
代码: 全选
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.52 icmp_seq=1 Destination Host Unreachable
From 192.168.1.52 icmp_seq=2 Destination Host Unreachable
From 192.168.1.52 icmp_seq=3 Destination Host Unreachable
From 192.168.1.52 icmp_seq=4 Destination Host Unreachable
--- 192.168.1.1 ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 2999ms
pipe 4
代码: 全选
Dec 19 11:06:34 T52 kernel: [ 2617.662950] r8168: eth0: link down
Dec 19 11:06:34 T52 NetworkManager[1152]: <info> (eth0): carrier now OFF (device state 100, deferring action for 4 seconds)
Dec 19 11:06:36 T52 kernel: [ 2619.706956] r8168: eth0: link up
Dec 19 11:06:36 T52 NetworkManager[1152]: <info> (eth0): carrier now ON (device state 100)
Dec 19 11:06:37 T52 kernel: [ 2620.705544] r8168: eth0: link down
Dec 19 11:06:37 T52 NetworkManager[1152]: <info> (eth0): carrier now OFF (device state 100, deferring action for 4 seconds)
Dec 19 11:06:39 T52 kernel: [ 2622.749546] r8168: eth0: link up
Dec 19 11:06:39 T52 NetworkManager[1152]: <info> (eth0): carrier now ON (device state 100)
Dec 19 11:06:40 T52 kernel: [ 2623.748126] r8168: eth0: link down
Dec 19 11:06:40 T52 NetworkManager[1152]: <info> (eth0): carrier now OFF (device state 100, deferring action for 4 seconds)
Dec 19 11:06:42 T52 kernel: [ 2625.792104] r8168: eth0: link up
Dec 19 11:06:42 T52 NetworkManager[1152]: <info> (eth0): carrier now ON (device state 100)
Dec 19 11:06:43 T52 kernel: [ 2626.790697] r8168: eth0: link down
Dec 19 11:06:43 T52 NetworkManager[1152]: <info> (eth0): carrier now OFF (device state 100, deferring action for 4 seconds)
Dec 19 11:06:45 T52 ntpdate[6724]: Can't find host ntp.ubuntu.com: Name or service not known (-2)
Dec 19 11:06:45 T52 ntpdate[6724]: no servers can be used, exiting
Dec 19 11:06:47 T52 kernel: [ 2630.836424] r8168: eth0: link up
Dec 19 11:06:47 T52 NetworkManager[1152]: <info> (eth0): carrier now ON (device state 100)
Dec 19 11:06:48 T52 kernel: [ 2631.834992] r8168: eth0: link down
Dec 19 11:06:48 T52 NetworkManager[1152]: <info> (eth0): carrier now OFF (device state 100, deferring action for 4 seconds)
这是我修改过后的文件信息
root@T52:/home/rosen# vim /etc/network/interfaces
代码: 全选
# interfaces(5) file used by ifup(8) and ifdown(8)
# 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 eth0
# DHCP not needed
# iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.52
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 202.96.134.133
代码: 全选
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 202.96.134.133
代码: 全选
#[main]
#plugins=ifupdown,keyfile,ofono
#dns=dnsmasq
[ifupdown]
managed=true
[main]
no-auto-default=74:D4:35:10:48:3A,
求各位大神帮帮忙啊?一直上不了网,都急死了!!!