[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: converting home network to IPv6; ppp, IPv6, dsnmasq and iptables



Here are the correct settings that seem to work:

1)
Addresses given by my ISP:
HEX1:aa00::/64
HEX2:bb00::/56 <-- this is the one used below


2) /etc/network/interfaces file
#for IPv6 config  (note "bb01"). Goes to LAN switch
iface eth0 inet6 static
        address HEX2:bb01::01
        netmask 64
        network HEX2:bb01::

#for IPv6 config (note "bb00"). Goes to ADSL modem
iface eth1 inet6 static
         address HEX2:bb00::01
         netmask 64
         network HEX2:bb00::




3)
I also have the "+ipv6" option in my dsl-provider file to be used when I
make an ADSL connection.

4)
And added the route:
$> sudo route --inet6 add default dev ppp0

Further, in my /etc/radvd.conf on this router machine, I have the
following(recall that eth0 is connected to a switch on the LAN):
> cat /etc/radvd.conf
interface eth0
{
        AdvSendAdvert on;
        AdvLinkMTU 1280;
        MaxRtrAdvInterval 300;
        MinRtrAdvInterval 30;
        prefix HEX2:bb01::/64  # <-- note this address and ref. eth0
        {
                AdvOnLink on;
                AdvAutonomous on;
        };
};


Now another machine on my LAN is able to get an IPv6 address:
{LAN machine}$> /sbin/ifconfig eth0 | grep inet6
$> /sbin/ifconfig eth0 | grep inet6
          inet6 addr: HEX2:bb01:HEXblah:/64 Scope:Global
          inet6 addr: fe80::204:75ff:fe8a:d6df/64 Scope:Link


So, I had to assign address from HEX2:bb00::/56 range. One network was
eth1 (HEX2:bb00::) and another was eth0 (HEX2:bb01::). Basically, the
two NICs in the same machine need to be on different IPv6 networks ...
same as in IPv4 (Doh!).

Now, do the above observations mean I am now correctly using my IPv6
networking and ppp connection given by my ISP? Also, what is the
HEX2::/64 address given to me by my ISP for?



-- 

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


Reply to: