Questions tagged [macvlan]

62 questions
0
votes
1 answer

Cannot access macvlan docker container from another device on network via ip

I have a docker container I would like to access from other clients on the LAN. I do not want to access them via the docker host's IP and bind container ports to host ports. I would like to access the container via its own IP address as if it was an…
bcsta
  • 1,963
  • 3
  • 22
  • 61
0
votes
1 answer

Assigning /32 ip addr to containers with docker compose Ubuntu 20.04

as you might quickly notice, I'm not a network nor a docker guru. I appreciate all help big time! I'm trying to run a two applications in two different docker container using docker-compose. I managed to run 1 application using the host network.…
AGI_rev
  • 129
  • 10
0
votes
0 answers

IPVLAN CNI based pods across hosts using VLAN headers

I have 2 worker nodes in a Kubernetes cluster. The worker nodes are on the same L2 domain. $]cat ipvlanconf1.yaml apiVersion: "k8s.cni.cncf.io/v1" kind: NetworkAttachmentDefinition metadata: name: ipvlanconf1 namespace: cncf spec: config: '{ …
M.P
  • 61
  • 5
0
votes
1 answer

Pi-hole + Unbound (native. install) on Macvlan: How to configure Unbound to use the macvlan interface?

My Setup/Goal: I'm running a specific version of Debian 10 on my rpi 4b and have nextcloudpi installed on top. This results in the need for another (virtual) interface because nextcloudpi runs on apache2, port 80 (as well as pi-hole). I could have…
blowbuh
  • 37
  • 6
0
votes
1 answer

How do I make docker container use specific device on host machine for outgoing traffic?

How do I make docker container use specific device(say ens256) on host machine so that traffic will be forwarded outside via specified device(ens256) only?
hemant
  • 780
  • 1
  • 6
  • 8
0
votes
2 answers

MacVlan network with kubernetes

I setup the kubernetes cluster using k3s. I have one master and two nodes. I created docker macvlan network on one of the node. I want to achieve below mentioned scenario. Assign IP to container/pod.(user defined IP, not cluster IP). q1.Is there…
DRPandya
  • 113
  • 3
  • 14
0
votes
1 answer

Docker: Force inner container communication on network

I'm in the midst of a project that made to convert an existing VOIP legacy system into a dockerized form. The existing system consists of 5 different Linux machines, each machine is having 2 different network interfaces - one exposed to the public…
Eddie Romanenco
  • 311
  • 4
  • 16
0
votes
1 answer

docker macvlan outside subnet pfsense other subnet

I would like to know how can I make a docker container accessible outside its own network. example : docker container have a dedicated ip 172.16.0.240 , the mac0 adress is 172.16.0.40 and the host address is 172.16.0.20 I can access 172.16.0.240…
guillaume
  • 321
  • 1
  • 4
  • 18
0
votes
1 answer

how to create SSH server in namespaces?

I created two namespace say namespace_A and namespace_B. ip netns add namespace_A ip netns add namespace_B then created macvlan to each namespaces ip link add macvlan_A link wlo1 type macvlan mode bridge ip link set macvlan_A netns namespace_A ip…
user13507436
0
votes
0 answers

Docker: Multiple macvlans in an ascending IP order

Ubuntu 5.3.0-51-generic Docker version 19.03.6 (Docker CE) I have two network adapters with network interfaces Device0 and Device1 that i want to connect to Container0, and Container1. Each container needs to have its own ip-address, followed by…
0
votes
1 answer

docker containers with mac-vlan network show wrong ip after being restarted?

Hi everyone i have create a network with mac-vlan type in docker because i wanted my containers to be on the same LAN as host.Now the strange thing which i have noticed is that when i stop and then restart a container with docker start command the…
JayD
  • 748
  • 1
  • 13
  • 38
0
votes
1 answer

Docker network macvlan driver: gateway unreachable

I have a macvlan network created with the following command: docker network create -d macvlan --subnet=192.168.1.0/24 --gateway=192.168.1.2 -o parent=wlp2s0 pub_ne Where wlp2s0 is the name of the wireless interface of my laptop. gateway is…
MarVar
  • 3
  • 3
0
votes
0 answers

pods in different workers(nodes) is not reachable via macvlan

I have a kubernetes cluster which has 1 master and 2 workers, and deployed via kubeadm. For networking, I use multus and create two cni, the default is calico and another is macvlan. After I created 3 pods, they are deployed to 2 workers, and the…
Andy
  • 1
0
votes
0 answers

docker macvlan with iptables/netfilter

on my host I created 2 macvlan-interfaces in bridge-mode. One in the main-network-namespace, the other in a docker container. Both interfaces are in the same subnet. So far everything works. Now the traffic to the host and container should by…
seeseost
  • 61
  • 2
  • 7
0
votes
1 answer

JetBrains/Teamtools in docker container "Could not listen on address 0.0.0.0 and port 443"

Problem I'm trying to set up JetBrains Hub, Youtrack, Upsource and Teamcity in a docker container and configure each to be available on their own IP (macvlan) at the default ports 80 redirected to 443 and 443 for HTTPS (so the port numbers do not…
Holly
  • 1,305
  • 2
  • 15
  • 30