Questions tagged [macvlan]
62 questions
16
votes
3 answers
Docker Macvlan network inside container is not reaching to its own host
I have setup Macvlan network between 2 docker host as follows:
Host Setup: HOST_1 ens192: 172.18.0.21
Create macvlan bridge interface
docker network create -d macvlan \
--subnet=172.18.0.0/22 \
--gateway=172.18.0.1 \
--ip-range=172.18.1.0/28 \
-o…

jlim
- 909
- 2
- 12
- 24
10
votes
2 answers
Unable to access docker containers from host over macvlan network
In my Linux network I am unable to reach my docker containers from the host they are running on, over a dedicated macvlan network. All other connections from to this macvlan network are fine.
So basically the setup is:
DOCKER1 eth0 172.0.0.1…

JCS81
- 111
- 1
- 5
8
votes
2 answers
docker macvlan - no route to host (container)
Im trying to understand the "macvlan" network from docker. I create a new network:
docker network create -d macvlan \
--subnet=192.168.2.0/24 \
--gateway=192.168.2.1 \
-o parent=eno1 \
pub_net
And start new container with the new…

Marc
- 2,920
- 3
- 14
- 30
8
votes
2 answers
How to create a Docker macvlan with user defined IP and MAC address using Compose
I have a docker project that uses the MAC address for hardware license enforcement. I cannot change this, the ISV uses a hardware fingerprint that includes the MAC address.
I am trying to create a macvlan network, that will use the physical adapter…

PieterV
- 555
- 1
- 4
- 18
7
votes
0 answers
Docker: Can't remove macvlan configuration network
Using portainer, I created a macvlan configuration network. Now, I want to remove this network. However, for some reason, I can't. I do receive the following error msg: Error response from daemon: error while removing network: configuration network…

Andi
- 3,196
- 2
- 24
- 44
6
votes
1 answer
How can the docker container communicate host machine?
Host machine ip:192.168.123.2 Gateway:192.168.123.1
Adapter is enp3s0, so I create a docker network in host:
docker network create -d macvlan --subnet 192.168.123.0/24 --gateway 192.168.123.1 -o parent=enp3s0 -o macvlan_mode=bridge macnet
Run a…

Winson.Wu
- 135
- 1
- 7
5
votes
3 answers
Docker MACVLAN only works Outbound
I'm trying to setup a MACVLAN for my docker containers.
I have a fresh Raspbian and Docker installation and followed the steps outlined to the Docker Documentation to create a MACVLAN: https://docs.docker.com/network/network-tutorial-macvlan.
The…

Christian
- 241
- 6
- 14
4
votes
2 answers
How do I replicate a docker macvlan network with podman?
I have a working docker implementation on a fedora workstation that I use to host a Unifi Network Controller application. I use a macvlan to assign a static IP to the controller. The docker network command to create the macvlan is:
docker network…

Brad Smith
- 183
- 1
- 7
4
votes
0 answers
Docker-Compose multiple MAC addresses in containers
I am trying to find a way to run 2 services that uses MAC addresses as unique networkIDs on my SmartThings hub (cast-web-api and MQTT-Bridge)
Right now, I built a docker-compose.yml file that does what I need but I would like to bridge my eth0 to 2…

JMB
- 61
- 7
4
votes
1 answer
docker network through a specific physical interface
So I'm trying to create a network (docker network create) so that its traffic will pass through an specific physical network interface (NIC); I have two: (internal), and (external).
I need the traffics of both NICs to be physically…

issrc
- 41
- 1
- 1
- 4
4
votes
0 answers
Docker container with macvlan can't be pinged by other host
I know I can't ping the macvlan interface from the same host, but I can't ping my container's macvlan interface from hosts on a different subnet (even though they're connected via a router).
Host IP: 10.8.2.132/22
Macvlan container IP:…

seanr8
- 411
- 1
- 5
- 15
3
votes
1 answer
How can I make docker container IP addresses accessible in a WLAN?
I'm running Docker containers on a host (A) which is in a local network and gets its IP address from the WLAN router via DHCP. I'd like to access the docker containers via IP address from another host (B) which is in the same local network. I've…

thinwybk
- 4,193
- 2
- 40
- 76
3
votes
1 answer
GCP Compute Instance NIC in Promiscuous Mode
I added a macvlan docker network on my Ubuntu instance at GCP. However I cannot access to/from instance. I thought maybe there is a restriction which enforces exactly one MAC per instance.
Anyone knows about this or is there a workaround? Is there…

gonuladami
- 97
- 1
- 13
3
votes
0 answers
Can't create Docker network with none matching gateway
I have a bare metal server on Hetzner with IP 5.6.7.8 and 8 additional IPs reserved for me.
IPs: 1.2.3.144 to 1.2.3.151
subnet: 1.2.3.144/29
netmask: 255.255.255.248
broadcast: 1.2.3.151
gateway: 5.6.7.8
Now I want to create Docker network with…

Omidreza Bagheri
- 781
- 1
- 11
- 22
2
votes
1 answer
docker swarm macvlan network issues
The Goal
Run a single haproxy container in the swarm with a static IP on my LAN that will be recreated if a node fails. In essence, it would be akin to a VIP pointing to haproxy but without requiring an external load balancer outside of the…

R. StackUser
- 2,005
- 4
- 17
- 24