Sorry we lost some posts because of database errors!

*New 12.1 series Release:
2020-09-01: XigmaNAS 12.1.0.4.7728 - released

*New 11.4 series Release:
2020-08-27: XigmaNAS 11.4.0.4.7718 - 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: 29
Joined: 01 Jan 2016 20:47
Status: Offline

Changing MAC address of a NIC permanently

#1

Post by selulven »

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: 153
Joined: 07 Dec 2013 10:55
Status: Offline

Re: Changing MAC address of a NIC permanently

#2

Post by defcon999 »

... 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: 29
Joined: 01 Jan 2016 20:47
Status: Offline

Re: Changing MAC address of a NIC permanently

#3

Post by selulven »

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: 4971
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 »

probably you need to provide full path for ifconfig to work on postinit.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

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

Re: Changing MAC address of a NIC permanently

#5

Post by selulven »

So /sbin/ifconfig ?

Post Reply

Return to “LAN , Network controllers”