linux设置静态IP和挂载本地文件夹设置静态ip1。一、设置静态IP时,首先要将联网改为桥接模式;cdetc/sysconfig/network-script//进入网卡配置文件packageipa/查看所有网卡ethtoolenpsX/查看网卡信息,确定可用网卡vimifcfg-enpsX/编辑可用网卡配置文件,使用Tab键完成/#2。将连接方式从dhcp改为static,添加如下字段ONBOOT=yesNETMASK=255.255.255.0GATEWAY=192.168.1.1IPADDR=192.168.1.X#/3。修改dns配置文件vim/etc/resove.conf/进入dns配置文件添加如下字段/#nameserver192.168.1.1nameserver8.8.8.8#/systemctlrestartnetwork/重启网络测试:pingxmountfolder2.wmwaretools在/usr/bin中执行vmware-config-pl./vmware-config.pl即可3、安装完成后,yuminstallopen-vm-tools4。最后在/mnt/hgfs后面挂载mount-tvmhgfs.host:/voyager/mnt/hgfs。请使用这两个来实现5.sudomount-tfuse.vmhgfs-fuse.host://mnt/hgfs-oallow_other6.在/中添加一个.host://mnt/hgfsfuse.vmhgfs-fuseallow_other00等/fstab
