LANCOM vRouter: Basic CLI Setup

This short guide is about how to configure a LANCOM vRouter. I haven’t found any proper documentation on how to do it via the CLI, so someone might find this useful.

This guide will cover the following setps:

  1. configure an IP-Address for the main INTRANET network
  2. create a user with admin rights for configuration via LANconfig
  3. change the second interface to be used as WAN-Uplink

Prerequisites

Before configuring the vRouter, ensure that the basic setup is complete. By default, LANCOM vRouter limits LAN ports to 1 Mbit/s until install a valid license, but you can request a free 30-day trial here. After completing the installation for your platform using the official Installation Guide, make sure to add an additional virtual LAN port to your VM. This extra interface will later be used as the WAN uplink.

Step 1: Set IP Address

We first need to assign a static IP to the vRouter’s LAN-side so it can be reached from the internal network.

cd /Setup/TCP-IP/Network-list
set INTRANET 10.0.99.254 255.255.255.0

Step 2: Create a User

Navigate to the admin configuration directory and create a new user:

cd /Setup/Config/Admins/
add lc-user

Change to the newly created user and set a Password:

cd lc-user
set Password Secret1!

Assign Access Rights with the following command:

set Access-Rights su

After completing this step, the user user is configured with supervisor rights and the specified password.

Step 3: Assign the WAN-Interface

As the last step you need to add the second physical interface to the same virtual network as your INTRANET network.

Navigate to the second Ethernet port and assign it to the virtual network interface LAN-1:

cd /Setup/Interfaces/Ethernet-Ports/ETH-2
ls
set Assignment LAN-1

You can now use LANconfig to further configure the vRouter.