麦克维伦

麦克维伦

麦克维伦

  • 我已经在多台计算机和虚拟机上尝试过。
  • 我已尝试在所有相关计算机和虚拟机中激活混杂模式。我在超级用户上发布的相关帖子。
  • 我尝试过无线和有线连接。
  • 我已尝试手动分配 mac 地址。

意外行为:如果我不手动分配 mac 地址,我可以看到容器在docker inspect foo-network"

version: "3.9"

services:

    nginx-pm:
        container_name: nginx-pm
        image: jc21/nginx-proxy-manager:latest
        volumes:
            - ./data-nginx-pm:/data
            - ./letsencrypt-nginx-pm:/etc/letsencrypt
        mac_address: 02:42:ac:11:00:10
        networks:
            prod-network:
                ipv4_address: 192.168.50.200
        ports:
            - '80:80'
            - '81:81'
            - '443:443'

networks:
    prod-network:
        name: prod-network
        driver: macvlan
        driver_opts:
            parent: wlp0s20f4
        ipam:
            config:
            -   subnet: "192.168.50.0/24"
                gateway: "192.168.50.1"

VLAN l2

  • 我已经在多台计算机和虚拟机上尝试过。
version: "3.9"

services:

    nginx-pm:
        container_name: nginx-pm
        image: jc21/nginx-proxy-manager:latest
        volumes:
            - ./data-nginx-pm:/data
            - ./letsencrypt-nginx-pm:/etc/letsencrypt
        networks:
            prod-network:
                ipv4_address: 192.168.50.200
        ports:
            - '80:80'
            - '81:81'
            - '443:443'

networks:
    prod-network:
        name: prod-network
        driver: ipvlan
        driver_opts:
            parent: wlp0s20f4
        ipam:
            config:
            -   subnet: "192.168.50.0/24"
                gateway: "192.168.50.1"

两个都

我尝试ip route在容器内运行类似的命令,但which ip显示没有命令,并且我无法安装实用程序。

相关内容