Questions tagged [macvlan]

22 questions
4
votes
1 answer

Create additional IP address in a separate network namespace

I'm running Ubuntu 18.04, Linux kernel 5.4.0. My laptop has local IP address 192.168.0.130: $ sudo ip addr show dev wlp2s0 3: wlp2s0: mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether…
pts
  • 1,041
  • 13
  • 22
4
votes
2 answers

How to make reachable macvlan aliases in a different namespaces?

I have an interface, name eth0, in my main network namespace another interface, name jail0, in an alternate network namespace (name name0). This namespace is used by a jailed environment. jail0 is a macvlan alias of eth0. I see the network without…
peterh
  • 9,488
  • 16
  • 59
  • 88
3
votes
1 answer

Neighbour advertisement messages not coming from sub interface linux

I created a macvlan interface with eth0 as the parent interface. I can see NS for eth0 and NA msgs from eth0 but not for macvlan interface. However when I ping the gateway from macvlan, then NS msgs are seen for macvlan but macvlan is not responding…
joji
  • 31
  • 2
3
votes
1 answer

Traffic shaping using tc-netem on macvlan

I am setting up a virtual network using macvlans and I have connected traffic-control tc to each of them. I set the delay for each as 90ms. But on ping I get the time of 0.02 seconds. Why is tc not working on macvlan? I am using the following…
3
votes
1 answer

systemd-nspawn/machinectl and macvlan

I would like to create a nspawn container connected to the network via macvlan and dhcp. All documentation I have found were very instructive but did not offer a step by step procedure for this setup. What I did so far was to create the container…
vivi
  • 31
  • 4
3
votes
1 answer

Communication problem between macvlan interfaces when sockets are bound to devices

I have a Linux setup where two macvlan interfaces in mode bridge are added on the same physical interface, in the same IP subnet: ip link add link eth2 dev mvl0 type macvlan mode bridge ip link add link eth2 dev mvl1 type macvlan mode bridge ip addr…
starblue
  • 596
  • 4
  • 14
2
votes
0 answers

OpenWRT hairpin L2 traffic

I have an OpenWRT Router with embedded switch. I have a KVM machine with macvtap network access. I need guest to host communication. By connecting the host to my Cisco switch hairpin traffic is allowed. How do I achieve this behavior on the OpenWRT…
zille
  • 21
  • 1
2
votes
2 answers

Script to create macvlan bridge on the host doesn't work unless it's run twice

I have a script that should create a macvlan bridge in the host when it starts up. The host is an up-to-date Arch Linux. This is intended to allow host and guest to share the same network *and talk to each other*. I found instructions given…
Marc.2377
  • 1,072
  • 1
  • 17
  • 41
2
votes
0 answers

Priority routing with macvtap bridges

I have a machine with 2 ethernet cards. One with single interface, one with 4. I intend to use the single interface card (which is should be connected to my LAN) as the means of accessing (ssh etc) this machine (the host). I then intend to have 4…
Beakie
  • 307
  • 1
  • 4
  • 18
2
votes
0 answers

Dedicate one physcial port to one virtual port in proxmox without libvirt

I simply need to dedicate 1 host physical port to 1 virtual port of guest without help of libvirt. Host has: 2 physical interfaces: eth0 and eth1 1 virtual bridge(vmbr0), that include virtual interfaces of all VMs eth0 is in bridge mode with…
2
votes
0 answers

macvlan-network device doesn't communicate outside host from within a container

I am attempting to erect a set of Docker or LXC containers, each with their own routable IP address. The containing host is actually a VM running within RedHat Enterprise Virtualization, which is a re-branded and very old version of oVirt. In our…
Otheus
  • 5,945
  • 1
  • 22
  • 53
1
vote
1 answer

Macvtap connectivity lost after a few hours?

I setup a macvtap interface like this: ip link add link eth0 vlan type macvlan mode bridge ip address add 10.0.0.17 dev vlan ip link set dev vlan up ip route flush dev eth0 ip route flush dev vlan ip route add 10.0.0.0/24 dev vlan metric 0 ip route…
Maestro
  • 179
  • 7
1
vote
1 answer

systemd networkd and/or resolved blocking receiving (raw) packets on virtual network interface?

While working on some unit test code that basically sends raw Ethernet packets from one MACVLAN to another MACVLAN (virtual) network interface I noticed that most of the time the test code fails to receive any of the packets sent from the first to…
TheDiveO
  • 1,187
  • 1
  • 10
  • 24
1
vote
1 answer

How to correctly setup DNS for a macvlan in a namespace (ping IP works, ping URL does not)?

I have set up macvlan in a namespace on a server. I can ping accross default namespace and macvlan namespace, i can even ping the macvlan namespace from any other client in the LAN. But DNS is not working. What do I have to configure…
bomben
  • 417
  • 5
  • 18
1
vote
0 answers

how to create FTP server in namespace

Lets say i created two namespace in Ubuntu. ip netns add A ip netns add B now create Macvlan corresponding to each namespaces ip link add macvlanA link wlo1 type macvlan mode bridge ip link set macvlanA netns A ip netns exec A ifconfig macvlanA…
00noob
  • 11
  • 1
1
2