mac vmware fusion10 nat 模式网络配置
mac vmware fusion10 nat 模式网络配置
1.虚拟机选择 nat 模式
虚拟机-->网络适配器-->网络适配器设置-->连接网络适配器(对勾)-->与我的 mac共享
2.vmnet1 & vmnet8 的配置文件位于 "/Applications/Vmware Fusion.app/Contents/Library" , 可修改默认地址也,vmnet8 还可以添加映射端口。
# cd /Library/Preferences/VMware\ Fusion
# cat networking
VERSION=,
answer VNET_1_DHCP yes
answer VNET_1_DHCP_CFG_HASH 6345810A7A91B075370FF0B472FA9334687AEB5A
answer VNET_1_HOSTONLY_NETMASK 255.255.255.0
answer VNET_1_HOSTONLY_SUBNET 172.19.173.0
answer VNET_1_VIRTUAL_ADAPTER yes
answer VNET_8_DHCP yes
answer VNET_8_DHCP_CFG_HASH 42662E369263BA0C7E405795C5A7F90C25D878FD
answer VNET_8_HOSTONLY_NETMASK 255.255.255.0
answer VNET_8_HOSTONLY_SUBNET 172.19.73.0
answer VNET_8_NAT yes
answer VNET_8_VIRTUAL_ADAPTER yes # cat vmnet1/dhcpd.conf
# Configuration file for ISC 2.0 vmnet-dhcpd operating on vmnet1.
#
# This file was automatically generated by the VMware configuration program.
# See Instructions below if you want to modify it.
#
# We set domain-name-servers to make some DHCP clients happy
# (dhclient as configured in SuSE, TurboLinux, etc.).
# We also supply a domain name to make pump (Red Hat .x) happy.
# ###### VMNET DHCP Configuration. Start of "DO NOT MODIFY SECTION" #####
# Modification Instructions: This section of the configuration file contains
# information generated by the configuration program. Do not modify this
# section.
# You are free to modify everything else. Also, this section must start
# on a new line
# This file will get backed up with a different name in the same directory
# if this section is edited and you try to configure DHCP again. # Written at: // ::
allow unknown-clients;
default-lease-time ; # default is minutes
max-lease-time ; # default is hours subnet 172.19.173.0 netmask 255.255.255.0 {
range 172.19.173.128 172.19.173.254;
option broadcast-address 192.168.173.255;
option domain-name-servers 192.168.173.1;
option domain-name localdomain;
default-lease-time ; # default is minutes
max-lease-time ; # default is hours
}
host vmnet1 {
hardware ethernet :::C0::;
fixed-address 192.168.173.1;
option domain-name-servers 0.0.0.0;
option domain-name "";
}
####### VMNET DHCP Configuration. End of "DO NOT MODIFY SECTION" ####### # cat vmnet8/dhcpd.conf
# Configuration file for ISC 2.0 vmnet-dhcpd operating on vmnet8.
#
# This file was automatically generated by the VMware configuration program.
# See Instructions below if you want to modify it.
#
# We set domain-name-servers to make some DHCP clients happy
# (dhclient as configured in SuSE, TurboLinux, etc.).
# We also supply a domain name to make pump (Red Hat .x) happy.
# ###### VMNET DHCP Configuration. Start of "DO NOT MODIFY SECTION" #####
# Modification Instructions: This section of the configuration file contains
# information generated by the configuration program. Do not modify this
# section.
# You are free to modify everything else. Also, this section must start
# on a new line
# This file will get backed up with a different name in the same directory
# if this section is edited and you try to configure DHCP again. # Written at: // ::
allow unknown-clients;
default-lease-time ; # default is minutes
max-lease-time ; # default is hours subnet 192.168.73.0 netmask 255.255.255.0 {
range 192.168.73.128 192.168.73.254;
option broadcast-address 192.168.73.255;
option domain-name-servers 192.168.73.2;
option domain-name localdomain;
default-lease-time ; # default is minutes
max-lease-time ; # default is hours
option netbios-name-servers 192.168.73.2;
option routers 192.168.73.2;
}
host vmnet8 {
hardware ethernet :::C0::;
fixed-address 192.168.73.1;
option domain-name-servers 0.0.0.0;
option domain-name "";
option routers 0.0.0.0;
}
####### VMNET DHCP Configuration. End of "DO NOT MODIFY SECTION" ####### # cat vmnet8/nat.conf
# VMware NAT configuration file [host] # NAT gateway address
ip = 192.168.73.2
netmask = 255.255.255.0 # VMnet device if not specified on command line
device = vmnet8 # Allow PORT/EPRT FTP commands (they need incoming TCP stream ...)
activeFTP = # Allows the source to have any OUI. Turn this on if you change the OUI
# in the MAC address of your virtual machines.
allowAnyOUI = # Controls if (TCP) connections should be reset when the adapter they are
# bound to goes down
resetConnectionOnLinkDown = # Controls if (TCP) connection should be reset when guest packet's destination
# is NAT's IP address
resetConnectionOnDestLocalHost = # Controls if enable nat ipv6
natIp6Enable = # Controls if enable nat ipv6
natIp6Prefix = fd15:4ba5:5a2b:::/ [tcp] # Value of timeout in TCP TIME_WAIT state, in seconds
timeWaitTimeout = [udp] # Timeout in seconds. Dynamically-created UDP mappings will purged if
# idle for this duration of time = no timeout, default = ; real
# value might be up to % longer
timeout = [netbios]
# Timeout for NBNS queries.
nbnsTimeout = # Number of retries for each NBNS query.
nbnsRetries = # Timeout for NBDS queries.
nbdsTimeout = [incomingtcp] # TCP 端口映射
# Use these with care - anyone can enter into your VM through these...
# The format and example are as follows:
#<external port number> = <VM's IP address>:<VM's port number>
# = 172.16.3.128: [incomingudp] # UDP 端口映射
# UDP port forwarding example
# = 172.16.3.0:
3.查找子网掩码和 dns 地址
mac ->系统偏好设置->网络->高级
NETMASK=255.255.254.0(子网掩码)
DNS1=172.19.160.145
DNS2=172.19.160.146
4.修改Centos7中ifcfg-xxx文件
vi /etc/sysconfig/network-scripts/ifcfg-ens33
增加或修改
BOOTPROTO="static",
IPADDR="172.19.163.11",
NETMASK="255.255.255.0",
DNS1="172.19.160.145",
DNS2="172.19.160.146",
GATEWAY="172.19.163.2",
ONBOOT="yes"
5.重启网络(失败reboot linux 重启 vmware)
service network restart
mac vmware fusion10 nat 模式网络配置的更多相关文章
- 【转载】VMware虚拟机NAT模式网络配置图文教程
原文:https://blog.csdn.net/dingguanyi/article/details/77829085 一.引言 在Windows上搭建集群实验环境时,为能够让集群结点之间相互通信, ...
- 虚拟机(VMWare)NAT 模式,配置静态IP上网的问题
问题描述: 感觉问题解决了回过头来想就很简单,但是没解决就怎么也找不到问题,知识储备捉襟见肘.针对这个问题我好长时间才弄好,各种找资料,也证明本人筛选有用博客的能力比较低,先让我哭会去…… 在虚拟的实 ...
- Vmware在NAT模式下网络配置详解
Vmware在NAT模式下网络配置详解 Linux中的网络配置对于接触Linux不久的小白菜来说,还是小有难度的,可能是不熟悉这种与windows系列迥然不同的命令行操作,也可能是由于对Linux的结 ...
- VMware虚拟CentOS 6.5在NAT模式下配置静态IP地址及Xshell远程控制配置
VMware虚拟CentOS 6.5在NAT模式下配置静态IP地址及Xshell远程控制配置 标签: LinuxXshellCentOS 2016-10-15 04:58 127人阅读 评论(0) 收 ...
- VMware虚拟机 NAT模式 配置静态ip
前言:Ubuntu 16.04 VMware虚拟机 NAT模式 配置静态ip,这个问题困扰我好长时间,桥接的静态ip我会了,然而用NAT 的方式配置集群会更好.(NAT 方式客户机之间的通讯不经过路由 ...
- Mac下Virtual Box Host-Only网络配置
Mac下的虚拟机其实有很多,Parallels.VMware Fusion.Virtual Box都不错,Parallels是目前试过感觉最好的,Fusion装64位系统驱动支持似乎不完善,而且混合模 ...
- Mac VMware fusion nat 外网映射
当我们在使用VMware fusion NAT模式时,相当于形成了一个虚拟的局域网VLAN,这时虚拟机可以对外通信,但是nat对外隐藏了内网,外网访问虚拟机的时候就会遇到问题,比如ping ,ssh ...
- VMWare-Linux NAT模式联网配置
VMWare-Linux NAT模式联网配置 摘自:https://blog.csdn.net/a56112777/article/details/83053566 (注意使用root用户) 1. ...
- VMware虚拟机NAT模式无法上外网
VMware虚拟机NAT模式无法上外网排错思路 1,确保三种模式只有一种在连接 2,确保ip配置正确 配置的子网跟DHCP必须是同一网段 3,确保网关配置正确 网关不管怎么配,一定不要配192.168 ...
随机推荐
- mysql查询用if控制显示列
1: select *,if(sex=1,”男”,”女”) as sex from user2: select CASE sex WHEN 1 THEN ‘男’ ELSE ‘女’ END as sex ...
- 阿里云服务器centos下安装配置svn服务器
阿里云服务器centos下安装配置svn服务器 1.安装svn服务器端yum install subversion 从镜像下载安装svn服务器端中间会提示是否ok,输入y,确认安装成功提 ...
- 201703-1 分蛋糕 Java
思路: 注意最后如果剩余蛋糕的重量小于k,也算一个人分到 import java.util.Scanner; public class Main { public static void main(S ...
- tensorflow笔记(北大网课实战)
1. tf.multiply(x,y1) # 对应元素相乘 tf.matmul(x,y2) # 矩阵相乘 2.会话:执行计算图中的节点运算的. with tf.Session() as sess: p ...
- c# 多线程——入门学习
1. 概念介绍 1.1 线程 线程是操作系统能够进行运算调度的最小单位,包含在进程之中,是进程中的实际运作单位.一条线程指的时进程中一个单一顺序的控制流,一个进程中可以并发多个线程,每条线程并行执行不 ...
- 条款02:尽量以const,enum,inline替换#define
目录 1. 总结 2. 使用const常量或enum替换宏常量 class外部的常量指针 class专属常量 1. 总结 对于单纯常量,最好以const常量或enum替换#define 对于宏代码段, ...
- UML-类图-构造型应用场景是什么?
1.什么是构造型? 抽象出来的标准的模型元素. 2.有哪些? 1.预定义的,如:<<destory>> 2.自定义的 3.自定义
- emacs 配置文件
使用方式: git clone 到本地,把 emacs 复制到 ~/.emacs.d 打开 emacs 会自动安装包 https://github.com/NorseLZJ/lzj-config/tr ...
- pandas 学习笔记【持续更新】
import numpy as np import pandas as pd import matplotlib.pyplot as plt df1 = pd.DataFrame(np.arange( ...
- Python笔记_第三篇_面向对象_5.一个关于类的实例(人开枪射击子弹)
1. 我们学了类的这些东西,用这些类我们来操作一个关于类的实例. 2. 题目:人开枪射击子弹,然后具有装弹动作,然后再开枪. 第一步:设计类: 人类名:Person属性:gun行为:fire,fill ...