I have a 6 u3 and I want to change the mac because I always get the same.
I have seen that there are people who change it in the boot.ini file and others the smsc95xx_mac_addr file, but I do not find any of the two.
Anyone know how to fix it?
Change mac
- odroid
- Site Admin
- Posts: 36930
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 1595 times
- Been thanked: 1072 times
- Contact:
-
- Posts: 2
- Joined: Wed Dec 26, 2018 10:19 am
- languages_spoken: english, spanish
- ODROIDs: Odroid U3
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: Change mac
This question is a little old, but i'll answer.
You could use macchanger
macchanger -m b8:bc:1e:56:ff:f7 eth0
You could use macchanger
macchanger -m b8:bc:1e:56:ff:f7 eth0
-
- Posts: 1
- Joined: Tue Dec 01, 2020 2:30 am
- languages_spoken: english, german
- ODROIDs: U3 running with openSUSE Tumbleweed default Kernel
- Has thanked: 1 time
- Been thanked: 0
- Contact:
Re: Change mac
On systemd based OS like openSUSE Tumbleweed you could use oneshot service during boot.
Create file:
/etc/systemd/system/macaddress.service
Activate service with
$ sudo systemctl enable macaddress
Create file:
/etc/systemd/system/macaddress.service
Code: Select all
[Unit]
Description=Change eth0 MAC address
Before=network-pre.target
Wants=network-pre.target
[Service]
Type=oneshot
ExecStart=/sbin/ip link set dev eth0 address 3a:02:ee:65:33:01
[Install]
WantedBy=network.target
$ sudo systemctl enable macaddress
-
- Posts: 83
- Joined: Mon Aug 12, 2019 12:27 pm
- languages_spoken: english
- Has thanked: 1 time
- Been thanked: 87 times
- Contact:
Re: Change mac
To use system.d services you'll probably need to bring the NIC down first, then change the MAC, then bring the NIC up again. Easily done with ExecStart commands.
Who is online
Users browsing this forum: No registered users and 1 guest