当前位置:网站首页>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
边栏推荐
- Debug:==42==ERROR: AddressSanitizer: heap-buffer-overflow on address
- Latex arranges single column table pictures in double column format articles
- Vs201 solution to failure to open source file HPP (or link library file)
- Student achievement management system (C language)
- Talk about scalability
- Development guidance document of CMDB
- IPv6 comprehensive experiment
- Basic principle of servlet and application of common API methods
- 【Day1】 deep-learning-basics
- What is an excellent architect in my heart?
猜你喜欢

Realsense of d435i, d435, d415, t265_ Matching and installation of viewer environment

The most detailed teaching -- realize win10 multi-user remote login to intranet machine at the same time -- win10+frp+rdpwrap+ Alibaba cloud server

Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}
Si vous ne connaissez pas ces quatre modes de mise en cache, vous osez dire que vous connaissez la mise en cache?

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

Basic principle of servlet and application of common API methods

DDL statement of MySQL Foundation

Devop basic command
If you don't know these four caching modes, dare you say you understand caching?

leetcode1-3
随机推荐
Leetcode48. Rotate image
Exercise 9-3 plane vector addition (15 points)
IPv6 comprehensive experiment
Dynamic memory management
MongoDB数据日期显示相差8小时 原因和解决方案
Devop basic command
AUTOSAR从入门到精通100讲(106)-域控制器中的SOA
用数据告诉你高考最难的省份是哪里!
Vs201 solution to failure to open source file HPP (or link library file)
A little feeling
For programmers, if it hurts the most...
Vanishing numbers
Four characteristics and isolation levels of database transactions
Realsense of d435i, d435, d415, t265_ Matching and installation of viewer environment
Latex insert picture, insert formula
Press the button wizard to learn how to fight monsters - identify the map, run the map, enter the gang and identify NPC
RHCE day 3
RHCE - day one
Kotlin set operation summary
入职中国平安三周年的一些总结





