Questions tagged [macvlan]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

Possible to get another HW address for a single WiFi connection using wpa_supplicant?

I built my own WiFi to WiFi router based on a raspberry pi 4. This is working quite well but some WiFi provider introduce a per device speed limit based on the HW address. Because of that I thought ...
user avatar
0 votes
1 answer
457 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 ...
user avatar
1 vote
1 answer
215 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 ...
user avatar
  • 295
2 votes
1 answer
352 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 ...
user avatar
  • 21
3 votes
1 answer
275 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 ...
user avatar
  • 951
1 vote
0 answers
153 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 ...
user avatar
  • 11
0 votes
1 answer
373 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 ...
user avatar
  • 521
1 vote
0 answers
210 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 ...
user avatar
0 votes
1 answer
989 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 ...
user avatar
  • 1
3 votes
1 answer
184 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 ...
user avatar
2 votes
0 answers
492 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 ...
user avatar
  • 21
2 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. ...
user avatar
  • 21
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 ...
user avatar
  • 488
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 ...
user avatar
  • 8,544
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 ...
user avatar
  • 566
1 vote
2 answers
2k 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 ...
user avatar
  • 850
2 votes
0 answers
463 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) ...
user avatar
  • 267
1 vote
0 answers
748 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 ...
user avatar
2 votes
0 answers
1k 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-...
user avatar
  • 5,559