Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of connecting Network in linux system

Shulou Source: shulou.com Published: 2022-06-03 03:34:46 09月22日 Update

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!

Tags: Address network mode configuration subnet system consistency switch content that is situation article more server gateway preparation work service input method Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi vpn MariaDB Docker OPPO Reno