Home >Operation and Maintenance >Linux Operation and Maintenance >How to implement network connection in linux
Preparation work:
Check the VMware server startup status, five fully open modes
vmnet8 open mode
Configure the IP address of the VMware switch, here:
More related free video tutorial recommendations: linux video tutorial
Network: VMnet8 (fixed)
Subnet ip: 192.168.5.0 (fixed)
Subnet mask: 255.255.255.0 (fixed)
Gateway IP:192.168.5.1
Set the VMnet8 address
Configure the ip address of the linux system
Edit mode:
You can check the mac address below. This mac address must be consistent with the linux configuration
Input: vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 TYPE=Ethernet UUID=aa810323-8568-4664-9123-221c3446eb79 ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=none DEFROUTE=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME="System eth0" HWADDR=00:0c:29:be:cf:7b PEERROUTES=yes IPADDR=192.168.220.250 NETMASK=255.255.255.0 GATEWAY=192.168.220.1 DNS1=8.8.8.8 USERCTL=no
Restart the network
service network restart
The picture illustrates this linux device Can connect to the external network
Recommended related articles and tutorials: linux tutorial
The above is the detailed content of How to implement network connection in linux. For more information, please follow other related articles on the PHP Chinese website!