docker pull unibaktr/vyos:latest
sudo kathara vstart -n vyos --eth 0:A 1:B 2:C 3:D 4:E --privileged --shell vyos --sysctl net.ipv6.conf.all.disable_ipv6=0 -i unibaktr/vyos:latest
Remember to run kathara with sudo as we need to run the VyOS Docker container with privileged rights
kathara connect -v vyos
If you need to login from a Linux terminal to vbash, the credentials are vyos/vyos
After connecting to the node you can run VyOS commands such as:
At the moment, the VyOS image supports at most 5 interfaces eth0-eth4.
In any lab.conf add the following for a vyos router:
vyos[0]="A"
vyos[image]="unibaktr/vyos:latest"
vyos[shell]="vyos"
vyos[sysctl]="net.ipv6.conf.all.disable_ipv6=0"
Add the file init.vbash to the vyos folder of your kathara node with the content
#!/bin/vbash
source /opt/vyatta/etc/functions/script-template
show interfaces
Now, you can add any VyOS commands to configure the router during its bootstrap process.
After starting the laboratory with sudo kathara lstart --privileged, login to each vyos router with kathara connect --logs vyos. After the first login the initial configuration will be set up.
Content type
Image
Digest
sha256:de93bf175…
Size
440.3 MB
Last updated
over 3 years ago
docker pull unibaktr/vyos