Thanks for your reply, this is my interfaces file.
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# Static IP for eth0 (Whonix)
iface eth0 inet static
address 192.168.0.20
network 192.168.0.0
netmask 255.255.255.255
broadcast 192.168.0.255
gateway 192.168.0.10
If wireless, add this line too: wireless_essid essid
The Kali VM isn't using any wireless
Also remember this: If you have network manager or wicd, they can be overriding the manual configuration in the interfaces file.
Even if network manager is overriding the interfaces file, why can't I assign static IP via command line?
Code:
ifconfig eth0 192.168.0.20/24
route add default gw 192.168.0.10 eth0