IFCFG-MACVLAN(5)
π IFCFG-MACVLAN(5) β the macvlan glow-up guide π¦
okay so bestie, you're reading the ifcfg-macvlan manual page from the Network configuration section, and honestly? it's giving "make a fake network interface that thinks it's a real one." iconic. let's get into it β¨
π SYNOPSIS
/etc/sysconfig/network/ifcfg-*
that's the vibe. those are the config files we're playing with, periodt.
π§ MACVLANs
so to set up a macvlan interface, you need a config file that contains at minimum the mandatory:
MACVLAN_DEVICEβ this variable holds the real interface that gets used for the macvlan virtual interface. like, the actual physical one doing the heavy lifting. main character energy fr fr π
it may also contain the optional:
MACVLAN_MODEβ set this to one of the following supported modes:"private","vepa","bridge"and"pass-through/passthru". the default mode is"vepa". no cap, that's the one you get if you say nothing πΈMACVLAN_FLAGβ use this to set the"nopromisc"flag. by default, this flag is not set. so if you want it, you gotta say it π
also!! anifcfg-file for the interface specified byMACVLAN_DEVICEmust also be provided. in the most basic case, it should at least containSTARTMODE='auto'. don't forget this one bestie, it's lowkey important π
the rest of the MACVLAN interface IP and routes configuration does not differ from ordinary interfaces. so it's literally the same as always. see also man ifcfg and man routes for details π
π EXAMPLES
sets up macvlan0 macvlan interface on top of eth0:
ifcfg-macvlan0
STARTMODE='auto'
MACVLAN_DEVICE='eth0'
IPADDR='192.168.3.27/24'
sets up macvlan0 macvlan interface on top of eth0 and uses DHCP for IPADDR configuration:
ifcfg-macvlan0
STARTMODE='auto'
BOOTPROTO='dhcp'
MACVLAN_DEVICE='eth0'
look at those two. so clean. so simple. ate π
π COPYRIGHT
Copyright (C) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
(yes the legal girlies needed their moment too π«Ά)
π BUGS
found a bug? please report bugs as described at <https://bugs.opensuse.org> β go be a hero, bestie π
π AUTHORS
- Marius Tomaschewski
- Karol Mroz
the literal icons who made this happen π
π₯ SEE ALSO
routes(5), ifcfg(5), wicked(8).
iykyk β go read those next, you won't regret it π
okay that's the whole page, no notes. this manual page came from wicked, dated April 2014 β and that's the tea ββ¨ stay configured, bestie π
π¦ where this page comes from
- opensuse-leap 16.0: wicked 0.6.80-bp160.2.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: wicked 0.6.80-bp160.2.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: wicked 0.6.80-bp160.2.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: wicked 0.6.80-bp160.2.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms