当前位置:网站首页>Virtual machine configuration network
Virtual machine configuration network
2022-07-04 10:29:00 【Good night to you】
linux Three modes of network :
NAT Pattern :
1. edit -- Virtual network adapter --NAT Pattern


2. Set up -- network adapter --NAT Pattern -- Set the network segment to be consistent with the host
So the subnet here IP The network segment is 192.168.80.0. The subnet mask is :255.2555.255.0
The host machine ip Address the query
1. Turn on the Internet and internet Set up
2. Change adapter options
3. See here ip The address is 192.168.80.1
Automatic access to IP Address
[[email protected] ~]# nmcli connection modify "ens33" ipv4.method auto connection.autoconnect yes
[[email protected] ~]# nmcli connection down ens33
[[email protected] ~]# nmcli connection up ens33 // Restart NIC , Refresh ip Address

Manual access ip Address
[[email protected] ~]# nmcli connection modify ens33 ipv4.method manual ipv4.addresses 192.168.80.30/24 ipv4.gateway 192.168.80.2 ipv4.dns 8.8.8.8 connection.autoconnect yes
[[email protected] ~]# nmcli connection down ens33[[email protected] ~]# nmcli connection up ens33 // Restart NIC , Refresh ip Address

Changing configuration files , configure network


Inquire about ip Address :ip a
Query the default gateway :ip r
Inquire about DNS:cat /etc/resolv.conf
Bridging mode :
1. edit -- Virtual Network Editor -- Bridging mode -- Automatically or specify a specific network card
2. Set up -- network adapter -- Bridging mode
3. Check host ip Address
4. To configure linux ip Address
5. Configured linux,ip Address and host IP Address , Subnet mask , The default gateway ,dns Is the same
6. Restart NIC
7. mutual ping
8.ping www.baidu.com
Host mode :
1. edit -- Virtual Network Editor -- Host only mode -- Do not tick DHCP
2. Set up -- network adapter -- Host only mode
3. To configure Linux Of ip
4. Configure the ip Address
5. Host and linux Keep the same segment , The same gateway
6. mutual ping
边栏推荐
- Exercise 7-4 find out the elements that are not common to two arrays (20 points)
- 183 sets of free resume templates to help everyone find a good job
- leetcode1-3
- Press the button wizard to learn how to fight monsters - identify the map, run the map, enter the gang and identify NPC
- When I forget how to write SQL, I
- 【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
- leetcode1-3
- A little feeling
- Some summaries of the third anniversary of joining Ping An in China
- 【Day2】 convolutional-neural-networks
猜你喜欢

From programmers to large-scale distributed architects, where are you (I)

leetcode1-3

Remove linked list elements

RHCE - day one

Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 2

From programmers to large-scale distributed architects, where are you (2)

Rhcsa learning practice

Histogram equalization

Debug:==42==ERROR: AddressSanitizer: heap-buffer-overflow on address

Introduction to extensible system architecture
随机推荐
Number of relationship models
六月份阶段性大总结之Doris/Clickhouse/Hudi一网打尽
用数据告诉你高考最难的省份是哪里!
按键精灵打怪学习-识别所在地图、跑图、进入帮派识别NPC
PHP代码审计3—系统重装漏洞
C language - stack
Kotlin: collection use
system design
OSPF comprehensive experiment
Latex insert picture, insert formula
【Day1】 deep-learning-basics
Crawl Zhejiang industry and trade news page
Si vous ne connaissez pas ces quatre modes de mise en cache, vous osez dire que vous connaissez la mise en cache?
Rhcsa operation
BGP advanced experiment
Talk about scalability
按键精灵跑商学习-商品数量、价格提醒、判断背包
/*Rewrite the program, find the value of the element, and return the iterator 9.13: pointing to the found element. Make sure that the program works correctly when the element you are looking for does
Native div has editing ability
Latex arranges single column table pictures in double column format articles





