美文网首页
Change default network name (ens

Change default network name (ens

作者: Irving23 | 来源:发表于2017-01-17 09:27 被阅读0次
    $ sudo vim /etc/default/grub
    GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
    
    $ sudo grub-mkconfig -o /boot/grub/grub.cfg
    
    Generating grub configuration file ...
    Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
    Found linux image: /boot/vmlinuz-4.4.0-31-generic
    Found initrd image: /boot/initrd.img-4.4.0-31-generic
    done
    
    $ sudo vim /etc/network/interfaces
    

    From:

    # The primary network interface
    auto ens33
    iface ens33 inet dhcp
    

    To:

    # The primary network interface
    auto eth0
    iface eth0 inet dhcp
    

    相关文章

      网友评论

          本文标题:Change default network name (ens

          本文链接:https://www.haomeiwen.com/subject/nfkmbttx.html