当前位置:网站首页>虚拟机更改IP地址
虚拟机更改IP地址
2022-08-11 05:29:00 【十月一养猪120斤】
更改桥接模式:
虚拟机-设置-网络适配器-桥接模式
1、cd /etc/sysconfig/network-scripts/目录下ifcfg-ens是网卡信息,打开修改
修改部分:BOOTPROTO=static
ONBOOT=yes
新增部分:IPADDR=10.16.133.123 #设置IP地址,和物理主机ip网段相同,前三位一样
PREFIX=18#前缀 255.255.192.0前缀为18
GATEWAY=10.16.133.254 #和物理主机网关相同
DNS1=8.8.8.8 #Google DNS服务器,可以只有一个默认
DNS1=8.8.4.4
2、vi /etc/sysconfig/network
添加网关地址GATEWAY=
3、重启网卡service network restart
边栏推荐
- SearchGuard configuration
- SearchGuard证书配置
- Day 72
- 【无标题】
- Jetpack之dataBinding
- Typescript学习日记,typescript从基础到进阶(第一章)
- openlayer中实现截图框截图的功能
- 场景驱动的特征计算方式OpenMLDB,高效实现“现算先用”
- Vscode remote connection server terminal zsh+Oh-my-zsh + Powerlevel10 + Autosuggestions + Autojump + Syntax-highlighting
- js 学习进阶(事件高级 pink老师教学笔记)
猜你喜欢
OpenMLDB v0.5.0 发布 | 性能、成本、灵活性再攀高峰
关于openlayer中swipe位置偏移的问题
umi约定式路由规则修改
The Summer of Open Source 2022 is coming | Welcome to sign up for the OpenMLDB community project~
Wonderful linkage | OpenMLDB Pulsar Connector principle and practical operation
Day 81
Day 87
[Meetup]OpenMLDBxDolphinScheduler 链接特征工程与调度环节,打造端到端MLOps工作流
微信小程序_开发工具的安装
父子节点数据格式不一致的树状列表实现
随机推荐
C语言实现简易扫雷(附带源码)
OpenMLDB Pulsar Connector:高效打通实时数据到特征工程
OpenMLDB: Consistent production-level feature computing platform online and offline
He Kaiming's new work ViTDET: target detection field, subverting the concept of layered backbone
Tinker的自我介绍
Day 68
Promise 中状态改变和回调执行先后顺序 和promise多次回调
USB 枚举过程中8 字节标准请求解析
gerrit 配置SSH Key和账号、邮箱信息
typescript学习日记,从基础到进阶(第二章)
openlayer中实现截图框截图的功能
2021-09-11 C language variables and memory allocation
精彩联动 | OpenMLDB Pulsar Connector原理和实操
js 学习进阶(事件高级 pink老师教学笔记)
Tinker接入全流程---编译篇
Byte (byte) and bit (bit)
Fourth Paradigm OpenMLDB optimization innovation paper was accepted by VLDB, the top international database association
C语言实现猜数字(附带源码,可直接运行)
The third phase of the contributor task is wonderful
Day 69