*New 12.1 series Release:
2019-11-08: XigmaNAS 12.1.0.4.7091 - released!

*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Changing MAC address of a NIC permanently

NIC, network controllers, compatibility questions, WOL, wake on lan
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
selulven
Starter
Starter
Posts: 41
Joined: 01 Jan 2016 20:47
Status: Offline

Changing MAC address of a NIC permanently

#1

Post by selulven » 20 Dec 2018 09:54

My NAS4Free server has a dual port NIC installed. One of the interfaces reports an invalid MAC address, for some reason. The interface responds to network traffic to 00:1b:21:ba:e9:71, but the OS sees the MAC address as ff:ff:21:ba:e9:71. When another machine on the network looks up the MAC address using ARP, the reply is ff:ff:21:ba:e9:71. Since the interface responds to 00:1b:21:ba:e9:71, any traffic TO the interface fails. Traffic from the interface is fine.

I've fixed this by running

Code: Select all

ifconfig ix0 ether 00:1b:21:ba:e9:71
but this fix is temporary and isn't persisted when my NAS4Free on a USB stick restarts. Is there any way for me to make this fix permanent?

defcon999
Advanced User
Advanced User
Posts: 151
Joined: 07 Dec 2013 10:55
Status: Offline

Re: Changing MAC address of a NIC permanently

#2

Post by defcon999 » 20 Dec 2018 10:01

... as PostInit-Script??

Gesendet von meinem SM-T900 mit Tapatalk

NAS: HP MicroServer Gen8 - CPU: Intel Xeon E3-1230 V2 - QuadCore 3,3 GHz ** 16 GB ECC RAM ** 4 x 2 TB WD Red RaidZ1 ** Samsung 840 120 GB SSD RootOnZFS-System ** 1 x 6 TB WD Red RClone lokal via USB 3.0 Inateck USB 3.0 Dualschacht Festplatten-Dockingstation ** Cloning mit 1 x 6 TB WD RED im 2. Schacht der Docking-Station ** 12.0.0.4 - Reticulus (revision 6928)** Embedded-Installation ** OneButtonInstaller: Plex & RClone -- VirtualBox: Ubuntu-Server with Pi-Hole

selulven
Starter
Starter
Posts: 41
Joined: 01 Jan 2016 20:47
Status: Offline

Re: Changing MAC address of a NIC permanently

#3

Post by selulven » 20 Dec 2018 11:54

I'll give that a try! The exact same command, as a PostInit command? Could the interfaces potentially change device names so the interface in question is no longer ix0?

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4945
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Changing MAC address of a NIC permanently

#4

Post by raulfg3 » 20 Dec 2018 13:26

probably you need to provide full path for ifconfig to work on postinit.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

selulven
Starter
Starter
Posts: 41
Joined: 01 Jan 2016 20:47
Status: Offline

Re: Changing MAC address of a NIC permanently

#5

Post by selulven » 21 Dec 2018 08:55

So /sbin/ifconfig ?

Post Reply

Return to “LAN , Network controllers”