当前位置:网站首页>2022/7/10RHCSA
2022/7/10RHCSA
2022-07-16 07:53:00 【Sun】
1、 stay VMware How to create virtual machines and install linux operating system
https://blog.csdn.net/weixin_57949883/article/details/125708510?spm=1001.2014.3001.5501
2、 Change the hostname to server.local
Modify the temporary host name 
Refresh the connection 
permanent , What is modified is the file content . restart linux The system still takes effect after .
3、 Change the network connection mode of virtual machine to host only mode 、nat Pattern 、 Bridge mode and get ip Address using ssh Connect remotely through different users
4、 After the remote connection is successful , Summarize which network mode can access the Internet ( have access to ping Command test ) And look at root The difference between the home directory of users and ordinary users
Set bridge mode :

Bridge mode is to communicate between host network card and virtual network card by virtual bridge . It's similar to virtualizing a physical host as a switch , All virtual machines with bridging settings are connected to an interface of this switch , The physical host is also plugged into the switch , So all the network cards under the bridge are in switching mode , Mutual access without interference . In bridge mode , virtual machine IP The address needs to be in the same network segment as the host , If networking is needed , Then the gateway and DNS It needs to be consistent with the host network card . therefore , All virtual machines in bridge mode are in the same network segment as the host .
The host address :
Virtual machine address :
And you can connect remotely through users :
virtual machine ping gateway :
virtual machine ping host :
virtual machine ping Extranet :
host ping virtual machine :
Set to host mode :
Only host mode can be regarded as NAT Patterns remove the virtual NAT equipment , And then use VMware Network Adapter VMnet1 Virtual network card connection VMnet1 Virtual switch to communicate with virtual machine ,Host-Only Mode separates the virtual machine from the Internet , Make virtual machine an independent system , Only communicate with the host .
The host address :
Virtual machine address :
The user's remote connection succeeded :
virtual machine ping host :
host ping virtual machine :
virtual machine ping The network is ping It doesn't work , Because of the host VMnet1 The network card has no gateway and DNS The server .
Set to NAT Pattern
stay NAT In the pattern , Host network card and virtual directly NAT Equipment connection , And then virtual NAT Devices and virtual DHCP The servers are connected together in a virtual switch VMnet8 On , In this way, virtual machine networking is realized .VMnet8 Network card is to realize the communication between host and virtual machine .
so NAT In this mode, the host is more like a virtual machine " Router ", adopt VMnet8 The virtual network card distributes addresses to virtual machines . Therefore, the virtual machine and the host are no longer under the same network segment , It can be understood that the host is a virtual machine " The superior ", This is why the bridge mode does not VMnet0 This virtual network card , Because the virtual machine and host in bridge mode are " equality " Of , Share the same router . So in VMnet8 The network segment on the network card can be set by yourself .
The address obtained by the virtual machine :
Users can also log in remotely 
And the host can ping Through virtual machines , Virtual machines can also ping Communication host , Virtual machines can also access the Internet .
virtual machine ping host :
virtual machine ping gateway 
virtual machine ping Extranet 
host ping virtual machine 
therefore , Bridge mode and NAT The mode is that you can surf the Internet , The host mode cannot access the Internet , Because the host network card in the host mode has no gateway address and DNS Server address . But all three modes can use users to connect remotely ( The host mode must be in the same LAN ).
root User home directory :
Home directory of ordinary users :
5、 Crack the code
Restart the system , Press e key 
find linux This line , After the space at the end Input rd.break
Press Ctrl+X
Mount in read-write mode /sysroot
Get into /sysroot Subsystem and change the password and force the context of the file system to be reset 

Exit twice and wait for the system to restart .
边栏推荐
- Ugly number
- 静态路由的原理和配置
- Dictionary tree
- Day 4 of leetcode question brushing
- win11不兼容vm--VMware Workstation解决办法。2022年3月31日,亲测成功解决
- Linux下安装单机版redis
- wordpress中文网站代码下载
- Why is it said that the testing post is a giant pit? The 10-year-old tester told you not to be fooled~
- Installing stand-alone redis under Linux
- 01 knapsack filling form implementation
猜你喜欢

利用 Redis 的 sorted set 做每周热评的功能

Principle and configuration of static routing

Installing stand-alone redis under Linux

OSPF实验

Alipay computer website payment

Day 5 of leetcode question brushing

Is it true that you can't do software testing until you're 35? So what should I do I'm 36

POI framework learning - Import and export cases

win11不兼容vm--VMware Workstation解决办法。2022年3月31日,亲测成功解决

In 2 years, the salary increased by 20K, and the transformation from outsourcing manual to test manager
随机推荐
Select / poll / epoll explanation
It is said that software testing can be done by everyone, but why are there still a large number of people who are discouraged every year?
Wechat native payment
解决nodejs中mysql查询数据中bigint类型数据精度缺失问题
几行代码就能实现复杂的 Excel 导入导出,这个工具类真心强大!
V891-Z3735F重做系统,驱动修复汇总
利用 Redis 的 sorted set 做每周热评的功能
c语言编译器介绍
Introduction to C language compiler
2021-07-02
Day 15 of leetcode
2-3 tree B tree b+ tree
Seckill activity development
如何将 @Transactional 事务注解运用到炉火纯青?
uni-app解决无法在线浏览pdf文件问题
Day 7 of DL
头文件ctype.h(详细)
Thread pool and producer consumer model
"Why do you want to resign, Tencent, which broke its head?"
POI framework learning - Import and export cases