How to assign new Mac Address to eth0/eth1 after board swap

Kernels & Hardware, configuring network, installing services

How to assign new Mac Address to eth0/eth1 after board swap

Postby gldickens3 » 2019-08-22 21:03

Hello,

I have a server that has been running for 6 years, however, the motherboard recently failed and so I replaced it with the exact same make and model motherboard. Prior to the failure, I had eth0 setup as my gateway to the internet via a Comcast Business connection and I have 5 static IP addresses from Comcast setup on eth0, eth0:0, eth0:1, eth0:2 and eth0:3. The server acts as the router and dhcp server for my local network and eth1 is the interface for the local network. However, the interfaces on the new motherboard obviously have different mac addresses than before and I cannot figure out how to reassign the new mac addresses to the old interface names: eth0 and eth1. Following the motherboard swap the interfaces were renamed enp3s0 and enp4s0 instead of eth0 and eth1 respectively.

So, can someone please explain to me how to reassign the new mac addresses to eth0 and eth1?

Thanks,

Gordon
gldickens3
 
Posts: 7
Joined: 2013-10-29 19:04

Re: How to assign new Mac Address to eth0/eth1 after board s

Postby Segfault » 2019-08-22 21:11

Pass 'net.ifnames=0' to your kernel.
Segfault
 
Posts: 914
Joined: 2005-09-24 12:24

Re: How to assign new Mac Address to eth0/eth1 after board s

Postby gldickens3 » 2019-08-23 20:09

Hi Segfault,

That worked. Thanks!

Gordon
gldickens3
 
Posts: 7
Joined: 2013-10-29 19:04


Return to System configuration

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable