[dpdk-users] Configuring MAC Address of KNI - Don't want random

Andriy Berestovskyy aber at semihalf.com
Mon Apr 11 11:01:47 CEST 2016

Hi sml,
The KNI uses old ixgbe and igb Linux drivers in order to support
ethtool. Here is the list of supported e1000 devices:

The list is somewhat shorter than the list of supported devices in
DPDK itself. So there are some devices which work well in DPDK, but
KNI generates random MACs for them.

The DPDK community decided to get rid of the KNI, so your only option
is to set the MAC on vEth using ip(8) or ifconfig(8). You can also add
an option into the /etc/network/interfaces (or similar), so the MAC
will be configured once your vEth device is up.


On Sat, Apr 9, 2016 at 7:41 AM, sml <sml.caerus at gmail.com> wrote:
> Hello,
> I am having an issue where when creating the KNI interface I would like to
> KEEP the hardware MAC address.  I can properly create the interface.  It
> starts in a down state, I then need to manually ifconfig the IP Address and
> MAC address with UP to get what I need.  If I just do the plain ifconfig -v
> vEth0_0 up - it assigns a random mac address.  (Using a e1000 as well I350
> and emulated e1000)
> This also happens if you DOWN the interface and bring it UP using ifconfig
> again.  Using Version 2.2.0
> What is the proper procedure/flow for doing this within the codebase so I
> can have the end result of the original hardware MAC and the interface in
> an UP state?
> Sorry if this seems basic I just can't seem to find any examples of how
> this is done.

Andriy Berestovskyy

More information about the users mailing list