remote-lab.net learn by doing

Linux L2TP ethernet pseudowires

This post describes how you can create L2TP ethernet pseudowires by using Linux kernel’s L2TP drivers and the “ip” utility of iproute2. L2TP is a protocol that tunnels one or more sessions over an IP tunnel. It is commonly used for VPNs (L2TP/IPSec) and by ISPs to tunnel subscriber PPP sessions over an IP network infrastructure. With L2TPv3, it is also useful as a Layer-2 tunneling infrastructure.

CPU benchmark using sysbench

Sysbench allows you to do a quick performance benchmark of several system parameters such as file I/O, CPU, scheduler and others. Below are the results for running a 100000 prime numbers calculation using 4 threads on my Intel Core i5-3427U CPU:

Bash create file by using heredocs

By using the heredocs format you instruct the shell to read input from the current source until a line containing only a certain word is seen. I find this useful for quickly writing or copying script files. You may find below an example of how you can use this kind of redirection:

Linux reload partition table

Below are the steps you can use in order to be able to create a filesystem on a newly created partition (vda3 in our example) without reboot:

What's Jekyll?

Jekyll is a static site generator, an open-source tool for creating simple yet powerful websites of all shapes and sizes. From the project’s readme:

Jekyll is a simple, blog aware, static site generator. It takes a template directory […] and spits out a complete, static website suitable for serving with Apache or your favorite web server. This is also the engine behind GitHub Pages, which you can use to host your project’s page or blog right here from GitHub.

It’s an immensely useful tool and one we encourage you to use here with Lanyon.

Find out more by visiting the project on GitHub.