工作站安装win7和ubuntu16.04出现连不上网的情况

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
daye
帖子: 3
注册时间: 2018-01-29 15:00
系统: ubuntu
送出感谢: 0
接收感谢: 0

工作站安装win7和ubuntu16.04出现连不上网的情况

#1

帖子 daye » 2018-01-29 15:11

请各位大神指点,我是在工作站上安装的win7和ubuntu16.04双系统,由于办公室里面只有一个端口,我们使用路由器分出多条网线上网。现在双系统已经安装成功了,但是在ubuntu下面上不去网,win7下面可以。配置网络,把自动获取改成手动调整为办公室分配到的IP地址,但是虽然显示连上网络,但是网页都打不开,希望大神给予指点!先谢谢各位了!
poloshiao
论坛版主
帖子: 18273
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1948 次

Re: 工作站安装win7和ubuntu16.04出现连不上网的情况

#2

帖子 poloshiao » 2018-01-29 16:00

虽然显示连上网络,但是网页都打不开,
把下面指令 複製 貼進終端機 執行
1. sudo ip addr show
2. sudo ip route show
3. sudo dhclient -v
4. sudo ping -c 3 127.0.0.1
5. sudo ping -c 3 198.71.84.64
6. sudo ping -c 3 forum.ubuntu.org.cn
7. sudo ls -al /etc/resolv.conf
8. sudo cat /etc/resolv.conf
把指令及回應結果全部直接 選取/複製/貼上來
不要摘錄 以免遺漏重要訊息
不要擷圖 方便回文直接引用你貼上來的資料 方便你閱讀
daye
帖子: 3
注册时间: 2018-01-29 15:00
系统: ubuntu
送出感谢: 0
接收感谢: 0

Re: 工作站安装win7和ubuntu16.04出现连不上网的情况

#3

帖子 daye » 2018-01-29 17:12

脚本启动于 2018年01月30日 星期二 16时49分57秒
]0;sunzhe@sunzhe-Precision-Tower-7910: ~[01;32msunzhe@sunzhe-Precision-Tower-7910[00m:[01;34m~[00m$ sudo ip addre[K show
[sudo] sunzhe 的密码:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp9s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 48:4d:7e:ec:6c:50 brd ff:ff:ff:ff:ff:ff
inet 169.254.8.78/16 brd 169.254.255.255 scope link enp9s0:avahi
valid_lft forever preferred_lft forever
3: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 48:4d:7e:ec:6c:33 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.102/24 brd 192.168.2.255 scope global enp0s25
valid_lft forever preferred_lft forever
inet6 fe80::ef7b:a821:7605:2971/64 scope link
valid_lft forever preferred_lft forever
]0;sunzhe@sunzhe-Precision-Tower-7910: ~[01;32msunzhe@sunzhe-Precision-Tower-7910[00m:[01;34m~[00m$ sudp[Ko ip route show
default via 192.168.2.1 dev enp0s25 proto static metric 100
default dev enp9s0 scope link metric 1002 linkdown
169.254.0.0/16 dev enp9s0 proto kernel scope link src 169.254.8.78 linkdown
169.254.0.0/16 dev enp0s25 proto static scope link metric 1000
192.168.2.0/24 dev enp0s25 proto kernel scope link src 192.168.2.102 metric 100
]0;sunzhe@sunzhe-Precision-Tower-7910: ~[01;32msunzhe@sunzhe-Precision-Tower-7910[00m:[01;34m~[00m$ sudp[Ko dhclient -c[Kv
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/enp9s0:avahi/48:4d:7e:ec:6c:50
Sending on LPF/enp9s0:avahi/48:4d:7e:ec:6c:50
Listening on LPF/enp0s25/48:4d:7e:ec:6c:33
Sending on LPF/enp0s25/48:4d:7e:ec:6c:33
Listening on LPF/enp9s0/48:4d:7e:ec:6c:50
Sending on LPF/enp9s0/48:4d:7e:ec:6c:50
Sending on Socket/fallback
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 3 (xid=0x72e26274)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 3 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 3 (xid=0x4b871572)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 8 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 3 (xid=0x4b871572)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 6 (xid=0x72e26274)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 6 (xid=0x4b871572)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 10 (xid=0x72e26274)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 9 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 10 (xid=0x4b871572)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 18 (xid=0x72e26274)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 9 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 13 (xid=0x4b871572)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 9 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 14 (xid=0x4b871572)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 21 (xid=0x72e26274)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 16 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 19 (xid=0x4b871572)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 12 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 10 (xid=0x72e26274)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 7 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 17 (xid=0x4b871572)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 14 (xid=0x72e26274)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 11 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 8 (xid=0x72e26274)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 7 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 21 (xid=0x4b871572)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 14 (xid=0x72e26274)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 7 (xid=0xdbe38d47)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 14 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 17 (xid=0x72e26274)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 12 (xid=0x4b871572)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 13 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 8 (xid=0x4b871572)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 21 (xid=0x72e26274)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 14 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 14 (xid=0x4b871572)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 13 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 12 (xid=0x4b871572)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 19 (xid=0x72e26274)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 9 (xid=0x4b871572)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 19 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 10 (xid=0x4b871572)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 16 (xid=0x72e26274)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 9 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 15 (xid=0x4b871572)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 16 (xid=0x72e26274)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 20 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 18 (xid=0x4b871572)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 18 (xid=0x72e26274)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 12 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 18 (xid=0x4b871572)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 12 (xid=0x72e26274)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 12 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 16 (xid=0x4b871572)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 21 (xid=0x72e26274)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 10 (xid=0xdbe38d47)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 13 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 16 (xid=0x4b871572)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 13 (xid=0x72e26274)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 8 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 13 (xid=0x4b871572)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 15 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 20 (xid=0x72e26274)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 14 (xid=0x4b871572)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 20 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 19 (xid=0x72e26274)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 7 (xid=0x4b871572)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 10 (xid=0x4b871572)
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 11 (xid=0xdbe38d47)
DHCPDISCOVER on enp9s0:avahi to 255.255.255.255 port 67 interval 5 (xid=0x72e26274)
DHCPDISCOVER on enp9s0 to 255.255.255.255 port 67 interval 3 (xid=0x4b871572)
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
]0;sunzhe@sunzhe-Precision-Tower-7910: ~[01;32msunzhe@sunzhe-Precision-Tower-7910[00m:[01;34m~[00m$ sudo ping -c 3 128.0.0.1
PING 128.0.0.1 (128.0.0.1) 56(84) bytes of data.
From 192.168.2.102 icmp_seq=1 Destination Host Unreachable
From 192.168.2.102 icmp_seq=2 Destination Host Unreachable

--- 128.0.0.1 ping statistics ---
3 packets transmitted, 0 received, +2 errors, 100% packet loss, time 2000ms
pipe 2
]0;sunzhe@sunzhe-Precision-Tower-7910: ~[01;32msunzhe@sunzhe-Precision-Tower-7910[00m:[01;34m~[00m$ sudo ping -c 3 128.0.0.1[K[K[K[K[K[K[K[K98.71.84.64
PING 198.71.84.64 (198.71.84.64) 56(84) bytes of data.
From 192.168.2.102 icmp_seq=1 Destination Host Unreachable
From 192.168.2.102 icmp_seq=2 Destination Host Unreachable

--- 198.71.84.64 ping statistics ---
3 packets transmitted, 0 received, +2 errors, 100% packet loss, time 2017ms
pipe 2
]0;sunzhe@sunzhe-Precision-Tower-7910: ~[01;32msunzhe@sunzhe-Precision-Tower-7910[00m:[01;34m~[00m$ sudo ping -c 3 198.71.84.64[K[K[K[K[K[K[K[K[K[K[K[Kforum.ubuntu.org.cn
ping: unknown host forum.ubuntu.org.cn
]0;sunzhe@sunzhe-Precision-Tower-7910: ~[01;32msunzhe@sunzhe-Precision-Tower-7910[00m:[01;34m~[00m$ sudo ls -al /etc/resolv.conf
lrwxrwxrwx 1 root root 29 1月 29 13:40 /etc/resolv.conf -> ../run/resolvconf/resolv.conf
]0;sunzhe@sunzhe-Precision-Tower-7910: ~[01;32msunzhe@sunzhe-Precision-Tower-7910[00m:[01;34m~[00m$ sudo cat /etc/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
nameserver 127.0.1.1
]0;sunzhe@sunzhe-Precision-Tower-7910: ~[01;32msunzhe@sunzhe-Precision-Tower-7910[00m:[01;34m~[00m$ exit
exit

脚本完成,于 2018年01月30日 星期二 17时00分29秒
poloshiao
论坛版主
帖子: 18273
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1948 次

Re: 工作站安装win7和ubuntu16.04出现连不上网的情况

#4

帖子 poloshiao » 2018-01-29 17:56

4. sudo ping -c 3 127.0.0.1
sudo ping -c 3 128.0.0.1[K[K[K[K[K[K[K[K98.71.84.64
5. sudo ping -c 3 198.71.84.64
sudo ping -c 3 198.71.84.64[K[K[K[K[K[K[K[K[K[K[K[Kforum.ubuntu.org.cn
ping: unknown host forum.ubuntu.org.cn
1. 127.0.0.1 不是 128.0.0.1
把下面指令 複製 貼進終端機 執行
2. 為何多出那麼多的 [K ?
脚本启动于 2018年01月30日 星期二 16时49分57秒
脚本完成,于 2018年01月30日 星期二 17时00分29秒
3. 請依照

原來的指令
指令的回應
空一格

以利閱讀
daye
帖子: 3
注册时间: 2018-01-29 15:00
系统: ubuntu
送出感谢: 0
接收感谢: 0

Re: 工作站安装win7和ubuntu16.04出现连不上网的情况

#5

帖子 daye » 2018-01-30 16:25

谢谢大神的回复,我是生成的屏幕的log文件,出现修改的地方就会出现 [K这种情况,可能是显示的问题。我猜测是缺少驱动的原因导致上不去网,因为我这里比较着急用,所以我就直接在网上买了一个USB无线网卡,现在能上网了,不过还得再次感谢您的帮助!!!非常感谢!
回复

回到 “网卡问题以及网络和拨号”