The method of connecting Network in linux system
Preparatory work:
Check the startup of the VMware server, five full open modes
Vmnet8 on mode
Configure the ip address of the VMware switch, here:
Network: VMnet8 (fixed)
Subnet ip:192.168.5.0 (fixed)
Subnet mask: 255.255.255.0 (fixed)
Gateway IP:192.168.5.1
Set VMnet8 address
Configure the ip address of the linux system
Edit mode:
You can view the mac address below, which must be consistent with the linux configuration.
Input: vim / etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0TYPE=EthernetUUID=aa810323-8568-4664-9123-221c3446eb79ONBOOTrouyesNMCONTROLLEDREDUTIONAME6INITnoNAME = "System eth0" HWADDR=00:0c:29:be:cf:7bPEERROUTES=yesIPADDR=192.168.220.250NETMASK=255.255.255.0GATEWAY=192.168.220.1DNS1=8.8.8.8USERCTL=no
Restart the network
Service network restart
These are the details of how to connect to the network in linux. Please pay more attention to other related articles!