0

Can I have multiple NICs in one computer, having same MAC address? OS - Ubuntu Linux. Thanks

  • 1
    Sun Sparc systems had all NICs on the same MAC address. This gave no end of trouble when plugging more than one NIC into the same switch (e.g. with different VLANs). – wurtel May 15 '19 at 13:38

3 Answers3

2

Technically it is possible. But the reality is that a lot of funny (and painful) things will start happening. So better do not do it.

If you have a special case we can work with that.

zeridon
  • 760
  • 3
  • 6
0

Yep, it's possible. To change the MAC address you can use ip command:

ip link set dev <iface> address <mac>
Anton Danilov
  • 5,082
  • 2
  • 13
  • 23
0

Is it possible to have same MAC address on multiple NICs plugged to same Linux computer?

Yes.

Will that work as desired/expected?
Probably not.
For instance MAC-addresses are supposed to be unique within the same broadcast domain for TCP/IP to work as designed.

e.g. Duplicate MAC address on the same LAN possible?
Can duplicate MAC addresses on same LAN cause trouble?

HBruijn
  • 77,029
  • 24
  • 135
  • 201