naszar
Нет у вас никакого шлюза 10.172.119.254
В документе который провайдер мне выдал написано что шлюз именно такой. Выходит обманули?
Ввожу команду: systemctl stop [email protected]
Ввожу команду: ifconfig enp2s0 10.172.119.13/24
Ввожу команду: ifconfig enp2s0 up
Ввожу команду: route add -net 10.172.119.0 dev enp2s0
SIOCADDRT: Invalid argument
Ввожу команду: nano /etc/resolv.conf
nameserver 10.172.119.1
Ввожу команду: ping -c2 10.172.119.254
PING 10.172.119.254 (10.172.119.254) 56(84) bytes of data.
64 bytes from 10.172.119.254: icmp_seq=1 ttl=64 time=0.558 ms
64 bytes from 10.172.119.254: icmp_seq=2 ttl=64 time=0.274 ms

--- 10.172.119.254 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.274/0.416/0.558/0.142 ms
Ввожу команду: ping -c2 10.172.119.1
PING 10.172.119.1 (10.172.119.1) 56(84) bytes of data.
64 bytes from 10.172.119.1: icmp_seq=1 ttl=64 time=0.622 ms
64 bytes from 10.172.119.1: icmp_seq=2 ttl=64 time=0.370 ms

--- 10.172.119.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.370/0.496/0.622/0.126 ms
Ввожу команду: pptpsetup --create middinna --server 10.172.119.1 --username Логин --password Авроль
Ввожу команду: pppd call middinna nodetach debug
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/pts/0

И попробовал ping -c 2 ya.ru - не прошло.
naszar
Жду данных из рабочей системы.
ifconfig

route
Таблица маршутизации ядра протокола IP
ping -c2 vpn.mediana.net.ua
PING vpn.mediana.net.ua (10.171.221.1) 56(84) bytes of data.

--- vpn.mediana.net.ua ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1006ms
ping -c 2 10.172.119.1
PING 10.172.119.1 (10.172.119.1) 56(84) bytes of data.
64 bytes from 10.172.119.1: icmp_seq=1 ttl=64 time=0.395 ms
64 bytes from 10.172.119.1: icmp_seq=2 ttl=64 time=0.356 ms

--- 10.172.119.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.356/0.375/0.395/0.027 ms
ip link

ip addr

ip route


naszar
Это будет наш новый /mnt/ubuntu/<путь_до_pptp_up>/pptp_up
Ввожу команду: systemctl stop [email protected]
Ввожу команду: route del default
SIOCDELRT: No such process
Ввожу команду: route del -net 192.168.1.0/24
SIOCDELRT: No such process
Ввожу команду: ifconfig enp2s0 down
Ввожу команду: ifconfig enp2s0 10.172.119.13/24
Ввожу команду: ifconfig enp2s0 up
Ввожу команду: route add -host 10.172.119.1 gw 10.172.119.254 dev enp2s0
Ввожу команду: nano /etc/resolv.conf
nameserver 10.172.119.1
Ввожу команду: ping -c2 10.172.119.254
PING 10.172.119.254 (10.172.119.254) 56(84) bytes of data.
From 10.172.119.13 icmp_seq=1 Destination Host Unreachable
From 10.172.119.13 icmp_seq=2 Destination Host Unreachable

--- 10.172.119.254 ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 999ms
pipe 2
Ввожу команду: ping -c2 10.172.119.1
PING 10.172.119.1 (10.172.119.1) 56(84) bytes of data.

--- 10.172.119.1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms
Ввожу команду: if [ ! -f /usr/bin/strings ]; then
Ввожу команду:     echo 'echo i love mppe' > /usr/bin/strings
Ввожу команду:     chmod +x /usr/bin/strings
Ввожу команду: fi
Ввожу команду: pptpsetup --create middinna --server 10.172.119.1 --username Логин --password Авроль
Ввожу команду: pppd call middinna nodetach debug
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/pts/0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x46daf298> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x46daf298> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x46daf298> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x46daf298> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x46daf298> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x46daf298> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x46daf298> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x46daf298> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x46daf298> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x46daf298> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.
Modem hangup
Waiting for 1 child processes...
  script pptp 10.172.119.1 --nolaunchpppd, pid 698
sending SIGTERM to process 698
Ввожу команду: systemctl restart [email protected]
Ввожу команду: ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    inet 127.0.0.1/8 scope host lo
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
Ввожу команду: ip route
default via 192.168.1.1 dev enp2s0  metric 202
192.168.1.0/24 dev enp2s0  proto kernel  scope link  src 192.168.1.104  metric 202
Ввожу команду: ping -c2 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.

--- 8.8.8.8 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1000ms

Ввожу команду: ping6 -c2 2800:3f0:4001:805::1014
PING 2800:3f0:4001:805::1014(2800:3f0:4001:805::1014) 56 data bytes
64 bytes from 2800:3f0:4001:805::1014: icmp_seq=1 ttl=54 time=332 ms
64 bytes from 2800:3f0:4001:805::1014: icmp_seq=2 ttl=54 time=320 ms

--- 2800:3f0:4001:805::1014 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 320.528/326.485/332.442/5.957 ms
Ввожу команду: tracepath 77.88.21.3
 1:  archiso                                               0.181ms pmtu 1500
 1:  no reply
 2:  no reply
 3:  no reply
 4:  no reply
 5:  no reply
 6:  no reply
 7:  no reply
 8:  no reply
 9:  no reply
10:  no reply
11:  no reply
12:  no reply
13:  no reply
14:  no reply
15:  no reply
16:  no reply
17:  no reply
18:  no reply
19:  no reply
20:  no reply
21:  no reply
22:  no reply
23:  no reply
24:  no reply
25:  no reply
26:  no reply
27:  no reply
28:  no reply
29:  no reply
30:  no reply
31:  no reply
     Too many hops: pmtu 1500
     Resume: pmtu 1500 
naszar
попробуйте перед запуском скрипта
systemctl stop [email protected]
...
скрипт-то чего пишет?
Извените. Я запутался уже. Перед запуском какого скрипта? (у меня их уже с 20 штук.)
naszar
покажите, что будит если
systemctl restart [email protected]
ip addr
ip route
ping -c2 8.8.8.8
ping6 -c2 2800:3f0:4001:805::1014
tracepath 77.88.21.3
А это просто отдельно запустить?

naszar
вы уверены, что, к сети не через роутер подключаетесь?
...а у вас откуда-то 192.168.1.0/24 появляется. Вы уверены что в сети нет никаких устройств?
По квартире идет только провод подключенный напрямую в сетевую карту. На крыше вроде свитч стоит(это я так догадываюсь). 192.168.1.0 - эти цифры я видел в файле /etc/resolv.conf, они после команды pon ... сбивались в эту цифру(это когда по не вашей инструкции делал.)

naszar
systemctl restart [email protected]
ip addr
ip route

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    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: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
       valid_lft forever preferred_lft forever
default via 192.168.1.1 dev enp2s0  metric 202
192.168.1.0/24 dev enp2s0  proto kernel  scope link  src 192.168.1.62  metric 202 
Попробовал так:

#!/usr/bin/sh
ifconfig enp2s0 down
ifconfig enp2s0 10.172.119.13/24
ifconfig enp2s0 up
route add -host 10.172.119.1 gw 10.172.119.254 dev enp2s0
#Прописываем IP DNS-серверов в файл /etc/resolv.conf Он должен выглядеть следующим образом:
#Файл: /etc/resolv.conf
echo 'nameserver 10.172.119.1' > /etc/resolv.conf
#Если сеть работоспособна, должны пинговаться шлюз и VPN-сервер. Проверяем:
ping -c2 10.172.119.254
ping -c2 10.172.119.1
#fix pptpsetup
echo 'echo i love mppe' > /usr/bin/strings
chmod +x /usr/bin/strings
#fixed
pptpsetup --create middinna --server 10.172.119.1 --username VPN_LOGIN --password VPN_PASSWORD
pppd call middinna nodetach debug
ifconfig:
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.172.119.13  netmask 255.255.255.0  broadcast 10.172.119.255
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        TX packets 8  bytes 716 (716.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
route:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         KEENETIC_LITE   0.0.0.0         UG    202    0        0 enp2s0
10.172.119.0    *               255.255.255.0   U     0      0        0 enp2s0
10.172.119.1    10.172.119.254  255.255.255.255 UGH   0      0        0 enp2s0
192.168.1.0     *               255.255.255.0   U     202    0        0 enp2s0
P.S. sub Check_MPPE_in_pppd - это я не трогал. Там версия где много текста.
naszar
Вы такое уже чинили по этому совету...
sub Check_MPPE_in_pppd { return 1;}
Я немного запутался. Нужно в файле привести к такомы виду:
sub Check_MPPE_in_pppd {
    my $command = q/strings `which pppd`|grep -i mppe|wc --lines/;
    my $answer  = `$command`;
    if ($answer > 0) {
        # ok!
        return 1;
    } else {
        return 0;
    }
}
Или такому:
sub Check_MPPE_in_pppd { return 1;}
А можно поинтересоваться, что вот это дает?
echo 'echo i love mppe' > /usr/bin/strings

Вообщем автоматизировал настройки вот так:
#!/bin/sh
clear # Очистка экрана
echo Введите путь:
read B
echo "Вы ввели : $B"
#sleep 1s
cd $B
ls -F | grep / | sed 's/\///g'
echo Введите путь:
read L
mkdir $L
cd $L
pwd
while :
do
echo "Выберите интересующую Вас пункт:"
echo
echo "[A]Pon mediana"
echo "[B]Pptpsetup"
echo "[C]Pppd"
echo "[Z]Exit"
echo
read person
case "$person" in
# Обратите внимание: переменная взята в кавычки.
  "A" | "a" )
  # Пользователь может ввести как заглавную, так и строчную букву.
  A="vpn_pon.log"
  echo $A
  pwd
 ...
#echo Ввожу команду: nano /etc/ppp/options.ppp0 >> $A
#echo "#Коментарий" > /etc/ppp/options.ppp0
#nano /etc/ppp/options.ppp0
#cat /etc/ppp/options.ppp0 >> $A
  echo Ввожу команду: pon mediana >> $A
  pon mediana >> $A  3>&2  2>&1
#echo Ввожу команду: pppd call middinna nodetach debug >> $A
#pppd call middinna nodetach debug >> $A  3>&2  2>&1
  echo Ввожу команду: route add default dev ppp0 >> $A
  route add default dev ppp0 >> $A  3>&2  2>&1
  echo Ввожу команду: ping -c2 ya.ru >> $A
  ping -c2 ya.ru >> $A  3>&2  2>&1
  echo "The End"
  ;;
# Обратите внимание: блок кода, анализирующий конкретный выбор, завершается
# двумя символами "точка-с-запятой".
  "B" | "b" )
  echo
  A="vpn_pptp.log"
  echo $A
  pwd
   ;;
  "C" | "c" )
  echo
  A="vpn_pppd.log"
  echo $A
  pwd
  echo "Тут будет еще что-то" > $A
  echo "The End" >> $A
    ;;
  "Z" | "z" )
  exit 0
  ;;
          * )
   # Выбор по-умолчанию.
   # "Пустой" ввод тоже обрабатывается здесь.
   echo
   echo "Нет данных."
  ;;
esac
echo "------------"
done
#exit 0
naszar
если будут обшибки, то
/mnt/ubuntu/<путь_до_pptp_up/pptp_up > /mnt/ubuntu/<путь_до_pptp_up/pptp_up_errors
и этот pptp_up_errors показываете съдесь.
Сделал так: sh ./pptp_up > pptp_up_errors 2>&1 и получил вот что:
PING 10.172.119.254 (10.172.119.254) 56(84) bytes of data.
From 10.172.119.13 icmp_seq=1 Destination Host Unreachable
From 10.172.119.13 icmp_seq=2 Destination Host Unreachable
--- 10.172.119.254 ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 999ms
pipe 2
PING 10.172.119.1 (10.172.119.1) 56(84) bytes of data.
64 bytes from 10.172.119.1: icmp_seq=1 ttl=64 time=0.595 ms
64 bytes from 10.172.119.1: icmp_seq=2 ttl=64 time=0.251 ms
--- 10.172.119.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.251/0.423/0.595/0.172 ms
PING 10.172.119.1 (10.172.119.1) 56(84) bytes of data.
From 10.172.119.13 icmp_seq=1 Destination Host Unreachable
From 10.172.119.13 icmp_seq=2 Destination Host Unreachable
--- 10.172.119.1 ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 999ms
pipe 2
sh: strings: command not found
/usr/bin/pptpsetup: couldn't find MPPE support in pppd.
pppd: Can't open options file /etc/ppp/peers/middinna: No such file or directory
nano /usr/bin/pptpsetup:
#!/usr/bin/perl
use strict;
use Getopt::Long;
use vars qw($VERSION);
$VERSION = '0.03';
# Command-line parameters:
# actions
my ( $_create, $_delete, $_help );
# values
my ( $SERVER, $DOMAIN, $USERNAME, $PASSWORD, $ENCRYPT, $START );
my $result = GetOptions(
    "create|c=s"   => \$_create,    # --create foo -> &create("foo")
    "delete=s"     => \$_delete,    # --delete foo -> &delete("foo")
    "help|h"       => \$_help,      # --help       -> &help()
    "server|s=s"   => \$SERVER,
    "domain|d=s"   => \$DOMAIN,
    "username|u=s" => \$USERNAME,
    "password|p=s" => \$PASSWORD,
    "encrypt|e"    => \$ENCRYPT,
    "start"        => \$START,
);
if ($_create) {
    &create($_create);
} elsif ($_delete) {
    &delete($_delete);
} elsif ($_help) {
    &help();
} else {
    die "$0: too few arguments.\nTry '$0 --help' for more information.\n";
}
exit;
####
sub create {
    my $TUNNEL = shift;
    # system checking
    &Check_MPPE_in_kernel
        or die "$0: couldn't find MPPE support in kernel.\n";
    &Check_MPPE_in_pppd
        or die "$0: couldn't find MPPE support in pppd.\n";
    # input validation
    ($TUNNEL) = $TUNNEL =~ m{^(\w+)$}
      or die "$0: invalid tunnel name.\nTry '$0 --help' for more information.\n";
    ($SERVER) = $SERVER =~ m{^(.+)$}
      or die "$0: invalid server.\nTry '$0 --help' for more information.\n";
    ($USERNAME) = $USERNAME =~ m{^(.+)$}
      or die "$0: invalid username.\nTry '$0 --help' for more information.\n";
    # ask password
    if ( !$PASSWORD ) {
        print "Password: ";
        $PASSWORD = <STDIN>;
        chomp $PASSWORD;
    }
    # put '\' between domain and username IF specified a domain
    $DOMAIN = "$DOMAIN\\" if $DOMAIN;
    # create or add lines to the /etc/ppp/chap-secrets file,
    # which holds usernames and passwords
    my $chap_secrets_file = '/etc/ppp/chap-secrets';
    open( FILE, ">>$chap_secrets_file" )
      or die "$0: can't write to '$chap_secrets_file': $!\n";
    print FILE "\n# added by pptpsetup for $TUNNEL\n$DOMAIN$USERNAME $TUNNEL \"$PASSWORD\" *\n";
    close FILE;
    # create a /etc/ppp/peers/$TUNNEL file
    my $tunnel_file = "/etc/ppp/peers/$TUNNEL";
    open( FILE, ">$tunnel_file" )
      or die "$0: can't write to '$tunnel_file': $!\n";
    print FILE <<"TUNNEL";
# written by pptpsetup
pty "pptp $SERVER --nolaunchpppd"
lock
noauth
nobsdcomp
nodeflate
name $DOMAIN$USERNAME
remotename $TUNNEL
ipparam $TUNNEL
TUNNEL
    print FILE "require-mppe-128\n" if $ENCRYPT;
    close FILE;
    # start tunneling
    if ($START) {
        system("pppd call $TUNNEL updetach");
    }
}
####
sub help {
    print <<'EOF';
pptpsetup --create <TUNNEL> --server <SERVER> [--domain <DOMAIN>]
          --username <USERNAME> [--password <PASSWORD>]
          [--encrypt] [--start]
pptpsetup --delete <TUNNEL>
Options:
* the name you wish to use to refer to the tunnel (you choose it),
* the IP address or host name of the server,
* the authentication domain name (optional),
* the username you are to use,
* the password you are to use,
* whether encryption is required,
* whether to start the connection after configuration.
pptpsetup - Point-to-Point Tunneling Protocol setup
Copyright (C) 2006 Nelson Ferraz
pptpsetup comes with ABSOLUTELY NO WARRANTY; for details see source.
This is free software, and you are welcome to redistribute it
under certain conditions; see source for details.
EOF
    exit;
}
####
sub delete {
    my $tunnel = shift;
    # input validation
    ($tunnel) = $tunnel =~ m{^(\w+)$}
      or die "$0: invalid tunnel name.\nTry '$0 --help' for more information.\n";
    # delete tunnel file
    my $tunnel_file = "/etc/ppp/peers/$tunnel";
    unlink $tunnel_file
        or die "$0: can't delete '$tunnel_file': $!\n";
    # delete entry from chap-secrets
    my $chap_file = '/etc/ppp/chap-secrets';
    open( FILE, $chap_file )
        or die "$0: can't read '$chap_file': $!\n";
    my @chap = <FILE>;
    close FILE;
    my $new_chap = '';
    foreach (@chap) {
        $new_chap .= $_ unless /\b$tunnel\b/;
    }
    # backup
    rename( $chap_file, "$chap_file.bkp" );
    # write new chap-secrets
    open( FILE, ">$chap_file" )
        or die "$0: can't write '$chap_file': $!\n";
    print FILE $new_chap;
    close FILE;
    exit;
}
### AUXILIAR SUBS ###
sub Check_MPPE_in_kernel {
    my $command = q/modprobe ppp-compress-18/;
    if (system( $command ) == 0) {
        # no error!
        return 1;
    } else {
        return 0;
    }
}
sub Check_MPPE_in_pppd {
    my $command = q/strings `which pppd`|grep -i mppe|wc --lines/;
    my $answer  = `$command`;
    if ($answer > 0) {
        # ok!
        return 1;
    } else {
        return 0;
    }
}
__END__
=head1 NAME
pptpsetup - Point-to-Point Tunneling Protocol setup
=head1 SYNOPSIS
    pptpsetup --create <TUNNEL> --server <SERVER> [--domain <DOMAIN>]
              --username <USERNAME> [--password <PASSWORD>]
              [--encrypt] [--start]
    pptpsetup --delete <TUNNEL>
=head1 DESCRIPTION
PPTP Client is a Linux, FreeBSD, NetBSD and OpenBSD client for the
proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP.
This script configures PPTP Client on Linux.
=head1 OPTIONS
=over 16
=item --create TUNNEL
create a tunnel named TUNNEL
=item --delete TUNNEL
delete the file /etc/ppp/peers/TUNNEL and any lines from
/etc/ppp/chap-secrets that contains "TUNNEL" as a single word
=item --server SERVER
the IP address or host name of the server
=item --domain DOMAIN
the authentication domain name (optional)
=item --username USERNAME
the username you are to use
=item --password PASSWORD
the password you are to use. If you don't specify a password,
pptpsetup will ask for one.
=item --encrypt
whether encryption is required
=item --start
whether the connection should be started after configuration.
=back
=head1 AUTHOR
Nelson Ferraz <nferraz at gmail.com>,
based on James Cameron's PPTP Client Debian HOWTO.
=head1 SEE ALSO
=over 16
=item PPTP Client Debian HOWTO
http://pptpclient.sourceforge.net/howto-debian.phtml
=item PPTP Client Diagnosis HOWTO
http://pptpclient.sourceforge.net/howto-diagnosis.phtml
=back
=head1 COPYRIGHT
pptpsetup - Point-to-Point Tunneling Protocol setup
Copyright (C) 2006 Nelson Ferraz
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
naszar
если будут обшибки, то
/mnt/ubuntu/<путь_до_pptp_up/pptp_up > /mnt/ubuntu/<путь_до_pptp_up/pptp_up_errors
и этот pptp_up_errors показываете съдесь. Единственно, возможно придется подправить pptpsetup, если вы это делали.
pptpsetup - вернул в дефолт. pptp_up_errors:
PING 10.172.119.254 (10.172.119.254) 56(84) bytes of data.
64 bytes from 10.172.119.254: icmp_seq=1 ttl=64 time=0.289 ms
64 bytes from 10.172.119.254: icmp_seq=2 ttl=64 time=0.344 ms

--- 10.172.119.254 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.289/0.316/0.344/0.032 ms
PING 10.172.119.1 (10.172.119.1) 56(84) bytes of data.

--- 10.172.119.1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms

PING 10.172.119.1 (10.172.119.1) 56(84) bytes of data.

--- 10.172.119.1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms

А вот с моего скриптика:
Ввожу команду: cd /mnt/2 ...
Ввожу команду: ip a a 10.172.119.13/24 dev enp2s0
Ввожу команду: ip l s up dev enp2s0
Ввожу команду: ip r a default via 10.172.119.254
Ввожу команду: nano /etc/resolv.conf
nameserver 10.172.119.1
Ввожу команду: ping -c2 10.172.119.254
PING 10.172.119.254 (10.172.119.254) 56(84) bytes of data.
From 10.172.119.13 icmp_seq=1 Destination Host Unreachable
From 10.172.119.13 icmp_seq=2 Destination Host Unreachable

--- 10.172.119.254 ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1007ms
pipe 2
Ввожу команду: ping -c2 10.172.119.1
PING 10.172.119.1 (10.172.119.1) 56(84) bytes of data.
64 bytes from 10.172.119.1: icmp_seq=1 ttl=64 time=0.655 ms
64 bytes from 10.172.119.1: icmp_seq=2 ttl=64 time=0.354 ms

--- 10.172.119.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.354/0.504/0.655/0.152 ms
Ввожу команду: ip r a 10.172.119.1 via 10.172.119.254
Ввожу команду: ip r d default
Ввожу команду: ping -c2 10.172.119.1
PING 10.172.119.1 (10.172.119.1) 56(84) bytes of data.
From 10.172.119.13 icmp_seq=1 Destination Host Unreachable
From 10.172.119.13 icmp_seq=2 Destination Host Unreachable

--- 10.172.119.1 ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1007ms
pipe 2
Ввожу команду: nano /etc/ppp/peers/mediana
pty pptp 10.172.119.1 --nolaunchpppd
user Тут_был_логин
password "Тут_был_пароль"
nodeflate
nobsdcomp
noauth
linkname mediana
Ввожу команду: nano /etc/ppp/options.pptp
refuse-chap
refuse-pap
refuse-mschap-v2
lock
userpeerdns
persist
nopcomp
noaccomp
Ввожу команду: pon mediana
/usr/sbin/pppd: In file /etc/ppp/peers/mediana: unrecognized option '10.172.119.1'
Ввожу команду: route add default dev ppp0
SIOCADDRT: No such device
Ввожу команду: ping -c2 ya.ru
ping: unknown host ya.ru