I need to do both IPv4 and IPv6. It was addressed in LFS 6.4 (the last one I 
used) wasn't it? 

Just needed to create a file /etc/sysconfig/network-devices/ifconfig.eth0/ipv6 
with contents of: 

ONBOOT=yes 
SERVICE=ipv6-static 
PREFIX=64 
IP=XXXX:X:XXXX:XXXX::XXX 
GATEWAY=XXXX:X:XXXX:XXXX::X 

where the X are actually the relevant IP and gateway :) 

> From: "Bruce Dubbs" <[email protected]>
> To: "BLFS Support List" <[email protected]>
> Sent: Wednesday, September 9, 2015 1:12:37 PM
> Subject: Re: [blfs-support] LFS 7.7 and IPv6

> perl-list wrote:
> > Folks,

> > I am struggling to understand how IPv6 addresses may be added on boot
> > in LFS 7.7. I, of course, can add one by hand:

> > ifconfig eth0 inet6 add XXXX:X:XXXX:X::XXX/64

> > with no problem. I don't see how it is done with the new
> > /etc/sysconfig/ifconfig.eth0 format. In /lib/services/ I have various
> > ipv4-static and ipv4-static-route scripts for bringing up ipv4-static
> > links.

> > I have not been able to find a guide or anything about this anywhere.
> > Looking through the scripts, I could probably try to hack my way
> > through making a copy and so forth and making it add an IPv6 address
> > to the interface... but it would take a lot of time. I figured that
> > wasn't the intended method, and so figured I ask here.

> > How to bring up ipv6-static address (with gateway) on eth0 as well
> > (without just hand adding it, but in the LFS way... using
> > /etc/ifconfig.eth0 I assume)?

> > PS: I also had to compile the ifconfig from net-tools and replace the
> > one that came with inetuils so that ifconfig supported inet6. Not a
> > big deal, but just thought I would mention it.

> We don't really address ipv6 in either LFS or BLFS. Are you doing just
> ipv6 or both v6 and v4? Just v6 would be a lot easier.

> -- Bruce
> --
> http://lists.linuxfromscratch.org/listinfo/blfs-support
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to