系统:win8.1
虚拟机:vm
在虚拟机内安装Ubuntu14.04,使用桥接或者NAT都无法连上网络,求解~
另外在安装系统的时候网络就显示连接不上
Ubuntu14.04 不能上网求解
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: Ubuntu14.04 不能上网求解
VMware ?虚拟机:vm
NAT在虚拟机内安装Ubuntu14.04,使用桥接或者NAT都无法连上网络,
重開機 登入桌面
把下面指令 複製 貼進終端機 執行
1. sudo lshw -numeric -class network
2. sudo ifconfig -a
3. sudo route -nv
4. sudo dhclient -v
5. sudo cat /etc/resolv.conf
6. sudo ls -al /etc/resolv.conf
結果直接複製 貼上來
重複貼文 請自行刪除
-
- 帖子: 1
- 注册时间: 2014-08-15 15:54
- 系统: ubuntu14
Re: Ubuntu14.04 不能上网求解
1.*-network
description: Ethernet interface
product: 79c970 [PCnet32 LANCE] [1022:2000]
vendor: Advanced Micro Devices, Inc. [AMD] [1022]
physical id: 1
bus info: pci@0000:02:01.0
logical name: eth0
version: 10
serial: 00:0c:29:9b:ce:8e
width: 32 bits
clock: 33MHz
capabilities: bus_master rom ethernet physical logical
configuration: broadcast=yes driver=pcnet32 driverversion=1.35 ip=192.168.83.200 latency=64 link=no maxlatency=255 mingnt=6 multicast=yes
resources: irq:19 ioport:2000(size=128) memory:e7b00000-e7b0ffff
2.eth0 Link encap:Ethernet HWaddr 00:0c:29:9b:ce:8e
inet addr:192.168.83.200 Bcast:192.168.83.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:534 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38787 (38.7 KB) TX bytes:0 (0.0 B)
Interrupt:19 Base address:0x2000
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:183 errors:0 dropped:0 overruns:0 frame:0
TX packets:183 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:21514 (21.5 KB) TX bytes:21514 (21.5 KB)
3.Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.83.2 0.0.0.0 UG 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
192.168.83.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
4.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/
Listening on LPF/eth0/00:0c:29:9b:ce:8e
Sending on LPF/eth0/00:0c:29:9b:ce:8e
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x4ee02481)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 (xid=0x4ee02481)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13 (xid=0x4ee02481)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16 (xid=0x4ee02481)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14 (xid=0x4ee02481)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14 (xid=0x4ee02481)
5.# 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
6.lrwxrwxrwx 1 root root 29 8月 15 2014 /etc/resolv.conf -> ../run/resolvconf/resolv.conf
这就是这几条对应的指令执行后的结果 求分析没法上网的原因
description: Ethernet interface
product: 79c970 [PCnet32 LANCE] [1022:2000]
vendor: Advanced Micro Devices, Inc. [AMD] [1022]
physical id: 1
bus info: pci@0000:02:01.0
logical name: eth0
version: 10
serial: 00:0c:29:9b:ce:8e
width: 32 bits
clock: 33MHz
capabilities: bus_master rom ethernet physical logical
configuration: broadcast=yes driver=pcnet32 driverversion=1.35 ip=192.168.83.200 latency=64 link=no maxlatency=255 mingnt=6 multicast=yes
resources: irq:19 ioport:2000(size=128) memory:e7b00000-e7b0ffff
2.eth0 Link encap:Ethernet HWaddr 00:0c:29:9b:ce:8e
inet addr:192.168.83.200 Bcast:192.168.83.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:534 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38787 (38.7 KB) TX bytes:0 (0.0 B)
Interrupt:19 Base address:0x2000
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:183 errors:0 dropped:0 overruns:0 frame:0
TX packets:183 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:21514 (21.5 KB) TX bytes:21514 (21.5 KB)
3.Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.83.2 0.0.0.0 UG 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
192.168.83.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
4.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/
Listening on LPF/eth0/00:0c:29:9b:ce:8e
Sending on LPF/eth0/00:0c:29:9b:ce:8e
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x4ee02481)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 (xid=0x4ee02481)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13 (xid=0x4ee02481)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16 (xid=0x4ee02481)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14 (xid=0x4ee02481)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14 (xid=0x4ee02481)
5.# 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
6.lrwxrwxrwx 1 root root 29 8月 15 2014 /etc/resolv.conf -> ../run/resolvconf/resolv.conf
这就是这几条对应的指令执行后的结果 求分析没法上网的原因
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: Ubuntu14.04 不能上网求解
猜測 無法上網的原因 只是 無法解析 網域名稱 變成 IPv4 網址分析没法上网的原因
1. 證明 猜測 對不對
1-1. sudo ping -c 3 198.71.86.201
1-2. sudo ping -c 3 forum.ubuntu.org.cn
2. 如果 1-1 是通的 1-2 不通
表示 無法上網的原因 是 無法解析 網域名稱 變成 IPv4 網址
請再貼文