当前位置:网站首页>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
边栏推荐
- Work order management system OTRs
- Online troubleshooting
- MySQL case
- Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}
- A little feeling
- Kotlin set operation summary
- Button wizard business running learning - commodity quantity, price reminder, judgment Backpack
- Jianzhi offer 04 (implemented in C language)
- Reprint: summation formula of proportional series and its derivation process
- 【OpenCV 例程200篇】218. 多行倾斜文字水印
猜你喜欢
随机推荐
BGP ---- border gateway routing protocol ----- basic experiment
Does any teacher know how to inherit richsourcefunction custom reading Mysql to do increment?
VLAN part of switching technology
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 1
Dos:disk operating system, including core startup program and command program
Histogram equalization
Summary of several job scheduling problems
RHCE - day one
Occasional pit compiled by idea
C language structure to realize simple address book
PHP代码审计3—系统重装漏洞
AUTOSAR from getting started to mastering 100 lectures (106) - SOA in domain controllers
Exercise 8-10 output student grades (20 points)
Jianzhi offer 04 (implemented in C language)
Exercise 7-8 converting strings to decimal integers (15 points)
Write a program to define an array with 10 int elements, and take its position in the array as the initial value of each element.
Legion is a network penetration tool
DCL statement of MySQL Foundation
5g/4g wireless networking scheme for brand chain stores
使用 C# 提取 PDF 文件中的所有文字(支持 .NET Core)