How to setup DSL connection with networkctl

My new F37 installation didn’t install old /etc/sysconfig/network-scripts so I don’t know how to setup DSL connection. I used to just do ifcfg-ppp0 file where I defined:

USERCTL=yes
BOOTPROTO=dialup
NAME=DSLppp0
DEVICE=ppp0
TYPE=xDSL
ONBOOT=yes
PIDFILE=/var/run/pppoe-adsl.pid
FIREWALL=NONE
PING=.
PPPOE_TIMEOUT=240
LCP_FAILURE=10
LCP_INTERVAL=80
CLAMPMSS=1412
CONNECT_POLL=4
CONNECT_TIMEOUT=60
DEFROUTE=yes
SYNCHRONOUS=no
ETH=en0
PROVIDER=DSLppp0
USER=xxxx
PEERDNS=yes
DEMAND=no

and I could also manually bring it up with ifup ppp0 and down with ifdown ppp0. I didn’t find any examples with networkctl. Are there any config files so I don’t need to issue commands after every reboot?
Another optional question about networkctl. Can you rename eth device name . I still do it via /etc/udev/rules.d/70-persistant-net.rules, but I have to reboot machine to be applied. I saw ubuntu has a wonderful solution with /etc/netplan/00-config.yaml and netplan apply

Use the network config panel under the gnome settings.
Settings --> Network

From the command line you should now use nmcli which is capable of doing all that ifconfig used to do and more. You also have the ip command with all its functions. The control panel works for most things, including starting and stopping a connection from the gui.

Can you be more specific? I didn’t find option for DSL in gnome networking, but I’d like to do it in the terminal in any case and have it saved to some config file

the only reference I found to setting this up was in a bug report,

You could also install, NetworkManager-initscripts-ifcfg-rh and see if that works while you are trying to figure out networkd.

so it seems to me it’s not implemented, and that I need to install old initscripts and do it like in the past?

Man systemd.netdev and systemd.networkd for a lot of info on where to place user defined files for manual configs. Examples are in /usr/lib/systemd/network.

2 Likes