当前位置:网站首页>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

边栏推荐
- 取组合数问题
- 记录一下 clearfix 清除浮动
- Learn RX programming from me -- concat
- 软件架构与设计(六)-----层次结构体
- Framework customization series (VI) -- shield fallbackhome mobile phone from pop-up during startup and directly enter the launcher
- 已拿下华为85亿元屏幕订单?维信诺回应:客户要求保密,无法回复!
- samba服务器搭建指南
- 使用systemd管理服务
- 【直播预约】数据架构演进下的新挑战——上海站
- 软件架构与设计(四)-----数据流架构
猜你喜欢

虚拟机之NAT模式下设置静态IP

About the pictures inserted in the word document, only the following part is displayed

电压转电流/电流转电压模块

Matlab exports high-definition pictures without distortion in word compression and PDF conversion

1路编码器2路DI转速测量RS485串口连接1路DO报警模块IBF151

DNS域名解析协议

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

About how Simulink generates model coverage reports

PXE network installation

MIT pointed out that the public pre training model should not be used indiscriminately
随机推荐
软件架构与设计(八)-----分布式架构
Regular expression (4)
如何快速接入统一的认证鉴权体系
String (3)
1200 times faster! MIT develops a new generation of drug research and development AI, and suspends the old model
软件架构与设计(一)-----关键原则
Software architecture and design (II) -- Architecture Model
有道云笔记去除底部广告
Framework定制系列(十)-----SystemUI定制状态栏statusbar和导航栏navigationbar教程
Flutter中是使用RxDart代替Stateful
【直播预约】数据架构演进下的新挑战——上海站
Stateflow logic system modeling
800V high voltage system
Using SYSTEMd to manage services
Matlab exports high-definition pictures without distortion in word compression and PDF conversion
以太网转RS485串口计数器WiFI模块 LED灯光控制器IBF165
samba服务器搭建指南
ECCV 2022 | ssp: a new idea of small sample tasks with self-supporting matching
Canoe tutorial
Knowledge points qwer