码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS 7.x eth0

时间:2018-06-12 21:01:59      阅读:226      评论:0      收藏:0      [点我收藏+]

标签:output   erp   recover   ifcfg   route   false   bootproto   nod   lease   

1:Test Environment

[root@linux-node1 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.5 (Maipo)
[root@linux-node1 ~]# uname -r
3.10.0-862.3.2.el7.x86_64

2:Modifying the NIC configuration file

[root@linux-node1 network-scripts]# mv ifcfg-enp0s25 ifcfg-eth0
[root@linux-node1 network-scripts]# cat ifcfg-eth0 
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
NAME=eTH0
DEVICE=eth0
ONBOOT=yes

3: Modifying the GRUB configuration file

[root@linux-node1 default]# cat /etc/default/grub 
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed ‘s, release .*$,,g‘ /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb net.ifnames=0 biosdevname=0 quiet"
GRUB_DISABLE_RECOVERY="true"

grub2-mkconfig -o /boot/grub2/grub.cfg

4: reboot

 

CentOS 7.x eth0

标签:output   erp   recover   ifcfg   route   false   bootproto   nod   lease   

原文地址:https://www.cnblogs.com/xilong-devops/p/9174860.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!