When I type the command ifconfig on starting kali linux in virtual box I am not assigned a MAC address. See the terminal trace below.
┌──(root㉿kali)-[/home/kali]└─# ifconfigeth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255 inet6 fd00::7648:cc8d:8ce9:810c prefixlen 64 scopeid 0x0<global> inet6 fe80::e9e0:a628:3268:d555 prefixlen 64 scopeid 0x20<link> ether 08:00:27:ad:25:87 txqueuelen 1000 (Ethernet) RX packets 5 bytes 2724 (2.6 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 25 bytes 3961 (3.8 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: 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 (Local Loopback) RX packets 8 bytes 480 (480.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 8 bytes 480 (480.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 unspec 06-F1-8D-DE-BA-70-00-94-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC) 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 0Then I reboot Kali linux by typing the command reboot. And a MAC address is assigned as shown in the terminal trace below.┌──(root㉿kali)-[/home/kali]└─# ifconfigeth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255 inet6 fe80::e9e0:a628:3268:d555 prefixlen 64 scopeid 0x20<link> inet6 fd00::7648:cc8d:8ce9:810c prefixlen 64 scopeid 0x0<global> ether 08:00:27:ad:25:87 txqueuelen 1000 (Ethernet) RX packets 6 bytes 3314 (3.2 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 26 bytes 4610 (4.5 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: 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 (Local Loopback) RX packets 8 bytes 480 (480.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 8 bytes 480 (480.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether f2:d4:bd:ed:67:f3 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 0Now I switch on the Monitor mode on the wireless adapter by typing the following commands.> ifconfig wlan0 down> iwconfig wlan0 mode monitor> ifconfig wlan0 upWireless adapter switches to monitor mode as shown below.┌──(root㉿kali)-[/home/kali]└─# ifconfig wlan0 down┌──(root㉿kali)-[/home/kali]└─# iwconfig wlan0 mode monitor┌──(root㉿kali)-[/home/kali]└─# ifconfig wlan0 up ┌──(root㉿kali)-[/home/kali]└─# iwconfig lo no wireless extensions.eth0 no wireless extensions.wlan0 IEEE 802.11 Mode:Monitor Frequency:2.412 GHz Tx-Power=20 dBm Retry short limit:7 RTS thr=2347 B Fragment thr:off Power Management:off
Now if I type the command ifconfig, the MAC address disappear. See trace below.
┌──(root㉿kali)-[/home/kali]└─# ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255 inet6 fe80::e9e0:a628:3268:d555 prefixlen 64 scopeid 0x20<link> inet6 fd00::7648:cc8d:8ce9:810c prefixlen 64 scopeid 0x0<global> ether 08:00:27:ad:25:87 txqueuelen 1000 (Ethernet) RX packets 6 bytes 3314 (3.2 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 28 bytes 4830 (4.7 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: 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 (Local Loopback) RX packets 8 bytes 480 (480.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 8 bytes 480 (480.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 unspec F2-D4-BD-ED-67-F3-00-9F-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC) 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
Please help me out. This problem is inhibiting my cybersecurity studies.