Questions tagged [macvlan]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
94 views

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 ...
Maestro's user avatar
  • 189
0 votes
0 answers
318 views

virt-manager network options or virtual network interfaces

I want to ask about network options on virt-manager. I used to have the options shown in the given picture https://i.stack.imgur.com/P4SYR.jpg host device eth0 : macvtap host device wlan0 : macvtap ...
steerablenegligent's user avatar
1 vote
1 answer
144 views

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 ...
TheDiveO's user avatar
  • 1,237
0 votes
0 answers
127 views

macvlan device do not honor smaller mtu than physical device

I have a use case to create multiple MACVLAN devices from the same physical ethernet device. The requirement is also that some MACVLANs could offer jumbo packets (MTU=9215) and some disallow jumbo ...
Smash's user avatar
  • 101
0 votes
1 answer
1k views

macvlan + vlan configured interface does ignore vlan tags

I need to config two different MAC and IP addresses on the same physical device (eth1). But when I configure a macvlan interface in the default/global namespace and configure a vlan on top of it. I ...
stahlstngel's user avatar
1 vote
1 answer
742 views

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 ...
bomben's user avatar
  • 439
3 votes
1 answer
880 views

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 ...
joji's user avatar
  • 31
4 votes
1 answer
1k views

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: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue ...
pts's user avatar
  • 1,051
1 vote
0 answers
259 views

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 ...
00noob's user avatar
  • 11
0 votes
1 answer
691 views

Why I can't ping between two siblings macvlans in bridge mode?

In a Ubuntu 20.04 machine connected to my home LAN, I created macvlans under my ethernet device: $ sudo ip link add macvlan1 link enp37s0 type macvlan mode bridge $ sudo dhclient macvlan1 $ sudo ip ...
lvella's user avatar
  • 531
1 vote
0 answers
328 views

Use macvlan to emulate multiple hardware devices on network

I am trying to use linux's network name spaces to emulate multiple devices on my local network. I want this to appear as actual network devices, not my laptops IP masquerading on the subnet. Is this ...
Brett Smith's user avatar
0 votes
1 answer
2k views

Linux Interface Mode MACVLAN with Private mode doesn't seem to work as advertised (Ubuntu)

I am trying to create virtual interfaces (type MACVLAN) such that all communication between the interfaces is sent out of the host towards the eternal default gateway. There is plenty of writeups ...
Ricky's user avatar
  • 1
3 votes
1 answer
351 views

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 ...
shaifali Gupta's user avatar
2 votes
0 answers
667 views

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 ...
zille's user avatar
  • 21
3 votes
1 answer
2k views

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. ...
vivi's user avatar
  • 31
1 vote
2 answers
2k views

Slowing down a server with traffic shaping

I would like to study the behaviour of an application streaming from a slow server. I'm trying to take advantage of tc-netem to introduce a network delay. Before setting up a more complicated ...
Dacav's user avatar
  • 558
4 votes
2 answers
6k views

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 ...
peterh's user avatar
  • 9,671
3 votes
1 answer
2k views

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 ...
starblue's user avatar
  • 606
2 votes
2 answers
3k views

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 ...
Marc.2377's user avatar
  • 1,092
2 votes
0 answers
549 views

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) ...
Beakie's user avatar
  • 317
2 votes
0 answers
849 views

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 ...
Stas Navarici's user avatar
2 votes
0 answers
2k views

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-...
Otheus's user avatar
  • 6,078