Ubuntu Core 网络配置

/*********************************************************************************
 *                         Ubuntu Core 网络配置
 * 说明:
 *     之前直接配置systemd的网络状态,在boot阶段总是出错。
 *
 *                                              2018-2-23 深圳 宝安西乡 曾剑锋
 ********************************************************************************/

一、参考文档:
    1. networkd is not bringing eth0 up at boot
        https://superuser.com/questions/1003478/networkd-is-not-bringing-eth0-up-at-boot

二、配置说明:
    root@zengjf:/etc/network# cat interfaces
    # interfaces(5) file used by ifup(8) and ifdown(8)
    # Include files from /etc/network/interfaces.d:
    source-directory /etc/network/interfaces.d
    
    #iface eth0 inet manual
    auto eth0
    allow-hotplug eth0
    iface eth0 inet static
    address 192.168.1.202
    netmask 255.255.255.0
    gateway 192.168.1.1
    root@zengjf:/etc/network#

 

posted on 2018-02-23 09:53  zengjf  阅读(824)  评论(0编辑  收藏  举报

导航