I want to install openwrt, but I can only add one network interface of the host machine through Macvlan as a LAN port, but I also need to add another network interface as a WAN port for PPPOE dial-up. How can I add two interfaces?
You misunderstood me. I don’t need a single WAN port to connect multiple PPPoEs. Instead, after adding a macvlan (
docker network create -d macvlan --subnet=10.10.10.0/24 --gateway=10.10.10.1 -o parent=eth0 maclan) interface as a LAN port, I need to add a WAN interface to openwrt (
docker network create -d macvlan --subnet=10.10.10.0/24 --gateway=10.10.10.1 -o parent=eth1 macwan, but the network cannot be created) to be used as PPPoE dial-up for openwrt. I tried to change the subnet and gateway: docker network create -d macvlan --subnet=10.10.1.0/24 --gateway=10.10.1.1 -o parent=eth1 macwan. Although the network can be created, PPPoE dial-up cannot be used in openwrt. As a WAN port, it should not be possible to assign a subnet and gateway, right?
It was a spam post using ai generated content. Please ignore it.
You don’t add interfaces to containers. You either use the host network (=no network namespace isolation), or attach containers to networks. If your LAN and WAN connections are in different networks, it should be no problem.
Note: a container is just an isolated process. It is not a full OS, does not boot, does not have it’s own kernel.
Though, I will leave this topic for someone who actually runs OpenWRT in a container.