当前位置:网站首页>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
边栏推荐
- VLAN part of switching technology
- Uniapp--- initial use of websocket (long link implementation)
- Ruby时间格式转换strftime毫秒匹配格式
- Jianzhi offer 04 (implemented in C language)
- Idea SSH channel configuration
- A little feeling
- 【Day1】 deep-learning-basics
- Lavel document reading notes -how to use @auth and @guest directives in lavel
- Talk about scalability
- Seven examples to understand the storage rules of shaped data on each bit
猜你喜欢

leetcode1-3

Reasons and solutions for the 8-hour difference in mongodb data date display
如果不知道這4種緩存模式,敢說懂緩存嗎?

If the uniapp is less than 1000, it will be displayed according to the original number. If the number exceeds 1000, it will be converted into 10w+ 1.3k+ display

C language - stack

Knapsack problem and 0-1 knapsack problem

DML statement of MySQL Foundation

The time difference between the past time and the present time of uniapp processing, such as just, a few minutes ago, a few hours ago, a few months ago

C language structure to realize simple address book

Dynamic address book
随机推荐
The bamboo shadow sweeps the steps, the dust does not move, and the moon passes through the marsh without trace -- in-depth understanding of the pointer
Does any teacher know how to inherit richsourcefunction custom reading Mysql to do increment?
Latex insert picture, insert formula
用数据告诉你高考最难的省份是哪里!
Use C to extract all text in PDF files (support.Net core)
Realsense of d435i, d435, d415, t265_ Matching and installation of viewer environment
Recursion and divide and conquer strategy
Exercise 9-1 time conversion (15 points)
Three schemes of ZK double machine room
Container cloud notes
Deep learning 500 questions
What is an excellent architect in my heart?
Write a program to judge whether the two arrays are equal, and then write a similar program to compare the two vectors.
Rhcsa day 9
For programmers, if it hurts the most...
Knapsack problem and 0-1 knapsack problem
What is devsecops? Definitions, processes, frameworks and best practices for 2022
Latex arranges single column table pictures in double column format articles
Reprint: summation formula of proportional series and its derivation process
/*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





