zoukankan      html  css  js  c++  java
  • centos7使用传统网卡名

    http://serverfault.com/questions/692897/centos-7-disable-predictable-network-interface-names-during-install
    https://github.com/jedi4ever/veewee/blob/master/templates/Fedora-19-i386/ks.cfg

    NAMING SCHEMES HIERARCHY

    By default, systemd will name interfaces using the following policy to apply the supported naming schemes:
    Scheme 1: Names incorporating Firmware or BIOS provided index numbers for on-board devices (example: eno1), are applied if that information from the firmware or BIOS is applicable and available, else falling back to scheme 2.
    
    Scheme 2: Names incorporating Firmware or BIOS provided PCI Express hotplug slot index numbers (example: ens1) are applied if that information from the firmware or BIOS is applicable and available, else falling back to scheme 3.
    
    Scheme 3: Names incorporating physical location of the connector of the hardware (example: enp2s0), are applied if applicable, else falling directly back to scheme 5 in all other cases.
    
    Scheme 4: Names incorporating interface's MAC address (example: enx78e7d1ea46da), is not used by default, but is available if the user chooses.
    
    Scheme 5: The traditional unpredictable kernel naming scheme, is used if all other methods fail (example: eth0).
    
    This policy, the procedure outlined above, is the default. If the system has biosdevname enabled, it will be used. Note that enabling biosdevname requires passing biosdevname=1 as a command-line parameter except in the case of a Dell system, where biosdevname will be used by default as long as it is installed. If the user has added udev rules which change the name of the kernel devices, those rules will take precedence.
    

    内核引导时添加参数

    net.ifnames=0 biosdevname=0
    

    kickstart

    %packages
    @core
    -biosdevname
    %end
    
  • 相关阅读:
    sizeof、strlen、length、size
    extern关键字
    结构
    引用
    指针
    数组
    linux端口 ,打开服务端口
    linux用户禁用
    防止验证码的恶意发送
    springboot 项目windows下打包、注册服务。
  • 原文地址:https://www.cnblogs.com/liujitao79/p/6214634.html
Copyright © 2011-2022 走看看