Help me to setup L2TP connection

Issues Related to Networking (Wired and Wireless)

Moderator: Moderators

Help me to setup L2TP connection

Postby mie » Sun May 05, 2013 16:21

My internet connection is L2TP, but since crappy systemd replaced old good utilities, I can't use my configurations anymore. I can't even start network with
Code: Select all
/etc/init.d/net.eth0 start

I can't even compile networkmanager-l2tp plugin (from here) as I have no internet in Sabayon and have to switch between it and Windows in dualboot and download each absent package, install it from local file and repeat.

I need a simple guide how to setup L2TP with xl2tpd.
mie
Baby Hen
 
Posts: 4
Joined: Thu May 02, 2013 10:59

Re: Help me to setup L2TP connection

Postby Fitzcarraldo » Sun May 05, 2013 16:42

If you don't like systemd then just switch to OpenRC:

Code: Select all
eselect sysvinit set sysvinit
eselect settingsd set 0

and then you can try the usual OpenRC initscripts.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7977
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Help me to setup L2TP connection

Postby mie » Sun May 05, 2013 16:49

Code: Select all
mie@localhost ~ $ sudo eselect sysvinit set sysvinit
Password:
!!! Error: Can't load module sysvinit
exiting
mie@localhost ~ $ sudo eselect settingsd set 0
!!! Error: Can't load module settingsd
mie
Baby Hen
 
Posts: 4
Joined: Thu May 02, 2013 10:59

Re: Help me to setup L2TP connection

Postby Fitzcarraldo » Sun May 05, 2013 16:52

what is the output of:

Code: Select all
eselect --help
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7977
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Help me to setup L2TP connection

Postby mie » Sun May 05, 2013 17:00

Code: Select all
mie@localhost ~ $ sudo eselect --help
Password:
Usage: eselect <global options> <module name> <module options>

Global options:
  --brief                   Make output shorter
  --colour=<yes|no|auto>    Enable or disable colour output (default 'auto')

Built-in modules:
  help                      Display a help message
  usage                     Display a usage message
  version                   Display version information

Extra modules:
  bashcomp                  Manage contributed bash-completion scripts
  binutils                  Manage installed versions of sys-devel/binutils
  bzimage                   Switch bzImage default kernel by updating
                            /boot/bzImage symlink
  cdparanoia                Manage /usr/bin/cdparanoia implementation
  editor                    Manage the EDITOR environment variable
  env                       Manage environment variables set in /etc/env.d/
  fontconfig                Manage fontconfig /etc/fonts/conf.d/ symlinks
  infinality                Manage the /etc/fonts/infinality/conf.d symlink
  kernel                    Manage the /usr/src/linux symlink
  lcdfilter                 Manage the /etc/env.d/99lcdfilter symlink
  locale                    Manage the LANG environment variable
  mesa                      Manage the OpenGL driver architecture used by
                            media-libs/mesa
  modules                   Query eselect modules
  mpg123                    Manage /usr/bin/mpg123 implementation
  news                      Read Gentoo ("GLEP 42") news items
  opencl                    Manage the OpenCL implementation used by your
                            system
  opengl                    Manage the OpenGL implementation used by your
                            system
  pager                     Manage the PAGER environment variable
  pinentry                  Manage /usr/bin/pinentry symlink
  profile                   Manage the make.profile symlink
  python                    Manage Python symlinks
  rc                        Manage /etc/init.d scripts in runlevels
  visual                    Manage the VISUAL environment variable
  xvmc                      Manage the XvMC implementation used by your system
mie
Baby Hen
 
Posts: 4
Joined: Thu May 02, 2013 10:59

Re: Help me to setup L2TP connection

Postby mie » Sun May 05, 2013 17:01

This is Sabayon 11 x86_64
mie
Baby Hen
 
Posts: 4
Joined: Thu May 02, 2013 10:59

Re: Help me to setup L2TP connection

Postby Fitzcarraldo » Sun May 05, 2013 23:55

Then your problem has nothing to do with systemd per se, since you are currently using an OS that is using OpenRC. However, you will probably find that the command "/etc/init.d/net.eth0 start" did not work because the latest versions of udev do not use eth<n> and wlan<n> any more for the interface names. If you use the ifconfig command as root user in a Konsole/Terminal window you will find out the new names of your interfaces. If the ifconfig command does not show the interfaces, then you can use the following command instead:

Code: Select all
udevadm test-builtin net_id /sys/class/net/<interface> 2>/dev/null

For example, on my main laptop I get the following:

Code: Select all
meshedgedx fitzcarraldo # udevadm test-builtin net_id /sys/class/net/eth0 2>/dev/null
ID_NET_NAME_MAC=enx705ab63ec18a
ID_OUI_FROM_DATABASE=COMPAL INFORMATION (KUNSHAN) CO., LTD.
ID_NET_NAME_PATH=enp4s0
meshedgedx fitzcarraldo # udevadm test-builtin net_id /sys/class/net/wlan0 2>/dev/null
ID_NET_NAME_MAC=wlx00216a9a684c
ID_OUI_FROM_DATABASE=Intel Corporate
ID_NET_NAME_PATH=wlp3s0
meshedgedx fitzcarraldo #

so the names given to the interfaces by udev are "enp4s0" for the wired Ethernet interface, and "wlp3s0" for the wireless interface. So all configuration files should refer to those names, not "eth0" and "wlan0".

EDIT: If the ifconfig command returns interface names "eth0" and/or "wlan0" then the new udev interface naming scheme is not in force, and you will probably find a file /etc/udev/rules.d/80-net-name-slot.rules containing only comments, designed to inhibit udev from using the new so-called 'persistent interface names'. In which case /etc/init.d/net.eth0 etc. should still be present and symlinked to /etc/init.d/net.lo.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7977
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom


Return to Networking and Wireless

Who is online

Users browsing this forum: No registered users and 1 guest

cron