IFCFG-MACVLAN(5) | Network configuration | IFCFG-MACVLAN(5) |
NAME¶
ifcfg-macvlan - MACVLAN interface configuration
SYNOPSIS¶
/etc/sysconfig/network/ifcfg-*
MACVLANs¶
To setup a macvlan interface you need a configuration file that contains at least the mandatory
- MACVLAN_DEVICE
- variable with the real interface used for the macvlan virtual interface.
It may contain the optional
- MACVLAN_MODE
- variable that may be set to one of the following supported modes: "private", "vepa", "bridge" and "pass-through/passthru". The default mode is "vepa".
You may also use the
- MACVLAN_FLAG
- variable to set the "nopromisc" flag. By default, this flag is not set.
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'.
The rest of the MACVLAN interface IP and routes configuration do not differ from ordinary interfaces. 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'
COPYRIGHT¶
Copyright (C) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
BUGS¶
Please report bugs as described at <https://bugs.opensuse.org>
AUTHORS¶
Marius Tomaschewski Karol Mroz
SEE ALSO¶
April 2014 | wicked |