Implementing a IPv6 network with dynamically assigned static IPv6 addresses.

Implementing a IPv6 network with dynamically assigned static IPv6 addresses.

Post by Ashish Shukl » Mon, 12 Feb 2007 07:17:45



Hi,

I want to setup an IPv6 LAN in my network (of 2 PCs running Fedora
Core 6 "AMD64"). I want to assign a static IPv6 address to my client
via DHCPv6. I've tried DHCPv6 Server (available from http://dhcpv6.sf.net/
), but it expects an option of DUID, for host-based configuration,
which I'm not sure what to give. As DHCPv6 client sends a "Link Layer
+ Time" based DUID, which changes with change in time. So, I changed
client DUID in  "/var/lib/dhcpv6/dhcp6c_duid" to Link Layer based DUID
of client. So, after this "Link Layer" based DUID is sent to the
server, but client also sends a preconfigured IAID, hence I'm not able
to send any addresses corresponding to that IAID.

So I want to know if there is any other way to have such
configuration.

I'm pasting my dhcp6s.conf and dhcp6c.conf below:

-- begin dhcp6s.conf --
prefer-life-time 10000;
valid-life-time 20000;
renew-time 5000;
rebind-time 8000;
interface eth2 {
     link AAA {

###########################################
# The dynamic address assignment configuration which worked for me
###########################################

#             allow unicast;
#             send unicast;
#             allow rapid-commit;
#             renew-time 120;
#             rebind-time 150;
#             prefer-life-time 60;
#             valid-life-time 70;
#             range 2001:ffff:100::10 to 2001:ffff:100::ff/120;

#########
# static stuff
#########

     host tycho {
# DUID-LL
        duid 00:03:00:01:00:19:D1:13:CE:B7;
        address {
          2001:ffff:100::7/120; valid-life-time 90; prefer-life-time
60;
        };
        iaidinfo {
                iaid 0;
                renew-time 60;
                rebind-time 90;
        };
     }; };

Quote:};

-- end dhcp6s.conf --

-- begin dhcp6c.conf --
interface eth0
{
send rapid-commit;

Quote:};

-- end dhcp6c.conf --

Thanks in advance,
Ashish Shukla
--
http://wahjava.wordpress.com/

 
 
 

Implementing a IPv6 network with dynamically assigned static IPv6 addresses.

Post by Fran » Mon, 12 Feb 2007 23:45:55


Hi,

Try radvd.

IPv6 has made dhcp some kind of obsolete.


> Hi,

> I want to setup an IPv6 LAN in my network (of 2 PCs running Fedora
> Core 6 "AMD64"). I want to assign a static IPv6 address to my client
> via DHCPv6. I've tried DHCPv6 Server (available from http://dhcpv6.sf.net/
> ), but it expects an option of DUID, for host-based configuration,
> which I'm not sure what to give. As DHCPv6 client sends a "Link Layer
> + Time" based DUID, which changes with change in time. So, I changed
> client DUID in  "/var/lib/dhcpv6/dhcp6c_duid" to Link Layer based DUID
> of client. So, after this "Link Layer" based DUID is sent to the
> server, but client also sends a preconfigured IAID, hence I'm not able
> to send any addresses corresponding to that IAID.

> So I want to know if there is any other way to have such
> configuration.

> I'm pasting my dhcp6s.conf and dhcp6c.conf below:

> -- begin dhcp6s.conf --
> prefer-life-time 10000;
> valid-life-time 20000;
> renew-time 5000;
> rebind-time 8000;
> interface eth2 {
>      link AAA {

> ###########################################
> # The dynamic address assignment configuration which worked for me
> ###########################################

> #             allow unicast;
> #             send unicast;
> #             allow rapid-commit;
> #             renew-time 120;
> #             rebind-time 150;
> #             prefer-life-time 60;
> #             valid-life-time 70;
> #             range 2001:ffff:100::10 to 2001:ffff:100::ff/120;

> #########
> # static stuff
> #########

>      host tycho {
> # DUID-LL
>            duid 00:03:00:01:00:19:D1:13:CE:B7;
>         address {
>           2001:ffff:100::7/120; valid-life-time 90; prefer-life-time
> 60;
>         };
>         iaidinfo {
>            iaid 0;
>            renew-time 60;
>            rebind-time 90;
>         };
>      }; };
> };
> -- end dhcp6s.conf --

> -- begin dhcp6c.conf --
> interface eth0
> {
> send rapid-commit;
> };
> -- end dhcp6c.conf --

> Thanks in advance,
> Ashish Shukla
> --
> http://wahjava.wordpress.com/


 
 
 

Implementing a IPv6 network with dynamically assigned static IPv6 addresses.

Post by Ashish Shukl » Thu, 15 Feb 2007 00:59:55



Quote:> Hi,

> Try radvd.

> IPv6 has made dhcp some kind of obsolete.

But how're you going to offer DNS servers, and other options using
'radvd' ? And, plus 'radvd' is going to use MAC (or precisley link-
layer address) for autoconfiguration, whereas I prefer, numbering
clients serially (or allocating a small range for them).

Thanks
Ashish Shukla
--
http://wahjava.wordpress.com/

 
 
 

1. Command for assigning IPv6 address and MAC address on the interface

Hello,

iceman a crit :

man ifconfig
man 8 ip

Please can you elaborate ? How do you see it does not work ?

Yes, it works for me. You can also assign an IPv6 address with the 'ip'
command from the iproute/iproute2 package :

ip -6 address add 2001:0db8:0:f101::1/64 dev eth0

Note that the 2001:0db8::/32 range is to be used for documentation
purpose only. If you do not have a global prefix you can create and use
a prefix in the unique local address range (ULA, cf. RFC 4193). A
generator is available at <http://www.kame.net/~suz/gen-ula.html>.

2. Accessing Process Control Block (PCB) in Digital UNIX 4.0D (SVR4)

3. IPv6: Refine IPv6 Address Validation Timer

4. signals & non-re-entrant methods

5. IPv6: Fix for Refine IPv6 Address Validation Timer

6. ** Project Ideas Required **

7. IPv6: Privacy Extensions for Stateless Address Autoconfiguration in IPv6

8. Solaris for more platforms

9. IPv6: Allow Both IPv6 and IPv4 Sockets on the Same Port Number (IPV6_V6ONLY Support)

10. ping <ipv6-host> does not work, ping <ipv6-ip> does

11. Q: pcap, ipv6: how to print the ipv6-addr?