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

How to use bridge with no host IP address assignment and NAT? #27

Open
vgrebenschikov opened this issue Dec 4, 2024 · 0 comments
Open

Comments

@vgrebenschikov
Copy link

I have quite simple layout - I have bridge already set up and even some jails connected to it via epairs.
vlan interface added to the bridge and routed by router properly.

So, I want to use such bridge in podman

Unfortunately podman adds gateway address to host system (bridge1 interface) - which is not expected and requires me to load pf (which is also not needed), how to fix that?

# fgrep default_network /usr/local/etc/containers/containers.conf
default_network = "vlan20"
# podman network inspect vlan20
[
     {
          "name": "vlan20",
          "id": "c4476f8d5f6f016c86fe2fe4468681f9504aa99256afac6e4266ab11acd05619",
          "driver": "bridge",
          "network_interface": "bridge1",
          "created": "2024-11-24T02:34:40.261129+01:00",
          "subnets": [
               {
                    "subnet": "172.22.20.0/24",
                    "gateway": "172.22.20.1",
                    "lease_range": {
                         "start_ip": "172.22.20.128",
                         "end_ip": "172.22.20.254"
                    }
               }
          ],
          "ipv6_enabled": false,
          "internal": false,
          "dns_enabled": false,
          "ipam_options": {
               "driver": "host-local"
          },
          "containers": {
...
         }
]
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

1 participant