当前位置:网站首页>Set static IP in NAT mode of virtual machine
Set static IP in NAT mode of virtual machine
2022-07-28 15:51:00 【1 2 3 pursue dreams together】
1、 Open virtual network configuration to see NAT Gateway in mode ,IP Section .


2、 Enter configuration file
vim /etc/sysconfig/network-scripts/ifcfg-ens33
3、 Modify the configuration file
TYPE=Ethernet
# Change to static
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=1899af37-70a5-4ad2-bde6-73b4e141582e
DEVICE=ens33
ONBOOT=yes#ip Address
IPADDR=192.168.1.130# gateway
GATEWAY=192.168.1.2#dns Domain name resolver
DNS1=114.114.114.114#dns Domain name resolver
DNS2=8.8.8.8# Subnet mask
NETMASK=255.255.255.0
HWADDR=00:0c:29:a1:40:20
4、 Restart the network
systemctl restart network
5、 test
ping Baidu server can accept the package, indicating that it is successful

边栏推荐
- 【直播预约】数据架构演进下的新挑战——上海站
- Principle and application of low cost / small volume module rs485/232 to analog signal ibf33
- 软件架构与设计(四)-----数据流架构
- How to turn on and off flight mode through ADB
- 为赴美上市做准备?Arm宣布将剥离物联网服务业务:未来将聚焦芯片底层设计
- 数据实时反馈技术
- 知识点qwer
- 电压转电流/电流转电压模块
- About the pictures inserted in the word document, only the following part is displayed
- Multipurpose mixed signal 8ai/4di/do to serial port rs485/232modbus acquisition module ibf30
猜你喜欢

MIT pointed out that the public pre training model should not be used indiscriminately

NTC,PT100热电阻转4-20mA温度信号转换器

Software architecture and design (x) -- Architecture Technology

What is the concept of game testing? What are the test methods and processes?

A tour of gRPC:05 - gRPC server straming 服务端流

An article about rsocket protocol

Multifunctional mixed signal AI acquisition / switching value di/do acquisition to rs485/232/modbus module

Shell programming specifications and variables

如何有效进行回顾会议(上)?

Software architecture and design (I) -- key principles
随机推荐
How to build opengrok code server
Framework定制系列(六)-----屏蔽FallbackHome手机启动中弹窗直接进入Launcher
Leetcode bracket validity problem
28.55亿元!青岛芯恩增资完成:兴橙集电成第一大股东,持股57.10%
22. Realization of message processing task
Learn RX programming from me -- concat
Daily news on July 28, 2022: Science: AI has made another breakthrough in protein design, and can design specific functional proteins
1路编码器2路DI转速测量RS485串口连接1路DO报警模块IBF151
一次失败的破解经历
Easyexcel complex header export (one to many)
记录一下 clearfix 清除浮动
Late 2021 year-end summary
Matlab exports high-definition pictures without distortion in word compression and PDF conversion
Principle and application of low cost / small volume module rs485/232 to analog signal ibf33
Virturalbox solves the problem of kernel driver
Knowledge points qwer
软件架构与设计(一)-----关键原则
已拿下华为85亿元屏幕订单?维信诺回应:客户要求保密,无法回复!
The price war of off screen fingerprints has resumed, and second-line manufacturers are expected to win 30% of the market this year?
Pytorch - optimize model parameters