【求助】ubuntu版本>17.04后安装vpn软件astrill后重启系统网络无法连接

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
IntuitionLee
帖子: 15
注册时间: 2018-02-24 18:56
系统: windows 10
送出感谢: 0
接收感谢: 0

【求助】ubuntu版本>17.04后安装vpn软件astrill后重启系统网络无法连接

#1

帖子 IntuitionLee » 2018-02-24 18:59

因为平时需要用vpn,一直都用了好几年的astrill很方便好用,但是唯独升级17.04以后 18.04等安装了astrill以后系统就无法联网了,无论是否启动astrill
删除astrill软件后,网络一切又恢复正常

但是在16.04的版本下可以正常使用

求助
谢谢了
poloshiao
论坛版主
帖子: 18196
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1943 次

Re: 【求助】ubuntu版本>17.04后安装vpn软件astrill后重启系统网络无法连接

#2

帖子 poloshiao » 2018-02-24 21:34

https://packages.ubuntu.com/search?suit ... chon=names
astrill 並非 Ubuntu 官方套件庫提供的套件
意思是 你需要多費一點文章 (例如 描述一下 提供你所參考的網頁)
IntuitionLee
帖子: 15
注册时间: 2018-02-24 18:56
系统: windows 10
送出感谢: 0
接收感谢: 0

Re: 【求助】ubuntu版本>17.04后安装vpn软件astrill后重启系统网络无法连接

#3

帖子 IntuitionLee » 2018-02-24 22:43

https://astrill4u.com/downloads/astrill ... inux64.deb
https://astrill4u.com/downloads/astrill ... linux64.sh

嗯不是官方的套件提供的app

在17.04以前的版本用着都很正常,一直找不到原因在17.04以后的版本安装软件到系统重启后,整个系统都无法连接到网络了"Network is unreachable"
很纠结
poloshiao
论坛版主
帖子: 18196
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1943 次

Re: 【求助】ubuntu版本>17.04后安装vpn软件astrill后重启系统网络无法连接

#4

帖子 poloshiao » 2018-02-25 11:15

在17.04以前的版本用着都很正常,一直找不到原因在17.04以后的版本安装软件到系统重启后,整个系统都无法连接到网络了"Network is unreachable"
https://wiki.ubuntu.com/ArtfulAardvark/ ... figuration
Network configuration
自 17.10 開始 網路設定方法 預設 改變了
IntuitionLee
帖子: 15
注册时间: 2018-02-24 18:56
系统: windows 10
送出感谢: 0
接收感谢: 0

Re: 【求助】ubuntu版本>17.04后安装vpn软件astrill后重启系统网络无法连接

#5

帖子 IntuitionLee » 2018-02-25 14:02

leehan@LeeH-VMware:~$ ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.2.194 netmask 255.255.255.0 broadcast 192.168.2.255
inet6 fe80::4570:d70d:6d8a:6870 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:15:14:cb txqueuelen 1000 (Ethernet)
RX packets 8812 bytes 12267303 (12.2 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1341 bytes 142561 (142.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 166 bytes 12974 (12.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 166 bytes 12974 (12.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

leehan@LeeH-VMware:~$ networkctl
WARNING: systemd-networkd is not running, output will be incomplete.

IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback n/a unmanaged
2 ens33 ether n/a unmanaged

2 links listed.
leehan@LeeH-VMware:~$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 00:0c:29:15:14:cb brd ff:ff:ff:ff:ff:ff


--------------------------------------------------------------------
安装astrill重启以后

leehan@LeeH-VMware:~$ ping 192.168.2.1
connect: Network is unreachable
leehan@LeeH-VMware:~$ ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::4570:d70d:6d8a:6870 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:15:14:cb txqueuelen 1000 (Ethernet)
RX packets 25 bytes 7625 (7.6 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 30 bytes 3452 (3.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 116 bytes 9282 (9.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 116 bytes 9282 (9.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

leehan@LeeH-VMware:~$ networkctl
WARNING: systemd-networkd is not running, output will be incomplete.

IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback n/a unmanaged
2 ens33 ether n/a unmanaged

2 links listed.
leehan@LeeH-VMware:~$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 00:0c:29:15:14:cb brd ff:ff:ff:ff:ff:ff
poloshiao
论坛版主
帖子: 18196
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1943 次

Re: 【求助】ubuntu版本>17.04后安装vpn软件astrill后重启系统网络无法连接

#6

帖子 poloshiao » 2018-02-25 17:34

請先提供一些你目前的系統情況 :

1. 把下面指令 複製 貼進終端機 執行
1-1. sudo cat /etc/os-release
1-2. echo $DESKTOP_SESSION
1-3. echo $XDG_SESSION_TYPE
1-4. uname -r
1-5. sudo cat /etc/netplan/01-netcfg.yaml
1-6. sudo systemctl status systemd-networkd.service
1-7. sudo networkctl -a status --no-pager
1-8. sudo ls -Al /run/systemd/network
1-9. sudo ls -al /etc/systemd/network
1-10. sudo ls -al /etc/resolv.conf
1-11. sudo cat /etc/resolv.conf
把結果直接 選取/複製 貼上來
方便回文直接引用你貼上來的資料
方便你閱讀
IntuitionLee
帖子: 15
注册时间: 2018-02-24 18:56
系统: windows 10
送出感谢: 0
接收感谢: 0

Re: 【求助】ubuntu版本>17.04后安装vpn软件astrill后重启系统网络无法连接

#7

帖子 IntuitionLee » 2018-02-26 11:21

这个是安装astrill以后的
leehan@LeeH-VMware:~$ ping 192.168.2.1
connect: Network is unreachable
leehan@LeeH-VMware:~$ sudo cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu Bionic Beaver (development branch)"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and- ... acy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
leehan@LeeH-VMware:~$ echo $D
$DBUS_SESSION_BUS_ADDRESS $DESKTOP_AUTOSTART_ID $DIRSTACK
$DEFAULTS_PATH $DESKTOP_SESSION $DISPLAY
leehan@LeeH-VMware:~$ sudo cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu Bionic Beaver (development branch)"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and- ... acy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
leehan@LeeH-VMware:~$ echo $DESKTOP_SESSION
ubuntu
leehan@LeeH-VMware:~$ echo $XDG_SESSION_TYPE
x11
leehan@LeeH-VMware:~$ uname -r
4.15.0-10-generic
leehan@LeeH-VMware:~$ sudo cat /etc/netplan/01-network-manager-all.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
ethernets:
ens33:
dhcp4: yes
dhcp6: yes
leehan@LeeH-VMware:~$ sudo systemctl status systemd-networkd.service
● systemd-networkd.service - Network Service
Loaded: loaded (/lib/systemd/system/systemd-networkd.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:systemd-networkd.service(8)
leehan@LeeH-VMware:~$ sudo networkctl -a status --no-pager
WARNING: systemd-networkd is not running, output will be incomplete.

● 1: lo
Link File: /lib/systemd/network/99-default.link
Network File: n/a
Type: loopback
State: n/a (unmanaged)
Address: 127.0.0.1
::1

● 2: ens33
Link File: /lib/systemd/network/99-default.link
Network File: n/a
Type: ether
State: n/a (unmanaged)
Path: pci-0000:02:01.0
Driver: e1000
Vendor: Intel Corporation
Model: 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter)
HW Address: 00:0c:29:15:14:cb (VMware, Inc.)
Address: fe80::4570:d70d:6d8a:6870
leehan@LeeH-VMware:~$ sudo ls -Al /run/systemd/network
ls: cannot access '/run/systemd/network': No such file or directory
leehan@LeeH-VMware:~$ sudo ls -Al /run/systemd/netif/
total 0
drwxr-xr-x 2 systemd-network systemd-network 40 2月 26 11:11 leases
drwxr-xr-x 2 systemd-network systemd-network 40 2月 26 11:11 links
leehan@LeeH-VMware:~$ sudo ls -Al /run/systemd/
ask-password/ generator.late/ journal/ private shutdown/ users/
ask-password-block/ inaccessible/ machines/ resolve/ system/
fsck.progress inhibit/ netif/ seats/ transient/
generator/ initctl/ notify sessions/ unit-root/
leehan@LeeH-VMware:~$ sudo ls -al /etc/systemd/netif/
ls: cannot access '/etc/systemd/netif/': No such file or directory
leehan@LeeH-VMware:~$ sudo ls -al /etc/systemd/network
total 8
drwxr-xr-x 2 root root 4096 12月 12 21:25 .
drwxr-xr-x 5 root root 4096 2月 22 15:34 ..
leehan@LeeH-VMware:~$ sudo ls -Al /run/systemd/netif
total 0
drwxr-xr-x 2 systemd-network systemd-network 40 2月 26 11:11 leases
drwxr-xr-x 2 systemd-network systemd-network 40 2月 26 11:11 links
leehan@LeeH-VMware:~$ sudo ls -al /etc/resolv.conf
lrwxrwxrwx 1 root root 39 2月 22 22:29 /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf
leehan@LeeH-VMware:~$ sudo cat /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 127.0.0.53
IntuitionLee
帖子: 15
注册时间: 2018-02-24 18:56
系统: windows 10
送出感谢: 0
接收感谢: 0

Re: 【求助】ubuntu版本>17.04后安装vpn软件astrill后重启系统网络无法连接

#8

帖子 IntuitionLee » 2018-02-26 11:22

leehan@LeeH-VMware:~$ sudo dpkg --remove astrill
(Reading database ... 187421 files and directories currently installed.)
Removing astrill (3.2.0-2068) ...
Gtk-Message: Failed to load module "canberra-gtk-module"
Terminated
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Processing triggers for mime-support (3.60ubuntu1) ...

remove以后网络就自动恢复正常可以连接了
安装后只要不重启network服务可以正常使用astrill,但是一重启network服务就无法连接诶网络了
poloshiao
论坛版主
帖子: 18196
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1943 次

Re: 【求助】ubuntu版本>17.04后安装vpn软件astrill后重启系统网络无法连接

#9

帖子 poloshiao » 2018-02-26 11:56

安装后只要不重启network服务可以正常使用astrill,但是一重启network服务就无法连接诶网络了
1. 請提供你重啟的完整指令及終端機回應
sudo dpkg --remove astrill
(Reading database ... 187421 files and directories currently installed.)
Removing astrill (3.2.0-2068) ...
Gtk-Message: Failed to load module "canberra-gtk-module"
Terminated
2. 參閱
2-1. https://communities.vmware.com/thread/523835
特別是 #14
2-2. https://forums.fedoraforum.org/showthre ... ccessfully
特別是 #8
sudo cat /etc/netplan/01-network-manager-all.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
ethernets:
ens33:
dhcp4: yes
dhcp6: yes
3. Network Manager 管理網路裝置
sudo networkctl -a status --no-pager
WARNING: systemd-networkd is not running, output will be incomplete.
sudo systemctl status systemd-networkd.service
● systemd-networkd.service - Network Service
Loaded: loaded (/lib/systemd/system/systemd-networkd.service; disabled; vendor preset: enabled)
Active: inactive (dead)
4. systemd-networkd.service 沒有成功啟動
4-1. 試試
sudo systemctl start systemd-networkd.service

sudo systemctl restart systemd-networkd.service
4-2. 然後再
sudo systemctl status systemd-networkd.service
看看 有何不同
这个是安装 astrill 以后的
remove以后网络就自动恢复正常可以连接了
安装后只要不重启network服务可以正常使用astrill,但是一重启network服务就无法连接诶网络了
5. 有對照組最好
5-1. 安装 astrill 以前
5-2. 安装 astrill 並重启 network 服务以后
所有的指令都分別執行一次 看看 什麼地方不同
5-3. 把不同的兩個對照組貼上來
IntuitionLee
帖子: 15
注册时间: 2018-02-24 18:56
系统: windows 10
送出感谢: 0
接收感谢: 0

Re: 【求助】ubuntu版本>17.04后安装vpn软件astrill后重启系统网络无法连接

#10

帖子 IntuitionLee » 2018-02-26 12:38

leehan@LeeH-VMware:~$ sudo networkctl -a status --no-pager
[sudo] password for leehan:
WARNING: systemd-networkd is not running, output will be incomplete.

● 1: lo
Link File: /lib/systemd/network/99-default.link
Network File: n/a
Type: loopback
State: n/a (unmanaged)
Address: 127.0.0.1
::1

● 2: ens33
Link File: /lib/systemd/network/99-default.link
Network File: n/a
Type: ether
State: n/a (unmanaged)
Path: pci-0000:02:01.0
Driver: e1000
Vendor: Intel Corporation
Model: 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter)
HW Address: 00:0c:29:15:14:cb (VMware, Inc.)
Address: 192.168.2.194
fe80::20c:29ff:fe15:14cb
Gateway: 192.168.2.1 (ASUSTek COMPUTER INC.)
leehan@LeeH-VMware:~$ sudo gdebi ~/Desktop/winshare/astrill-setup-linux64.
astrill-setup-linux64.deb astrill-setup-linux64.sh
leehan@LeeH-VMware:~$ sudo gdebi ~/Desktop/winshare/astrill-setup-linux64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading state information... Done

Astrill VPN client software
Astrill changes your IP address and encrypts your Internet connection to
protect your privacy and identity on the internet and keeps you safe
from hackers and eavesdropping
.
Before using Astrill software, you need to accept Astrill Terms of Service
which are published here https://www.astrill.com/tos.php
.
For more information about Astrill, please visit https://www.astrill.com
Do you want to install the software package? [y/N]:y
Selecting previously unselected package astrill.
(Reading database ... 193953 files and directories currently installed.)
Preparing to unpack .../astrill-setup-linux64.deb ...
Unpacking astrill (3.2.0-2068) ...
Setting up astrill (3.2.0-2068) ...
Testing '/usr/local/Astrill/liblsp64.so':PASSED
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Processing triggers for mime-support (3.60ubuntu1) ...
leehan@LeeH-VMware:~$ sudo networkctl -a status --no-pager
WARNING: systemd-networkd is not running, output will be incomplete.

● 1: lo
Link File: /lib/systemd/network/99-default.link
Network File: n/a
Type: loopback
State: n/a (unmanaged)
Address: 127.0.0.1
::1

● 2: ens33
Link File: /lib/systemd/network/99-default.link
Network File: n/a
Type: ether
State: n/a (unmanaged)
Path: pci-0000:02:01.0
Driver: e1000
Vendor: Intel Corporation
Model: 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter)
HW Address: 00:0c:29:15:14:cb (VMware, Inc.)
Address: 192.168.2.194
fe80::20c:29ff:fe15:14cb
Gateway: 192.168.2.1 (ASUSTek COMPUTER INC.)
leehan@LeeH-VMware:~$ sudo netplan apply
Device 'ens33' successfully disconnected.
leehan@LeeH-VMware:~$ sudo networkctl -a status --no-pager
WARNING: systemd-networkd is not running, output will be incomplete.

● 1: lo
Link File: /lib/systemd/network/99-default.link
Network File: n/a
Type: loopback
State: n/a (unmanaged)
Address: 127.0.0.1
::1

● 2: ens33
Link File: /lib/systemd/network/99-default.link
Network File: n/a
Type: ether
State: n/a (unmanaged)
Path: pci-0000:02:01.0
Driver: e1000
Vendor: Intel Corporation
Model: 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter)
HW Address: 00:0c:29:15:14:cb (VMware, Inc.)
Address: fe80::20c:29ff:fe15:14cb
leehan@LeeH-VMware:~$ ping 192.168.2.1
connect: Network is unreachable
leehan@LeeH-VMware:~$ sudo dpkg --remove astrill
(Reading database ... 193972 files and directories currently installed.)
Removing astrill (3.2.0-2068) ...
Gtk-Message: Failed to load module "canberra-gtk-module"
Terminated
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Processing triggers for mime-support (3.60ubuntu1) ...
leehan@LeeH-VMware:~$ sudo netplan apply
Device 'ens33' successfully disconnected.
leehan@LeeH-VMware:~$ sudo networkctl -a status --no-pager
WARNING: systemd-networkd is not running, output will be incomplete.

● 1: lo
Link File: /lib/systemd/network/99-default.link
Network File: n/a
Type: loopback
State: n/a (unmanaged)
Address: 127.0.0.1
::1

● 2: ens33
Link File: /lib/systemd/network/99-default.link
Network File: n/a
Type: ether
State: n/a (unmanaged)
Path: pci-0000:02:01.0
Driver: e1000
Vendor: Intel Corporation
Model: 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter)
HW Address: 00:0c:29:15:14:cb (VMware, Inc.)
Address: 192.168.2.194
fe80::20c:29ff:fe15:14cb
Gateway: 192.168.2.1 (ASUSTek COMPUTER INC.)
leehan@LeeH-VMware:~$ ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=0.526 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=0.331 ms
64 bytes from 192.168.2.1: icmp_seq=3 ttl=64 time=0.562 ms
64 bytes from 192.168.2.1: icmp_seq=4 ttl=64 time=0.429 ms
^C
--- 192.168.2.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3074ms
rtt min/avg/max/mdev = 0.331/0.462/0.562/0.089 ms
IntuitionLee
帖子: 15
注册时间: 2018-02-24 18:56
系统: windows 10
送出感谢: 0
接收感谢: 0

Re: 【求助】ubuntu版本>17.04后安装vpn软件astrill后重启系统网络无法连接

#11

帖子 IntuitionLee » 2018-02-26 12:39

应该和vmware没有什么关系,因为不用虚拟机,直接新装ubuntu>17.04的版本在电脑上也是一样的结果,但是16.04的版本却一切都正常
IntuitionLee
帖子: 15
注册时间: 2018-02-24 18:56
系统: windows 10
送出感谢: 0
接收感谢: 0

Re: 【求助】ubuntu版本>17.04后安装vpn软件astrill后重启系统网络无法连接

#12

帖子 IntuitionLee » 2018-02-26 12:45

安装以前:
leehan@LeeH-VMware:~$ sudo systemctl status systemd-networkd
● systemd-networkd.service - Network Service
Loaded: loaded (/lib/systemd/system/systemd-networkd.service; disabled; vendor preset: enabled)
Active: active (running) since Mon 2018-02-26 12:42:24 CST; 17s ago
Docs: man:systemd-networkd.service(8)
Main PID: 2544 (systemd-network)
Status: "Processing requests..."
Tasks: 1 (limit: 19150)
CGroup: /system.slice/systemd-networkd.service
└─2544 /lib/systemd/systemd-networkd

2月 26 12:42:24 LeeH-VMware systemd[1]: Starting Network Service...
2月 26 12:42:24 LeeH-VMware systemd-networkd[2544]: ens33: Gained IPv6LL
2月 26 12:42:24 LeeH-VMware systemd-networkd[2544]: Enumeration completed
2月 26 12:42:24 LeeH-VMware systemd[1]: Started Network Service.
leehan@LeeH-VMware:~$ ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=0.387 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=0.536 ms
64 bytes from 192.168.2.1: icmp_seq=3 ttl=64 time=0.451 ms
^C
--- 192.168.2.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2034ms
rtt min/avg/max/mdev = 0.387/0.458/0.536/0.061 ms
-------------------------------------------------------------------------
安装以后:

leehan@LeeH-VMware:~$ sudo gdebi ~/Desktop/winshare/astrill-setup-linux64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading state information... Done

Astrill VPN client software
Astrill changes your IP address and encrypts your Internet connection to
protect your privacy and identity on the internet and keeps you safe
from hackers and eavesdropping
.
Before using Astrill software, you need to accept Astrill Terms of Service
which are published here https://www.astrill.com/tos.php
.
For more information about Astrill, please visit https://www.astrill.com
Do you want to install the software package? [y/N]:y
Selecting previously unselected package astrill.
(Reading database ... 193953 files and directories currently installed.)
Preparing to unpack .../astrill-setup-linux64.deb ...
Unpacking astrill (3.2.0-2068) ...
Setting up astrill (3.2.0-2068) ...
Testing '/usr/local/Astrill/liblsp64.so':PASSED
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Processing triggers for mime-support (3.60ubuntu1) ...
leehan@LeeH-VMware:~$ ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=0.492 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=0.580 ms
64 bytes from 192.168.2.1: icmp_seq=3 ttl=64 time=0.502 ms
^C
--- 192.168.2.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2043ms
rtt min/avg/max/mdev = 0.492/0.524/0.580/0.047 ms
leehan@LeeH-VMware:~$ sudo systemctl status systemd-networkd
● systemd-networkd.service - Network Service
Loaded: loaded (/lib/systemd/system/systemd-networkd.service; disabled; vendor preset: enabled)
Active: active (running) since Mon 2018-02-26 12:42:24 CST; 1min 2s ago
Docs: man:systemd-networkd.service(8)
Main PID: 2544 (systemd-network)
Status: "Processing requests..."
Tasks: 1 (limit: 19150)
CGroup: /system.slice/systemd-networkd.service
└─2544 /lib/systemd/systemd-networkd

2月 26 12:42:24 LeeH-VMware systemd[1]: Starting Network Service...
2月 26 12:42:24 LeeH-VMware systemd-networkd[2544]: ens33: Gained IPv6LL
2月 26 12:42:24 LeeH-VMware systemd-networkd[2544]: Enumeration completed
2月 26 12:42:24 LeeH-VMware systemd[1]: Started Network Service.
leehan@LeeH-VMware:~$ sudo systemctl restart systemd-networkd
leehan@LeeH-VMware:~$ ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=0.325 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=0.395 ms
64 bytes from 192.168.2.1: icmp_seq=3 ttl=64 time=0.517 ms
^C
--- 192.168.2.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2036ms
rtt min/avg/max/mdev = 0.325/0.412/0.517/0.081 ms
leehan@LeeH-VMware:~$ sudo netplan apply
Device 'ens33' successfully disconnected.
leehan@LeeH-VMware:~$ sudo systemctl status systemd-networkd
● systemd-networkd.service - Network Service
Loaded: loaded (/lib/systemd/system/systemd-networkd.service; disabled; vendor preset: enabled)
Active: active (running) since Mon 2018-02-26 12:43:30 CST; 40s ago
Docs: man:systemd-networkd.service(8)
Main PID: 2618 (systemd-network)
Status: "Processing requests..."
Tasks: 1 (limit: 19150)
CGroup: /system.slice/systemd-networkd.service
└─2618 /lib/systemd/systemd-networkd

2月 26 12:43:30 LeeH-VMware systemd[1]: Starting Network Service...
2月 26 12:43:30 LeeH-VMware systemd-networkd[2618]: ens33: Gained IPv6LL
2月 26 12:43:30 LeeH-VMware systemd-networkd[2618]: Enumeration completed
2月 26 12:43:30 LeeH-VMware systemd[1]: Started Network Service.
2月 26 12:43:57 LeeH-VMware systemd-networkd[2618]: ens33: Gained IPv6LL
leehan@LeeH-VMware:~$ sudo systemctl restart systemd-networkd
leehan@LeeH-VMware:~$ sudo systemctl status systemd-networkd
● systemd-networkd.service - Network Service
Loaded: loaded (/lib/systemd/system/systemd-networkd.service; disabled; vendor preset: enabled)
Active: active (running) since Mon 2018-02-26 12:44:20 CST; 7s ago
Docs: man:systemd-networkd.service(8)
Main PID: 2695 (systemd-network)
Status: "Processing requests..."
Tasks: 1 (limit: 19150)
CGroup: /system.slice/systemd-networkd.service
└─2695 /lib/systemd/systemd-networkd

2月 26 12:44:20 LeeH-VMware systemd[1]: Starting Network Service...
2月 26 12:44:20 LeeH-VMware systemd-networkd[2695]: ens33: Gained IPv6LL
2月 26 12:44:20 LeeH-VMware systemd-networkd[2695]: Enumeration completed
2月 26 12:44:20 LeeH-VMware systemd[1]: Started Network Service.
leehan@LeeH-VMware:~$ ping 192.168.2.1
connect: Network is unreachable
poloshiao
论坛版主
帖子: 18196
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1943 次

Re: 【求助】ubuntu版本>17.04后安装vpn软件astrill后重启系统网络无法连接

#13

帖子 poloshiao » 2018-02-26 12:47

应该和vmware没有什么关系,因为不用虚拟机
1. 並沒有暗示跟 vmware 虛擬機有關
1-1. 只是剛好該篇文章 可能安裝在 vmware 虛擬機
HW Address: 00:0c:29:15:14:cb (VMware, Inc.)
2. 這個 VMware 是什麼意思 ?
IntuitionLee
帖子: 15
注册时间: 2018-02-24 18:56
系统: windows 10
送出感谢: 0
接收感谢: 0

Re: 【求助】ubuntu版本>17.04后安装vpn软件astrill后重启系统网络无法连接

#14

帖子 IntuitionLee » 2018-02-26 12:48

leehan@LeeH-VMware:~$ ping 192.168.2.1
connect: Network is unreachable
leehan@LeeH-VMware:~$ sudo dpkg --remove astrill
(Reading database ... 193972 files and directories currently installed.)
Removing astrill (3.2.0-2068) ...
Gtk-Message: Failed to load module "canberra-gtk-module"
Terminated
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Processing triggers for mime-support (3.60ubuntu1) ...
leehan@LeeH-VMware:~$ ping 192.168.2.1
connect: Network is unreachable
leehan@LeeH-VMware:~$ sudo systemctl restart systemd-networkd
leehan@LeeH-VMware:~$ ping 192.168.2.1
connect: Network is unreachable
leehan@LeeH-VMware:~$ sudo netplan apply
Device 'ens33' successfully disconnected.
leehan@LeeH-VMware:~$ ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=0.826 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=0.579 ms
^C
--- 192.168.2.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1010ms
rtt min/avg/max/mdev = 0.579/0.702/0.826/0.126 ms
IntuitionLee
帖子: 15
注册时间: 2018-02-24 18:56
系统: windows 10
送出感谢: 0
接收感谢: 0

Re: 【求助】ubuntu版本>17.04后安装vpn软件astrill后重启系统网络无法连接

#15

帖子 IntuitionLee » 2018-02-26 12:51

leehan@LeeH-VMware:~$ sudo networkctl -a status --no-pager
● 1: lo
Link File: /lib/systemd/network/99-default.link
Network File: n/a
Type: loopback
State: carrier (unmanaged)
Address: 127.0.0.1
::1

● 2: ens33
Link File: /lib/systemd/network/99-default.link
Network File: n/a
Type: ether
State: routable (unmanaged)
Path: pci-0000:02:01.0
Driver: e1000
Vendor: Intel Corporation
Model: 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter)
HW Address: 00:0c:29:15:14:cb (VMware, Inc.)
Address: 192.168.2.194
fe80::20c:29ff:fe15:14cb
Gateway: 192.168.2.1 (ASUSTek COMPUTER INC.)
leehan@LeeH-VMware:~$ sudo gdebi ~/Desktop/winshare/astrill-setup-linux64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading state information... Done

Astrill VPN client software
Astrill changes your IP address and encrypts your Internet connection to
protect your privacy and identity on the internet and keeps you safe
from hackers and eavesdropping
.
Before using Astrill software, you need to accept Astrill Terms of Service
which are published here https://www.astrill.com/tos.php
.
For more information about Astrill, please visit https://www.astrill.com
Do you want to install the software package? [y/N]:y
Selecting previously unselected package astrill.
(Reading database ... 193953 files and directories currently installed.)
Preparing to unpack .../astrill-setup-linux64.deb ...
Unpacking astrill (3.2.0-2068) ...
Setting up astrill (3.2.0-2068) ...
Testing '/usr/local/Astrill/liblsp64.so':PASSED
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Processing triggers for mime-support (3.60ubuntu1) ...
leehan@LeeH-VMware:~$ sudo netplan apply
Device 'ens33' successfully disconnected.
leehan@LeeH-VMware:~$ sudo systemctl restart systemd-networkd
leehan@LeeH-VMware:~$ ping 192.168.2.1
connect: Network is unreachable
leehan@LeeH-VMware:~$ sudo networkctl -a status --no-pager
● 1: lo
Link File: /lib/systemd/network/99-default.link
Network File: n/a
Type: loopback
State: carrier (unmanaged)
Address: 127.0.0.1
::1

● 2: ens33
Link File: /lib/systemd/network/99-default.link
Network File: n/a
Type: ether
State: degraded (unmanaged)
Path: pci-0000:02:01.0
Driver: e1000
Vendor: Intel Corporation
Model: 82545EM Gigabit Ethernet Controller (Copper) (PRO/1000 MT Single Port Adapter)
HW Address: 00:0c:29:15:14:cb (VMware, Inc.)
Address: fe80::20c:29ff:fe15:14cb
回复

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