MikroTik RouterOS Cloud-hosted router#
Managing MikroTik RouterOS nodes#
MikroTik RouterOS node launched with containerlab can be managed via the following interfaces:
to connect to a
bash shell of a running MikroTik RouterOS container:
Default user credentials:
MikroTik RouterOS container can have up to 30 interfaces and uses the following mapping rules:
eth0- management interface connected to the containerlab management network
eth1- first data interface, mapped to the
ether2interface of the RouterOS
eth2+- second and subsequent data interface
When containerlab launches MikroTik RouterOS node, it will assign IPv4/6 address to the
eth0 interface. These addresses can be used to reach management plane of the router.
eth1+ needs to be configured with IP addressing manually using CLI/management protocols.
MikroTik RouterOS nodes come up with a basic "blank" configuration where only the management interface and user is provisioned.
User defined config#
It is possible to make ROS nodes to boot up with a user-defined startup config instead of a built-in one. With a
startup-config property of the node/kind a user sets the path to the config file that will be mounted to a container and used as a startup config:
With such topology file containerlab is instructed to take a file
myconfig.txt from the current working directory, copy it to the lab directory for that specific node under the
/ftpboot/config.auto.rsc name and mount that dir to the container. This will result in this config to act as a startup config for the node via FTP. Mikrotik will automatically import any file with the .auto.rsc suffix.
When a user starts a lab, containerlab creates a node directory for storing configuration artifacts. For MikroTik RouterOS kind containerlab creates
ftpboot directory where the config file will be copied as config.auto.rsc.