当前位置:网站首页>【问题解决】虚拟机配置静态ip
【问题解决】虚拟机配置静态ip
2022-06-24 06:39:00 【看,未来】
1、vim /etc/sysconfig/network-scripts/ifcfg-ens33
这里的文件名可能会略有不同,ifconfig 看一下。
2、修改样本:
TYPE=Ethernet
BOOTPROTO=static
DNS1=8.8.8.8
IPADDR=192.168.1.128
NETMASK=255.255.255.0
GATEWAY=192.168.1.2
PROXY_METHOD=none
BROWSER_ONLY=no
#BOOTPROTO=dhcp #这句要注释
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=1f8eee29-20eb-42e6-b8c2-abd3a23210ec
DEVICE=ens33
ONBOOT=yes #这句要改成yes
3、重启网络服务器
service network restart
service network status
边栏推荐
- Go excel export tool encapsulation
- 【二叉树】——二叉树中序遍历
- leetcode:84. 柱状图中最大的矩形
- [JUC series] completionfuture of executor framework
- Surveying and mapping principle of GIS coordinate system: geoid / datum / reference ellipsoid /epsg/sri/wkt
- [binary number learning] - Introduction to trees
- 虚拟文件系统
- Project demo
- Papamelon 11 number of calculation permutation [combinatorics]
- How to operate the little red book account: making good use of the theory of long tail words
猜你喜欢

目标5000万日活,Pwnk欲打造下一代年轻人的“迪士尼乐园”

记录--关于JSP前台传参数到后台出现乱码的问题

Challenges brought by maker education to teacher development

Programmers use personalized Wallpapers

Localized operation on cloud, the sea going experience of kilimall, the largest e-commerce platform in East Africa

【二叉数学习】—— 树的介绍

华为云低时延技术的九大绝招

缓存操作rockscache原理图
Oracle case: ohasd crash on AIX

Leetcode: Sword finger offer 26: judge whether T1 contains all topologies of T2
随机推荐
Record -- about the problem of garbled code when JSP foreground passes parameters to the background
Brief introduction of domain name registration
Talk about how to dynamically specify feign call service name according to the environment
Programmers use personalized Wallpapers
oracle sql综合运用 习题
How do I check the IP address? What is an IP address
Easyscreen live streaming component pushes RTSP streams to easydarwin for operation process sharing
Application of intelligent reservoir management based on 3D GIS system
35岁危机?内卷成程序员代名词了
Koa source code analysis
Go breakpoint continuation
Interpreting the new features of Appstore: Customizing product pages and a/b test tools
数据库 存储过程 begin end
How long does the domain name filing take and what materials need to be prepared
Virtual file system
缓存操作rockscache原理图
[binary number learning] - Introduction to trees
When easynvs is deployed on the project site, easynvr cannot view the corresponding channel. Troubleshooting
Working principle of online video server selection method for online video platform
Do you want to research programming? I got six!