插入有线网,自动获取ip一直连不上

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
Open for free
帖子: 6
注册时间: 2016-04-18 19:15
系统: win7

插入有线网,自动获取ip一直连不上

#1

帖子 Open for free »

刚装ubuntu14,插入有线网,网络信号那个图标一直尝试建立连接,可以一直连不上。ifconfig一直也找不到ipv4 掩码等信息。我联网需要自动获取ip,然后再运行锐捷认证。可是现在获取ip都获取不了,怎么认证啊?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 插入有线网,自动获取ip一直连不上

#2

帖子 poloshiao »

把下面指令 複製 貼進終端機 執行
0. uname -a
1. sudo lspci -knn
2. sudo lshw -numeric -class network
3. sudo ifconfig -a
4. sudo route -nv
5. sudo dhclient -v
6. sudo ls -al /etc/resolv.conf
7. sudo cat /run/resolvconf/resolv.conf
8. sudo nmcli dev status
把結果直接 選取/複製/貼上來
Open for free
帖子: 6
注册时间: 2016-04-18 19:15
系统: win7

Re: 插入有线网,自动获取ip一直连不上

#3

帖子 Open for free »

root@itop:~# uname -a
Linux itop 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
root@itop:~# ^C
root@itop:~# sudo lspci -knn
00:00.0 Host bridge [0600]: Intel Corporation 3rd Gen Core processor DRAM Controller [8086:0154] (rev 09)
Subsystem: Lenovo Device [17aa:3977]
Kernel driver in use: ivb_uncore
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port [8086:0151] (rev 09)
Kernel driver in use: pcieport
00:01.1 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port [8086:0155] (rev 09)
Kernel driver in use: pcieport
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
Subsystem: Lenovo Device [17aa:3901]
Kernel driver in use: i915
00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04)
Subsystem: Lenovo Device [17aa:3977]
Kernel driver in use: xhci_hcd
00:16.0 Communication controller [0780]: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 [8086:1e3a] (rev 04)
Subsystem: Lenovo Device [17aa:3977]
Kernel driver in use: mei_me
00:1a.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 [8086:1e2d] (rev 04)
Subsystem: Lenovo Device [17aa:3977]
Kernel driver in use: ehci-pci
00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)
Subsystem: Lenovo Device [17aa:3977]
Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 [8086:1e10] (rev c4)
Kernel driver in use: pcieport
00:1c.1 PCI bridge [0604]: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 [8086:1e12] (rev c4)
Kernel driver in use: pcieport
00:1d.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 [8086:1e26] (rev 04)
Subsystem: Lenovo Device [17aa:3977]
Kernel driver in use: ehci-pci
00:1f.0 ISA bridge [0601]: Intel Corporation HM76 Express Chipset LPC Controller [8086:1e59] (rev 04)
Subsystem: Lenovo Device [17aa:3977]
Kernel driver in use: lpc_ich
00:1f.2 SATA controller [0106]: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] [8086:1e03] (rev 04)
Subsystem: Lenovo Device [17aa:3977]
Kernel driver in use: ahci
00:1f.3 SMBus [0c05]: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller [8086:1e22] (rev 04)
Subsystem: Lenovo Device [17aa:3977]
01:00.0 3D controller [0302]: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] [10de:1140] (rev a1)
Subsystem: Lenovo GeForce 610M / GT 620M [17aa:3901]
Kernel driver in use: nouveau
03:00.0 Ethernet controller [0200]: Qualcomm Atheros AR8162 Fast Ethernet [1969:1090] (rev 08)
Subsystem: Lenovo Device [17aa:3979]
Kernel driver in use: alx
04:00.0 Network controller [0280]: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)
Subsystem: Lenovo Device [17aa:30a1]
Kernel driver in use: ath9k
root@itop:~# sudo lshw -numeric -class network
*-network
description: Ethernet interface
product: AR8162 Fast Ethernet [1969:1090]
vendor: Qualcomm Atheros [1969]
physical id: 0
bus info: pci@0000:03:00.0
logical name: eth0
version: 08
serial: b8:88:e3:83:87:bc
size: 100Mbit/s
capacity: 100Mbit/s
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi msix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=alx duplex=full latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:32 memory:d3500000-d353ffff ioport:2000(size=128)
*-network DISABLED
description: Wireless interface
product: AR9285 Wireless Network Adapter (PCI-Express) [168C:2B]
vendor: Qualcomm Atheros [168C]
physical id: 0
bus info: pci@0000:04:00.0
logical name: wlan0
version: 01
serial: 20:68:9d:47:b2:f5
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=4.2.0-27-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
resources: irq:17 memory:d3400000-d340ffff
root@itop:~# sudo ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:88:e3:83:87:bc
inet6 addr: fe80::ba88:e3ff:fe83:87bc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:96458 errors:93174 dropped:0 overruns:93174 frame:0
TX packets:975 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:244669 (244.6 KB) TX bytes:186383 (186.3 KB)
Interrupt:16

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:7931 errors:0 dropped:0 overruns:0 frame:0
TX packets:7931 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:644579 (644.5 KB) TX bytes:644579 (644.5 KB)

wlan0 Link encap:Ethernet HWaddr 20:68:9d:47:b2:f5
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:5749 errors:0 dropped:0 overruns:0 frame:0
TX packets:4800 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4170802 (4.1 MB) TX bytes:736508 (736.5 KB)

root@itop:~# sudo route -nv
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
root@itop:~# sudo dhclient -v
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

RTNETLINK answers: Operation not possible due to RF-kill
Listening on LPF/wlan0/20:68:9d:47:b2:f5
Sending on LPF/wlan0/20:68:9d:47:b2:f5
Listening on LPF/eth0/b8:88:e3:83:87:bc
Sending on LPF/eth0/b8:88:e3:83:87:bc
Sending on Socket/fallback
DHCPREQUEST of 10.12.25.241 on wlan0 to 255.255.255.255 port 67 (xid=0x7faa9d8a)
send_packet: Network is down
dhclient.c:2334: Failed to send 300 byte long packet over wlan0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x663a3533)
receive_packet failed on wlan0: Network is down
DHCPREQUEST of 10.12.25.241 on wlan0 to 255.255.255.255 port 67 (xid=0x7faa9d8a)
send_packet: Network is down
dhclient.c:2334: Failed to send 300 byte long packet over wlan0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 (xid=0x663a3533)
DHCPREQUEST of 10.12.25.241 on wlan0 to 255.255.255.255 port 67 (xid=0x7faa9d8a)
send_packet: Network is down
dhclient.c:2334: Failed to send 300 byte long packet over wlan0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6 (xid=0x663a3533)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14 (xid=0x663a3533)
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3 (xid=0xb16e8112)
send_packet: Network is down
dhclient.c:2038: Failed to send 300 byte long packet over wlan0 interface.
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7 (xid=0xb16e8112)
send_packet: Network is down
dhclient.c:2038: Failed to send 300 byte long packet over wlan0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18 (xid=0x663a3533)
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14 (xid=0xb16e8112)
send_packet: Network is down
dhclient.c:2038: Failed to send 300 byte long packet over wlan0 interface.
^Croot@itop:~# sudo ls -al /etc/resolv.conf
lrwxrwxrwx 1 root root 29 Apr 18 2016 /etc/resolv.conf -> ../run/resolvconf/resolv.conf
root@itop:~# sudo cat /run/resolvconf/resolv.conf
# 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
root@itop:~# sudo nmcli dev status
DEVICE TYPE STATE
wlan0 802-11-wireless unavailable
eth0 802-3-ethernet disconnected
root@itop:~#
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 插入有线网,自动获取ip一直连不上

#4

帖子 poloshiao »

插入有线网
sudo lspci -knn
03:00.0 Ethernet controller [0200]: Qualcomm Atheros AR8162 Fast Ethernet [1969:1090] (rev 08)
Subsystem: Lenovo Device [17aa:3979]
Kernel driver in use: alx
04:00.0 Network controller [0280]: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)
Subsystem: Lenovo Device [17aa:30a1]
Kernel driver in use: ath9k
sudo lshw -numeric -class network
*-network
description: Ethernet interface
product: AR8162 Fast Ethernet [1969:1090]
vendor: Qualcomm Atheros [1969]
physical id: 0
bus info: pci@0000:03:00.0
logical name: eth0
version: 08
serial: b8:88:e3:83:87:bc
size: 100Mbit/s
capacity: 100Mbit/s
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi msix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=alx duplex=full latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:32 memory:d3500000-d353ffff ioport:2000(size=128)
*-network DISABLED
description: Wireless interface
product: AR9285 Wireless Network Adapter (PCI-Express) [168C:2B]
vendor: Qualcomm Atheros [168C]
physical id: 0
bus info: pci@0000:04:00.0
logical name: wlan0
version: 01
serial: 20:68:9d:47:b2:f5
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=4.2.0-27-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
resources: irq:17 memory:d3400000-d340ffff
1. 假設你只有一張有線網卡
猜測 你沒安裝 妥適的 網卡驅動
1-1. 出現兩張網卡 一個有線 一個無線 但是 兩個都是
physical id: 0
這是 不正常
1-2. 請確認 你有幾張網卡
Open for free
帖子: 6
注册时间: 2016-04-18 19:15
系统: win7

Re: 插入有线网,自动获取ip一直连不上

#5

帖子 Open for free »

poloshiao 写了:
插入有线网
sudo lspci -knn
03:00.0 Ethernet controller [0200]: Qualcomm Atheros AR8162 Fast Ethernet [1969:1090] (rev 08)
Subsystem: Lenovo Device [17aa:3979]
Kernel driver in use: alx
04:00.0 Network controller [0280]: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)
Subsystem: Lenovo Device [17aa:30a1]
Kernel driver in use: ath9k
sudo lshw -numeric -class network
*-network
description: Ethernet interface
product: AR8162 Fast Ethernet [1969:1090]
vendor: Qualcomm Atheros [1969]
physical id: 0
bus info: pci@0000:03:00.0
logical name: eth0
version: 08
serial: b8:88:e3:83:87:bc
size: 100Mbit/s
capacity: 100Mbit/s
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi msix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=alx duplex=full latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:32 memory:d3500000-d353ffff ioport:2000(size=128)
*-network DISABLED
description: Wireless interface
product: AR9285 Wireless Network Adapter (PCI-Express) [168C:2B]
vendor: Qualcomm Atheros [168C]
physical id: 0
bus info: pci@0000:04:00.0
logical name: wlan0
version: 01
serial: 20:68:9d:47:b2:f5
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=4.2.0-27-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
resources: irq:17 memory:d3400000-d340ffff
1. 假設你只有一張有線網卡
猜測 你沒安裝 妥適的 網卡驅動
1-1. 出現兩張網卡 一個有線 一個無線 但是 兩個都是
physical id: 0
1-2. 請確認 你有幾張網卡

我的是笔记本,有有线和无线两张网卡啊,有限插上去一直获取不了ip
Open for free
帖子: 6
注册时间: 2016-04-18 19:15
系统: win7

Re: 插入有线网,自动获取ip一直连不上

#6

帖子 Open for free »

我的是笔记本,有有线和无线两张网卡啊,现在网络连接信号那个图标里,只有无线可以连接了,有线connection图标都没有了
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 插入有线网,自动获取ip一直连不上

#7

帖子 poloshiao »

這一篇 情況跟你的情況類似
http://askubuntu.com/questions/672373/l ... and-no-wif
Lenovo G580, Atheros 8162, Ubuntu 14.04 LTS - unstable, slow ethernet and no wifi
詳細看看 包含其連結文章
還沒解決

這一篇 相同的兩個網卡型號
https://lists.debian.org/debian-kernel/ ... 00486.html
追蹤看看

@vickycq
問看看 有沒有 最新版合適的驅動
Open for free
帖子: 6
注册时间: 2016-04-18 19:15
系统: win7

Re: 插入有线网,自动获取ip一直连不上

#8

帖子 Open for free »

ifconfig 查看eth0 没有ipv4地址,只有ipv6只是怎么回事
rosynirvana
帖子: 893
注册时间: 2011-02-14 17:46

Re: 插入有线网,自动获取ip一直连不上

#9

帖子 rosynirvana »

fe80:的link local ipv6是一直有的
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 插入有线网,自动获取ip一直连不上

#10

帖子 poloshiao »

ifconfig 查看eth0 没有ipv4地址,只有ipv6
sudo ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:88:e3:83:87:bc
inet6 addr: fe80::ba88:e3ff:fe83:87bc/64 Scope:Link
1. https://en.wikipedia.org/wiki/IPv6_addr ... _addresses
fe80::/10 — Addresses in the link-local prefix are only valid and unique on a single link. Within this prefix only one subnet is allocated (54 zero bits), yielding an effective format of fe80::/64. The least significant 64 bits are usually chosen as the interface hardware address constructed in modified EUI-64 format. A link-local address is required on every IPv6-enabled interface—in other words, applications may rely on the existence of a link-local address even when there is no IPv6 routing. These addresses are comparable to the auto-configuration addresses 169.254.0.0/16 of IPv4.
1-1. IPv6 的網址命名規則 稍異於 IPv4
fe80:: 開頭的 IPv6 網址 用於 link-local 不能流通於 網際網路
他的命名規則好像部份基於 HWaddr b8:88:e3:83:87:bc 不是來自 dhcp 所以跟是否已連線無關
回复