Network Configuration
(1) Schematic diagram of Linux network configuration (including virtual machine)
(2) View network IP and gateway
① View the virtual network editor
② Modify the ip address (modify the ip of the virtual network)
③ View the gateway
④ View the VMnet8 network configuration in the windows environment (ipconfig command)
(3) ping test network connectivity between hosts
① Basic grammar
②Application case: test whether the current server can connect to Baidu
(4) Linux network environment configuration
① The first method (automatic acquisition):
特点:linux启动后会自动获取IP
缺点:是每次自动获取的ip地址可能不一样。
② The second method (specify a fixed ip)