zoukankan      html  css  js  c++  java
  • CentOS 7.x eth0

    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

  • 相关阅读:
    装饰者模式
    代理模式
    享元模式
    模板模式
    命令模式
    建造者模式
    单例模式
    观察者模式
    迭代器模式
    访问者模式
  • 原文地址:https://www.cnblogs.com/xilong-devops/p/9174860.html
Copyright © 2011-2022 走看看