注:安裝過程中省略了大部分的默認選擇,僅把要注意的幾點表現出來
root@kali:~# Mount /dev/sr0 /media
十三、解壓縮VMwareTools-9.9.2-2496486.tar.gz到root
root@kali:~# tar zxvf VMwareTools-9.9.2-2496486.tar.gz –C /root/
root@kali:~# cd VMware-tools-distrib/
root@kali:~/ VMware-tools-distrib# ./ VMware-install.pl
ifconfig eth0 down //端口關閉
ifconfig eth0 192.168.1.10 //只修改ip地址
ifconfig eth0 192.168.1.10/24 或者 ifconfig eth0 1.1.1.1 netmask 255.0.0.0
netstat -rn //查看路由表
route del default eth0 //刪除eth0上的默認路由
route add default gw 192.168.1.1 //添加默認路由
# 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
# The primary network interface
allow-hotplug eth0 auto eth0 //增加了該選項,因爲使用networking restart時系統啓動 auto的網卡,如不加上則啓動無反應
iface eth0 inet static //配置了static 爲靜態
ip address 192.168.1.4 //設置ip地址
netmask 255.255.255.0 //設置掩碼
gateway 192.168.1.1 //設置網關
# This is an autoconfigured IPv6 interface
iface eth0 inet6 auto
iface eth0 inet dhcp //配置了dhcp動態ip
nameserver 202.106.0.20
nameserver 202.106.46.151
nameserver 8.8.8.8