[Linux] Linux practical operation --- network configuration


(1) Schematic diagram of Linux network configuration (including virtual machine)

Insert picture description here


(2) View network IP and gateway

① View the virtual network editor

Insert picture description here


② Modify the ip address (modify the ip of the virtual network)

Insert picture description here


③ View the gateway

Insert picture description here


④ View the VMnet8 network configuration in the windows environment (ipconfig command)

Insert picture description here

Insert picture description here


(3) ping test network connectivity between hosts

① Basic grammar

Insert picture description here


②Application case: test whether the current server can connect to Baidu

Insert picture description here


(4) Linux network environment configuration

① The first method (automatic acquisition):

Insert picture description here
Insert picture description here

特点:linux启动后会自动获取IP

缺点:是每次自动获取的ip地址可能不一样。

② The second method (specify a fixed ip)

Insert picture description here


Insert picture description here


Insert picture description here

Insert picture description here


Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_45260385/article/details/114482039