srl-labs / containerlab

container-based networking labs
https://containerlab.dev
BSD 3-Clause "New" or "Revised" License
1.52k stars 261 forks source link

Running containerlab 0.23.0 on WSL2/Ubuntu with cEOS #774

Closed bgolab closed 2 years ago

bgolab commented 2 years ago

Hi,

I am looking for detailed procedure how to install the containerlab on WSL2 for cEOS. What I did so far:

  1. I have NO issues with running the containerlab 0.23.0 on ubuntu VM ran on VirtualBox hosted by W10. I deployed two cEOS (arista) containers, configured IPv4/IPv6. Works smoothly - I mean I can ping both containers from each other.

  2. I wanted to install the same lab on WSL2/ubuntu and followed the procedure from the web site. The cEOS containers seem to run without any issues. (Docker Engine - Community, Engine: 20.10.12) But I see two connectivity issues here

    • I configured IPv4 but I cannot ping the the Eth1 neither the management interfaces from the containers. The arp shows relevant entries! . But there is no connectivity through ping
    • I configured IPv6 but I do not see IPv6 neighbors neither I cannot ping the other containers

      Before I start debugging the docker itself I would like know if someone managed to use cEOS (arista containers) on WSL2/ubuntu.

Thanks you Bogdan

hellt commented 2 years ago

Hi @bgolab it was discussed in containerlab discord seems to be related with some incompatibility of WSL kernel features and ceos expectations. Looks like one could solve it by adding an ALLOW action for iptables inside ceos

image
bgolab commented 2 years ago
  1. IPv4 connectivity was fixed by applying sudo iptables -P INPUT ACCEPT

  2. IPv6 was fixed partially by applying sudo ip6tables -P INPUT ACCEPT

Partially because:

bgolab commented 2 years ago

It looks like the LLA requires the interface specified:

ping fe80::a8c1:abff:fe72:217b interface ethernet 1 works.

bgolab commented 2 years ago

Solution above

hellt commented 2 years ago

great, I will document those iptables commands for ceos nodes.

bgolab commented 2 years ago

Thank you for your first pointer! This got me started;)