ich bräuchte mal eure Hilfe nachdem ich zwar viel im Forum gesucht habe, aber nichts mein Problem gelöst hat ... vielleicht bin ich aber auch nicht so begabt beim suchen
Was möchte ich machen: meine aktuelle MAC Adresse von Wlan0 temporär ändern.
Code: Alles auswählen
#nmcli
wlan0: verbunden to xxxxxxxxx
"Intel Alder Lake-P PCH CNVi"
wifi (iwlwifi), C4:75:AB:F8:D1:71, hw, mtu 1500
Code: Alles auswählen
# ifconfig wlan0 down
Code: Alles auswählen
# ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 6c:24:08:6c:02:2d txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xae300000-ae320000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Lokale Schleife)
RX packets 364 bytes 20720 (20.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 364 bytes 20720 (20.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=22 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Code: Alles auswählen
# macchanger -r wlan0
Current MAC: c4:75:ab:f8:d1:71 (unknown)
Permanent MAC: c4:75:ab:f8:d1:71 (unknown)
New MAC: c2:aa:1d:ed:88:af (unknown)
Code: Alles auswählen
# ifconfig wlan0 up
und tada ...Die "alte" MAC Adresse wird wieder genutzt:
Code: Alles auswählen
# macchanger -s wlan0
Current MAC: c4:75:ab:f8:d1:71 (unknown)
Permanent MAC: c4:75:ab:f8:d1:71 (unknown)
Ich habe auch schon geschaut ob etwas in den Interfaces definiert ist:
Als Tip aus dem Forum hatte ich in einem Post den Eintrag mit pre-up gelesen, aber auch der hatte nichts gebracht, deshalb wieder deaktiviert.
Code: Alles auswählen
cat interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
#pre-up ifconfig wlan0 hw ether 00:00:00:00:00:02
Danke und Gruß
Gallier