Home  >  Article  >  Operation and Maintenance  >  How to implement network connection in linux

How to implement network connection in linux

王林
王林Original
2019-12-26 14:17:213919browse

How to implement network connection in linux

Preparation work:

Check the VMware server startup status, five fully open modes

How to implement network connection in linux

vmnet8 open mode

How to implement network connection in linux

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

How to implement network connection in linux

Set the VMnet8 address

How to implement network connection in linux

Configure the ip address of the linux system

How to implement network connection in linux

Edit mode:

How to implement network connection in linux

You can check the mac address below. This mac address must be consistent with the linux configuration

How to implement network connection in linux

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

How to implement network connection in linux

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn