Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support QinQ networks #2597

Open
gcantho opened this issue Nov 24, 2020 · 3 comments
Open

Support QinQ networks #2597

gcantho opened this issue Nov 24, 2020 · 3 comments

Comments

@gcantho
Copy link

gcantho commented Nov 24, 2020

Seems that macvlan_network.go does not support QinQ. Docker nativley supports this. When setting the parent to something like eth0.10.100 an error is thrown "Errorf("required interface name format is: name.vlan_id, ex. eth0.10 for vlan 10, instead received %s", linkName)" from macvlan_setup.go parseVlan function.

QinQ Seems to not be supported. Would be a Useful feature. Currently preventing me from implementing this libary. Is there a sugested work around?

@thaJeztah
Copy link
Member

Docker nativley supports this.

docker is using libnetwork when you run "docker network create", or does that fail?

@gcantho
Copy link
Author

gcantho commented Nov 24, 2020

It succeeds docker network create -d macvlan --gateway=X.X.X.X --subnet=X.X.X.X/XX --ip_range=X.X.X.X/XX -o parent=eth0.20.200 vlan20-200 is the command I usually run. I have never had a problem with it.

@gcantho
Copy link
Author

gcantho commented Nov 24, 2020

docker-compose is what is failing when I try and start this network in my yaml file

networks:
  qinq_network:
    driver: macvlan
      driver_opts:
        parent: eth0.20.200
      ipam:
        config:
          - subnet: X.X.X.X/XX
            gateway: X.X.X.X
            ip_range: X.X.X.X/XX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants