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

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

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

#16

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

poloshiao 写了:
HW Address: 00:0c:29:15:14:cb (VMware, Inc.)
2. 這個 VMware 是什麼意思 ?
这个我不是很清楚呢,vmware我用选择的是桥接方式
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

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

#17

帖子 poloshiao » 2018-02-26 13:30

安裝以前
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
安裝 astrill
sudo gdebi ~/Desktop/winshare/astrill-setup-linux64.deb
1. 注意紅字部份
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
1-1. 安裝以後
改變了你的 IP 並 加密你的網路連接
安装以后:
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
sudo netplan apply
Device 'ens33' successfully disconnected.
2. ens33 斷線了

3. 建議
在 3 個不同步驟 (3 個不同對照組)
A. 安装 astrill 以前
B. 安装 astrill 並重启 systemd-networkd.service 以前
C. 安装 astrill 並重启 systemd-networkd.service 以后
執行下述指令
3-1. sudo ip addr show ens33
3-2. sudo ip route show dev ens33
3-3. sudo networkctl status ens33
把結果分別註明貼上來
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

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

#18

帖子 poloshiao » 2018-02-26 13:37

https://www.astrill.com/
VPN天空上闪耀的明星。
技术领先的VPN服务
不知會受此影響否
https://www.reddit.com/r/PUBATTLEGROUND ... _starting/
China to block off all VPN access starting February 2018
2018/02 開始 將阻擋所有 VPN
IntuitionLee
帖子: 15
注册时间: 2018-02-24 18:56
系统: windows 10

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

#19

帖子 IntuitionLee » 2018-02-26 14:42

代码: 全选

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.427 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=0.540 ms
64 bytes from 192.168.2.1: icmp_seq=3 ttl=64 time=0.414 ms
^C
--- 192.168.2.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2053ms
rtt min/avg/max/mdev = 0.414/0.460/0.540/0.059 ms
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.369 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=0.553 ms
^C
--- 192.168.2.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1031ms
rtt min/avg/max/mdev = 0.369/0.461/0.553/0.092 ms
leehan@LeeH-VMware:~$ sudo ip addr show ens33
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:15:14:cb brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.194/24 brd 192.168.2.255 scope global dynamic ens33
       valid_lft 86388sec preferred_lft 86388sec
    inet6 fe80::20c:29ff:fe15:14cb/64 scope link 
       valid_lft forever preferred_lft forever
leehan@LeeH-VMware:~$ sudo ip route show ens33
Error: any valid prefix is expected rather than "ens33".
leehan@LeeH-VMware:~$ sudo ip route show ens33
Error: any valid prefix is expected rather than "ens33".
leehan@LeeH-VMware:~$ sudo networkctl status ens33
WARNING: systemd-networkd is not running, output will be incomplete.

● 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.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.437 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=0.550 ms
64 bytes from 192.168.2.1: icmp_seq=3 ttl=64 time=0.382 ms
^C
--- 192.168.2.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2027ms
rtt min/avg/max/mdev = 0.382/0.456/0.550/0.072 ms
leehan@LeeH-VMware:~$ sudo netplan apply
Device 'ens33' successfully disconnected.
leehan@LeeH-VMware:~$ ping 192.168.2.1
connect: Network is unreachable
leehan@LeeH-VMware:~$ sudo ip addr show ens33
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:15:14:cb brd ff:ff:ff:ff:ff:ff
    inet6 fe80::20c:29ff:fe15:14cb/64 scope link 
       valid_lft forever preferred_lft forever
leehan@LeeH-VMware:~$ sudo ip route show ens33
Error: any valid prefix is expected rather than "ens33".
leehan@LeeH-VMware:~$ sudo networkctl status ens33
WARNING: systemd-networkd is not running, output will be incomplete.

● 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:~$ sudo systemctl restart systemd-networkd
leehan@LeeH-VMware:~$ sudo networkctl status ens33
● 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
leehan@LeeH-VMware:~$ sudo ip addr show ens33
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:15:14:cb brd ff:ff:ff:ff:ff:ff
    inet6 fe80::20c:29ff:fe15:14cb/64 scope link 
       valid_lft forever preferred_lft forever
leehan@LeeH-VMware:~$ sudo ip route show ens33
Error: any valid prefix is expected rather than "ens33".
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:~$ 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.370 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=0.499 ms
64 bytes from 192.168.2.1: icmp_seq=3 ttl=64 time=0.538 ms
^C
--- 192.168.2.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2044ms
rtt min/avg/max/mdev = 0.370/0.469/0.538/0.071 ms
leehan@LeeH-VMware:~$ sudo ip addr show ens33
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:15:14:cb brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.194/24 brd 192.168.2.255 scope global dynamic ens33
       valid_lft 86391sec preferred_lft 86391sec
    inet6 fe80::20c:29ff:fe15:14cb/64 scope link 
       valid_lft forever preferred_lft forever
leehan@LeeH-VMware:~$ sudo ip route show ens33
Error: any valid prefix is expected rather than "ens33".
leehan@LeeH-VMware:~$ sudo networkctl status ens33
● 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.)
这个是安装前、安装后、删除后的过程对比

我等一下再发一个ubuntu 16.04下面的
win ubuntu 16.04(10) gentoo ios android等下面都正常
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

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

#20

帖子 poloshiao » 2018-02-26 14:51

leehan@LeeH-VMware:~$ sudo ip route show ens33
Error: any valid prefix is expected rather than "ens33".
1. 抱歉 遺漏了 dev
sudo ip route show dev ens33
sudo ip route show ens33
2. 這個指令也可以加上 dev
sudo ip addr show dev ens33
我等一下再发一个ubuntu 16.04下面的
3. Ubuntu 16.04 指令不同
你可以使用你原來熟悉的指令即可
IntuitionLee
帖子: 15
注册时间: 2018-02-24 18:56
系统: windows 10

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

#21

帖子 IntuitionLee » 2018-02-26 15:25

代码: 全选

leehan@Li-ubuntu16:~$ 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.376 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=0.431 ms
^C
--- 192.168.2.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1026ms
rtt min/avg/max/mdev = 0.376/0.403/0.431/0.034 ms
leehan@Li-ubuntu16:~$ sudo ip addr show dev ens33
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:0c:29:c2:f0:12 brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.184/24 brd 192.168.2.255 scope global dynamic ens33
       valid_lft 86229sec preferred_lft 86229sec
    inet6 fe80::eb6b:ee94:fc42:cd3b/64 scope link 
       valid_lft forever preferred_lft forever
leehan@Li-ubuntu16:~$ sudo ip route show dev ens33
default via 192.168.2.1  proto static  metric 100 
169.254.0.0/16  scope link  metric 1000 
192.168.2.0/24  proto kernel  scope link  src 192.168.2.184  metric 100 
leehan@Li-ubuntu16:~$ sudo networkctl status ens33
WARNING: systemd-networkd is not running, output will be incomplete.

● 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:c2:f0:12 (VMware, Inc.)
         Address: 192.168.2.184
                  fe80::eb6b:ee94:fc42:cd3b
         Gateway: 192.168.2.1 (ASUSTek COMPUTER INC.)
leehan@Li-ubuntu16:~$ sudo systemctl restart systemd-networkd
leehan@Li-ubuntu16:~$ sudo networkctl status ens33
● 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:c2:f0:12 (VMware, Inc.)
         Address: 192.168.2.184
                  fe80::eb6b:ee94:fc42:cd3b
         Gateway: 192.168.2.1 (ASUSTek COMPUTER INC.)
leehan@Li-ubuntu16:~$ sudo gdebi ~/Downloads/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 ... 217530 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-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
leehan@Li-ubuntu16:~$ sudo /etc/init.d/networking restart
[ ok ] Restarting networking (via systemctl): networking.service.
leehan@Li-ubuntu16:~$ sudo systemctl restart systemd-networkd
leehan@Li-ubuntu16:~$ sudo ip addr show dev ens33
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:0c:29:c2:f0:12 brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.184/24 brd 192.168.2.255 scope global dynamic ens33
       valid_lft 86133sec preferred_lft 86133sec
    inet6 fe80::eb6b:ee94:fc42:cd3b/64 scope link 
       valid_lft forever preferred_lft forever
leehan@Li-ubuntu16:~$ sudo ip route show dev ens33
default via 192.168.2.1  proto static  metric 100 
169.254.0.0/16  scope link  metric 1000 
192.168.2.0/24  proto kernel  scope link  src 192.168.2.184  metric 100 
leehan@Li-ubuntu16:~$ sudo networkctl status ens33
● 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:c2:f0:12 (VMware, Inc.)
         Address: 192.168.2.184
                  fe80::eb6b:ee94:fc42:cd3b
         Gateway: 192.168.2.1 (ASUSTek COMPUTER INC.)
leehan@Li-ubuntu16:~$ 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.329 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=0.526 ms
64 bytes from 192.168.2.1: icmp_seq=3 ttl=64 time=0.509 ms
^C
--- 192.168.2.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2030ms
rtt min/avg/max/mdev = 0.329/0.454/0.526/0.092 ms
这个是在ubuntu 16.04下面安装前和安装后一切正常
IntuitionLee
帖子: 15
注册时间: 2018-02-24 18:56
系统: windows 10

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

#22

帖子 IntuitionLee » 2018-02-26 15:29

代码: 全选

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.381 ms
^C
--- 192.168.2.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.381/0.381/0.381/0.000 ms
leehan@LeeH-VMware:~$ sudo ip addr show dev ens33
[sudo] password for leehan: 
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:15:14:cb brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.194/24 brd 192.168.2.255 scope global dynamic ens33
       valid_lft 86368sec preferred_lft 86368sec
    inet6 fe80::20c:29ff:fe15:14cb/64 scope link 
       valid_lft forever preferred_lft forever
leehan@LeeH-VMware:~$ sudo ip route show dev ens33
default via 192.168.2.1 proto static metric 100 
169.254.0.0/16 scope link metric 1000 
192.168.2.0/24 proto kernel scope link src 192.168.2.194 metric 100 
leehan@LeeH-VMware:~$ sudo networkctl status ens33
WARNING: systemd-networkd is not running, output will be incomplete.

● 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 systemctl restart systemd-networkd
leehan@LeeH-VMware:~$ sudo networkctl status ens33
● 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:~$ 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.397 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=0.489 ms
^C
--- 192.168.2.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1022ms
rtt min/avg/max/mdev = 0.397/0.443/0.489/0.046 ms
leehan@LeeH-VMware:~$ sudo netplan apply
Device 'ens33' successfully disconnected.
leehan@LeeH-VMware:~$ sudo systemctl restart systemd-networkd
leehan@LeeH-VMware:~$ sudo ip addr show dev ens33
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:15:14:cb brd ff:ff:ff:ff:ff:ff
    inet6 fe80::20c:29ff:fe15:14cb/64 scope link 
       valid_lft forever preferred_lft forever
leehan@LeeH-VMware:~$ sudo ip route show dev ens33
leehan@LeeH-VMware:~$ sudo networkctl status ens33
● 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
leehan@LeeH-VMware:~$ ping 192.168.2.1
connect: Network is unreachable
这个是ubunt 18下面的不正常
IntuitionLee
帖子: 15
注册时间: 2018-02-24 18:56
系统: windows 10

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

#23

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

额问题已经解决了
联系了astrill客服,他给我了一个新版本的连接
https://astrill-china.com/newapp/astril ... inux64.deb

代码: 全选

leehan@LeeH-VMware:~/Downloads$ sudo gdebi astrill-setup-linux64.deb 
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done
Requires the installation of the following packages: gtk2-engines-pixbuf 

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
Get:1 http://mirrors.aliyun.com/ubuntu bionic/universe amd64 gtk2-engines-pixbuf amd64 2.24.31-4ubuntu1 [22.5 kB]             
Fetched 22.5 kB in 0s (0 B/s)                                                                                                 
Selecting previously unselected package gtk2-engines-pixbuf:amd64.
(Reading database ... 193953 files and directories currently installed.)
Preparing to unpack .../gtk2-engines-pixbuf_2.24.31-4ubuntu1_amd64.deb ...
Unpacking gtk2-engines-pixbuf:amd64 (2.24.31-4ubuntu1) ...
Setting up gtk2-engines-pixbuf:amd64 (2.24.31-4ubuntu1) ...
Selecting previously unselected package astrill.
(Reading database ... 193960 files and directories currently installed.)
Preparing to unpack astrill-setup-linux64.deb ...
Unpacking astrill (3.3.0-2099) ...
Setting up astrill (3.3.0-2099) ...
Testing '/usr/local/Astrill/liblsp64.so':PASSED
Created symlink /etc/systemd/system/suspend.target.wants/astrill-reconnect.service → /etc/systemd/system/astrill-reconnect.service.
Created symlink /etc/systemd/system/hibernate.target.wants/astrill-reconnect.service → /etc/systemd/system/astrill-reconnect.service.
Created symlink /etc/systemd/system/hybrid-sleep.target.wants/astrill-reconnect.service → /etc/systemd/system/astrill-reconnect.service.
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:~/Downloads$ sudo netplan apply
Device 'ens33' successfully disconnected.
leehan@LeeH-VMware:~/Downloads$ 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.461 ms
64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=0.531 ms
^C
--- 192.168.2.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1010ms
rtt min/avg/max/mdev = 0.461/0.496/0.531/0.035 ms
安装这个在17 18的版本下就正常了

谢谢poloshiao您的耐心回复与帮助
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

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

#24

帖子 poloshiao » 2018-02-26 20:26

恭喜你
回复