I hava lots of pppoe accounts and want to build a small spider-network with them.
So, I want to use docker to virtualize multiple centos methine and do pppoe dialup within.
My methine has two adapter, em1 for pppoe dialup and em2 has a static ip address. when I run a container with bridge, It use em2 and can access to the Internet.
I have tried macvlan:
docker network create -d macvlan --subnet 10.0.0.0/24 --gateway 10.0.0.1 -o parent=em1 -o macvlan_mode=bridge pppoe
and host mode:
docker run --net=host --cap-add=NET_ADMIN -it --rm pppoe
Nothing seems to work...
How can I dialup in containers and assign it with em1?