vm三种链接模式
cmd ipconfig
方便学习
一、Bridged(桥接模式)
(转载)https://blog.csdn.net/yangdan1025/article/details/80935321
- 设置虚拟机ip地址,与主机p地址在同一网段
- 设置子网掩码
- 设置虚拟机网关,与主机相同
- 设置虚拟机DNS,与主机相同
二、NAT(地址转换模式)指虚拟机在主机建立了一个虚拟网关,方便虚拟机路由到外网
(转载)https://blog.csdn.net/yangdan1025/article/details/80935321
无
三、Host-Only(仅主机模式)
(转载)https://blog.csdn.net/cai_cai_cai_1992/article/details/88149873?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522161582031416780269826451%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=161582031416780269826451&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_v2~rank_v29-8-88149873.pc_search_result_hbase_insert&utm_term=vmware%E8%99%9A%E6%8B%9F%E6%9C%BA%E4%B8%BB%E6%9C%BA%E6%A8%A1%E5%BC%8F
- IP(虚拟路由)必须要和虚拟机IP网段(192.168.122.1与192.168.122.233)保持一致
- 设置虚拟机网关,与虚拟路由相同
- 设置虚拟机DNS,与虚拟路由相同