知识点:windows
ls 列出当前目录的文件。centos
dhclient 自动获取ip ; dhclient -r 杀死dhclient进程网络
ip add(ip addr);ifconfig 查看网卡状态编辑器
网关:没有网关就不能上网 比如路由器rest
yum install -y net-tools 安装ifconfig的命令进程
service network restart 重启网络服务ip
systemctl restart network.service 重启网络服务路由
虚拟机安装没有网卡的缘由。centos版本没有选64位。cmd
配置静态ip:虚拟机
ls /etc/sysconfig/net/network-scripts/ifcfg-enx33 网络配置文件地址
BOOTPROTO 网卡的启动方式 dhcp 动态ip (自动获取ip); static 静态ip(需本身设置添加)
IPADDR: ip地址
NETMASK: 网络掩码
GATEWAY: 网关
DNS :域名
知识点:
windows cmd 查ip命令 ipconfig ;routc -n 查看网关
排查方式能够经过如下:
具体流程
选中网络适配器,选择设置
选择桥接模式下面的勾不用点选 以后点肯定。而后在系统里面用dhclient -r 杀死dhclient进程,在使用dhclient从新获取ip
2. net网络链接模式下从新移除添加VMnet8 (等于更换了网段)
具体流程
点击虚拟网络编辑器
选中vmnet8并移除网络
在添加网络,选择vmnet8(由于以前移动的是vmnet8)
添加完后选中vmnet8 下面的选项要注意。选net模式。而后在系统里面用dhclient -r 杀死dhclient进程,在使用dhclient从新获取ip。