You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to change the MAC address of an EC2 instance running Amazon Linux 2 but I get this error. I'm running as root.
# /usr/local/bin/macchanger -a eth0
Current MAC: 06:81:00:44:12:55 (unknown)
Permanent MAC: 06:81:00:44:12:55 (unknown)
[ERROR] Could not change MAC: interface up or insufficient permissions: Operation not supported
I tried a simple shell script like this, but this kills the internet connection and it never comes back.
ip link set eth0 down
macchanger -a eth0
ip link set eth0 up
Some details about the system:
# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 06:81:00:44:12:55 brd ff:ff:ff:ff:ff:ff
# uname -r
4.14.219-161.340.amzn2.x86_64
# lspci -v -s :00:05.0
00:05.0 Ethernet controller: Amazon.com, Inc. Elastic Network Adapter (ENA)
Physical Slot: 5
Flags: bus master, fast devsel, latency 0
Memory at febf4000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [b0] MSI-X: Enable+ Count=9 Masked-
Kernel driver in use: ena
Kernel modules: ena
The text was updated successfully, but these errors were encountered:
I'm trying to change the MAC address of an EC2 instance running Amazon Linux 2 but I get this error. I'm running as root.
I tried a simple shell script like this, but this kills the internet connection and it never comes back.
Some details about the system:
The text was updated successfully, but these errors were encountered: