Re: NetworkManager can't connect to PPP interface

On Tue, 2020-01-07 at 16:05 +0330, Babak Razmjoo via networkmanager-
list wrote:
I have a CentOS 7 server which is connected to a PPTP VPN network.
That means CentOS7 is a PPTP client itself. I need to direct HTTP
requests to the PPTP server, but when I click the ppp0 switch in
cockpit web panel, or run 'nmcli device connect ppp0', I get this

Error: Failed to add/activate new connection: Device class
NMDevicePpp had no complete_connection method


`nmcli device connected` can do one of two things:

1) if no suitable profile exists, create one and activate it.

2) if a suitable profile exits, activate it. In that case, it's very
much the same as `nmcli connection up $PROFILE`, except that
NetworkManager will automatically find the profile.

VPN profiles aren't handled like regular profiles, and hence `nmcli
device connect` wouldn't work for it anyway. That probably should be

Instead, create/modify the profile to your liking. Start by looking at
the available profiles with `nmcli connection`. Activate the right one
with `nmcli connection up`.


My system specs:

$ uname -a
Linux localhost.localdomain 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec
6 15:49:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

$ ip a
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 scope host lo
       valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
    link/ether 00:0c:29:2b:ba:88 brd ff:ff:ff:ff:ff:ff
    inet brd scope global
noprefixroute dynamic ens33
       valid_lft 1632519sec preferred_lft 1632519sec
pfifo_fast state UNKNOWN group default qlen 3
    inet peer scope global ppp0
       valid_lft forever preferred_lft forever

$ ip route
default via dev ens33 proto dhcp metric 100 dev ppp0 proto kernel scope link src dev ens33 proto kernel scope link src
metric 100

$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref  
 Use Iface
default         gateway         UG    100    0      
 0 ens33 UH    0      0      
 0 ppp0   U     100    0      
 0 ens33
networkmanager-list mailing list
networkmanager-list gnome org

Attachment: signature.asc
Description: This is a digitally signed message part

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]