当前位置:网站首页>靶机无法获得IP地址, 该怎么办?
靶机无法获得IP地址, 该怎么办?
2022-07-19 00:36:00 【墨痕诉清风】
0x00 背景
在学习过程中,也有部分同学遇到了一个有些共性的问题,那就是靶机启动后无法自动获得IP地址。
调查之后我发现这个问题可以有两种解决方法:
0x01 使用VirtualBox虚拟机软件
靶机的作者通常更建议我们使用VirtualBox来运行靶机,而不是VMWare家的虚拟化产品。因此大家遇到靶机问题的时候,都可以先试试改用VirtualBox
0x02 单用户模式修改网络配置
如果靶机启动后无法获得IP地址(扫描无法发现靶机IP),请首先使用虚拟机的重启功能(Host+R)重新启动靶机,并在重启的黑屏阶段按住键盘的向上键,这样会调出系统启动菜单(可能需要尝试多次)
点击键盘中字母 “e” ,找到内核加载的配置行,如下图所示,将其修改为单用户启动模式
修改后( rw single init=/bin/bash)
然后按 Ctrl+x 进入单用户模式( root )
输入 ip a 命令,查看当前网卡设备名称
查看网络配置文件中的网卡名称
# RedHat Linux
vi /etc/network/interfaces
# UBUNTU
vi /etc/netplan/00-installer-config.yaml
将配置文件中的网卡名称修改为当前的正确名称,并确定DHCP配置启动
保存配置修改,重启计算机正常进入系统!
边栏推荐
- 阻碍NFT进一步发展的绊脚石都有哪些?从6个方面切入分析
- 【体系结构 四 存储结构】
- 企业内容管理(ECM)与文档管理的区别及其优势
- esxi6.7中手动克隆虚拟机的方法
- User defined MVC addition, deletion, modification and query
- 6、【WebGIS实战】软件操作篇——WebGIS开发环境搭建
- 10天学会STM32的学习心得总结
- 华为虚拟化FusionCompute知识点总结
- day03_ 2_ Process control
- [intelligent hardware] Jetson Nana extended video memory (memory)
猜你喜欢
LeetCode-补充题6-手撕堆排序
19.3 -> 19.12 打补丁中断了如何继续?
bond网卡模式配置
3年软件测试经验,薪资一直卡在10k,自动化测试如何提升和发展?
The LAAS protocol elephant of defi 2.0 is the key to revitalizing the development of defi track
LeetCode-394-字符串解码
Kotlin processing list set data
"Sharing" devaxpress WPF v22.1 latest version system environment configuration requirements
ENVI_IDL: 创建HDF5文件并写入数据(以将Geotiff文件写入HDF文件为例) + 详细解析
Understand the scope of the synchronized synchronization lock
随机推荐
day03_ 3_ Process control exercises
Luogu p1792 [national training team] tree planting solution
.NET 序列化枚举为字符串
Differences and advantages between enterprise content management (ECM) and document management
Raspberry pie 3B replaces 4.9.80 kernel (64bit)
sql注入总结
User defined MVC addition, deletion, modification and query
Chapter VIII tasks and functions
Luogu p2024 [noi2001] food chain solution
Optional empty judgment operation
[C exercise] arrow pattern
What is the difference between statements and expressions
gateway 注入ApplicationEventPublisher 空指针
LeetCode 练习——剑指 Offer 32 - III. 从上到下打印二叉树 III
Financial banking software testing super large strategy, the most popular financial banking big secret cover questions
Solution to expiration of visual studio tomato plug-in -- continue to resume trial
[Architecture IV storage structure]
[Niuke brush questions] / * daily four programming questions to share*/
Leetcode- supplementary question 6 - sorting by hand
深入理解ArrayList