Skip to content

Issue with Mikrotik RouterOS CHR & macvlan #2865

@evilmonkey19

Description

@evilmonkey19
Image

Hi,

I found what i believe is an error between containerlab and RouterOS. I want to have a virtualized mikrotik (it is a container in VM I believe, a .vmdk) in this case and make accessible from my LAN. I have the following config:

name: mikrotik-lab

topology:
  nodes:
    R1:
      kind: mikrotik_ros
      image: vrnetlab/mikrotik_routeros:7.19.6
  links:
    - type: macvlan
      endpoint:
        node: R1
        interface: ether2
      host-interface: eth0
      mode: bridge

The issue is that the Macvlan is not created:

NETWORK ID     NAME               DRIVER    SCOPE
5b9f47a7ef89   bridge             bridge    local
8b17af01cedb   clab               bridge    local
4c94a9c5d630   ghost-in-da-edge   bridge    local
365eed732cc2   host               host      local
5676dc84d9aa   none               null      local

I have the NIC in promisc mode just in case:

2: eth0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether d8:cb:8a:14:0c:99 brd ff:ff:ff:ff:ff:ff
    altname enp4s0

To test this bug I used a Linux Ubuntu (baremetal PC, not a VM or similar).

The way to see what was happening I did a ping to the gateway and it didn't reply at all. I get the IP (DHCP broadcast is received) but then the ARP table and the MAC are not correct. I add a packet capture I did in the mikrotik just to show it.

Image

Some other data that might be useful:

Image Image

Also take into account that I can connect via Winbox using MAC Winbox but not IP. It works in the LAN perfect the MAC Winbox.

If you need any more tests let me know please.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions