[yocto] [meta-raspberrypi] Configure eth0 to come up with Link-Local IPv6 address only

Khem Raj raj.khem at gmail.com
Mon Jun 19 12:46:43 PDT 2017


On Mon, Jun 19, 2017 at 4:15 AM, Thomas Thorne <Thomas.Thorne at net2edge.com>
wrote:

> Good afternoon,
>
>
>
> I am trying to generate an image for a Raspberry Pi 3 that includes a
> `/etc/network/interfaces` file which causes the Pi to start with an “up”
> eth0 connection with only an IPv6 link local address.
>

​I get IPV4 address assigned automatically on my
image (core-image-full-cmdline)​

​try with

iface eth0 inet auto
 ​

>
>
> The Pi will be connected to an active switch on boot so the copper
> ethernet interface will by electrically up.  So far I have found that
> unless I set a static IPv4 address or connect to a network that uses DHCP
> to handout IPv4 addresses by eth0 interface does not come up on boot.
> Based on reading the interfaces man page I have attempted the following
> variations I in the interfaces file:
>
>
>
> auto lo
>
> iface lo inet loopback
>
>
>
> auto eth0
>
> iface eth0 inet manual
>
> iface eth0 inet6 manual
>
>
>
>
>
> auto lo
>
> iface lo inet loopback
>
>
>
> auto eth0
>
> iface eth0 inet6 manual
>
>
>
>
>
> auto lo
>
> iface lo inet loopback
>
>
>
> auto eth0
>
> iface eth0 inet6 static
>
>
>
>
>
>
>
> auto lo
>
> iface lo inet loopback
>
>
>
> auto eth0
>
> iface eth0 inet6 manual
>
>                 autoconf 1
>
>
>
>
>
> auto lo
>
> iface lo inet loopback
>
>
>
> auto eth0
>
> iface eth0 inet manual
>
> iface eth0 inet6 manual
>
>                 autoconf 1
>
>
>
>
>
> auto lo
>
> iface lo inet loopback
>
>
>
> auto eth0
>
> iface eth0 inet manual
>
> iface eth0 inet6 auto
>
>
>
>
>
> auto lo
>
> iface lo inet loopback
>
>
>
> auto eth0
>
> #iface eth0 inet manual
>
> iface eth0 inet6 auto
>
>
>
>
>
>
>
> This could well be a more general problem with my understanding of how to
> write IPv6 interface files than something specific to the Raspberry Pi
> running a Yocto build.  It is much easier for me to send this email
> question now though, before I start trying to mess around with the same
> settings on my Ubunut PC to see if I can get the behaviour I want out of
> that.
>
>
>
> Any advice or suggestions would be greatfully received.
>
>
>
> Regards,
>
>
>
> Thomas A. F. Thorne MEng. AUS MIET
>
> *Software Engineer*
>
>
>
> *Tel:* *+44 3450 130 030 <+44-3450-130-030>*
>
> *Email:* *Thomas.Thorne at Net2Edge.com <Thomas.Thorne at Net2Edge.com>*
>
> *Web:* *http://www.Net2Edge.com/ <http://www.net2edge.com/>*
>
>
>
> [image: Net2Edge Logo]
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170619/873f43a7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 6351 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170619/873f43a7/attachment.png>


More information about the yocto mailing list