Changing MAC Address on PiKVM
- Connect with PiKVM via serial connection. While using a
minicom
there is a need to use the USB-UART converter.
Open the serial connection by executing the following command:
```bash
sudo minicom -D /dev/ttyUSB0 -b 115200
```
- Check the current MAC address of the network interface:
ip a
Note the exact interface name for later use.
- Remount the filesystem in read-write mode:
sudo rw
- Navigate to the network configuration files:
cd /etc/systemd/network
- Open the file corresponding to desired network interface using nano or vim:
sudo nano wlan0.network
- Add following lines to the file. Replace
xx:xx:xx:xx:xx:xx
with desired MAC address:
[Link]
MACAddress=xx:xx:xx:xx:xx:xx
Save the file and exit the editor.
- Restart the systemd-networkd service:
sudo systemctl restart systemd-networkd
- Remount the filesystem in read-only mode:
sudo ro
- Reboot the system:
sudo reboot now
- Verify the new MAC address for your interface:
ip a