IFCFG-MACVLAN(5)

πŸ“¦ version 0.6.80, in opensuse-leap 16.0

πŸ’… 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!! an ifcfg- file for the interface specified by MACVLAN_DEVICE must also be provided. in the most basic case, it should at least contain STARTMODE='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 (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