In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
1 、 nmcli con
[root@localhost ~] # nmcli con
NAME UUID TYPE DEVICE
Enp2s3 392f1079-f6eb-af36-31cb-9ce552231745 802-3-ethernet enp2s3
Enp2s0 8c6fd7b1-ab62-a383-5b96-46e083e04bb1 802-3-ethernet enp2s0
2. Open / etc/sysconfig/network-scripts/ifcfg-enp2s0 file
TYPE=Ethernet
BOOTPROTO=dhcp
NAME=enp2s0
UUID=00eaabe5-1f75-4c01-a21f-79bf9c76d496
DEVICE=enp2s0
ONBOOT=yes
Update the UUID of this document with the UUID corresponding to the DEVICE name in step 1.
Description:
(1) in general, the default UUID value of network equipment does not match the actual DEVICE and needs to be updated with the actual UUID.
(2) the ONBOOT entry is set to yes.
The updated file is:
[root@localhost ~] # cat / etc/sysconfig/network-scripts/ifcfg-enp2s0
TYPE=Ethernet
BOOTPROTO=dhcp
NAME=enp2s0
UUID=8c6fd7b1-ab62-a383-5b96-46e083e04bb1
DEVICE=enp2s0
ONBOOT=yes
3. Network card information
[root@localhost ~] # dmesg | grep-in eth
554: [2.134579] e1000 000000 00:0c:29:9c:f8:d5 02 eth0: (PCI:66MHz:32-bit) 00:0c:29:9c:f8:d5
555: [2.134588] e1000 000000 PRO/1000 Network Connection 02 eth0: Intel (R)
565: [2.561570] e1000 000000 00:0c:29:9c:f8:df 02 eth2: (PCI:66MHz:32-bit) 00:0c:29:9c:f8:df
566: [2.561575] e1000 000000 PRO/1000 Network Connection 02 eth2 03.0: Intel (R)
567: [2.568309] systemd-udevd [238]: renamed network interface eth2 to enp2s3
568: [2.578203] systemd-udevd [240]: renamed network interface eth0 to enp2s0
4. Change the name of the network card-from enp2s0 to eth0
[root@localhost ~] # cat / etc/default/grub
GRUB_TIMEOUT=5
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT= "console"
GRUB_CMDLINE_LINUX= "rd.lvm.lv=centos/root rd.lvm.lv=centos/swap crashkernel=auto rhgb quiet"
GRUB_DISABLE_RECOVERY= "true"
Modify the GRUB_CMDLINE_LINUX in grub and append the statement "net.ifnames=0 biosdevname=0".
Then execute # grub2-mkconfig-o / boot/grub2/grub.cfg
5. Restart network service.
Servie network restart
6. CentOS7 mini version does not have ifconfig and other tools. When the system connection to the public network is smooth, root executes the following command to install the ifconfig tool, as follows:
# yum install-y net-tools\ *
7. Garbled code problem
Export LANG=zh_CN.GBK
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.