Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

CentOS installation network card settings

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Take centos as an example. I installed centos 6.9 and vmware version 8.0.

2. Download method: Baidu search, vmware download cracked version or with registration code; centos official website or other channels can download iso image files

The image file I downloaded is 163. just download DVD1. DVD2 is some tool software, but do not download it.

3. There are many steps to install Baidu. What we need to pay attention to is that the network is best bridged, which will save a lot of trouble. What are the specific reasons? I will add it when I become a god.

4. After installation, you will encounter no eth0 network card, only lo loopback network card. Baidu has done a lot of things, but not, because the centos 7 version is high, and there may be something wrong with the downloaded image. After deleting and reinstalling 6.9, there will be an eth0 network card.

5. Set up eth0 network card

DEVICE=eth0-name of the network card

HWADDR=00:0c:29:72:c7:29-MAC physical address is unique

TYPE=Ethernet-- Network card type

UUID=1fe409f2-f25f-4226-bda8-7e2f4922fe5c

ONBOOT=yes-Boot self-starting. If set to no, service network restart is required to start manually every time.

NM_CONTROLLED=yes

BOOTPROTO=no-static protocol

IPADDR=192.168.1.235-according to the ip of this machine, it is randomly set to the same network segment as this machine. If the machine is 192.168.1.100, here I will set it to 235.To try not to use 1-200, it is easy for ip to be occupied, causing the remote connection to be dropped in a while.

NETMASK=255.255.255.0-Subnet Mask win Command window View

GATEWAY=192.168.1.1-Gateway win command window view

BROADCAST=192.168.1.255-- the broadcast address of the network card is automatically generated according to ip and netmask.

USERCTL=yes-whether non-root users are allowed to log in

PEERDNS=yes

IPV6INIT=yes

ARPCHECK=no-whether to detect ip at startup

Restart the Nic service network restart after configuration is completed

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report