netdev
[Top] [All Lists]

Re: ipv6 implementation docs

To: Mark Thompson <mkt@xxxxxxxxxxxxxxx>
Subject: Re: ipv6 implementation docs
From: "Eric S. Johnson" <esj@xxxxxxxxxx>
Date: Fri, 04 Aug 2000 13:15:12 +0000
Cc: netdev@xxxxxxxxxxx
In-reply-to: Message from Mark Thompson <mkt@xxxxxxxxxxxxxxx> of "Fri, 04 Aug 2000 11:47:12 +0100." <20000804114712.A3586@xxxxxxxxxxxxxxx>
Sender: owner-netdev@xxxxxxxxxxx
>From a source code analysis I have found the answer is no. Kind of.

Upon module init it assigns each interface its Link local EUI (and the 
older "provider based addresses if so configured). It will do a router 
solicitation at that point. 

>From then on it will accept any advertised prefixes from neighboring
routers. 

I have not found a way to coax it into automatically generating the 
link local again, short of module removal and reinstall (which can 
be problematic at times..) It also only seems to send router solicits
when configured, no way I have seen to coax them. 

So I found I would often have to manually re-add the LL EUI addresses as I was 
playing around. Below is a verbose perl script I used to build the 
64 bit EUI address given a  mac addr.

E



#!/usr/local/bin/perl

if ( $ARGV[0] eq "" ) {
        printf("Usage: eui MACADDR\n");
        exit 1;
}

@mac=split(/:/,$ARGV[0]);

$mac[0] = hex($mac[0]) | 2 ;
$mac[1] = hex($mac[1]) ;
$mac[2] = hex($mac[2]) ;
$mac[3] = hex($mac[3]) ;
$mac[4] = hex($mac[4]) ;
$mac[5] = hex($mac[5]) ;

printf("%x%x:%xff:fe%x:%x%x\n",$mac[0],$mac[1],$mac[2],$mac[3],$mac[4],$mac[5]);

exit 0;


<Prev in Thread] Current Thread [Next in Thread>