[hipl-users] Re: Hipsetup failure

  • From: Miika Komu <miika@xxxxxx>
  • To: hipl-users@xxxxxxxxxxxxx
  • Date: Tue, 15 Feb 2005 08:26:59 +0200 (EET)

On Mon, 14 Feb 2005, [iso-8859-15] Irene Garc=EDa Vargas wrote:

> Here they are the logs of my hipsetup...
> Regards,
> Irene
>
>
> > I tried your hostname configuration myself and it worked for me... try
> > using just the shorthands, i.e., "ksat77" (without the domain suffixes)=
?
> ksat92:/home/igvargas/hipl--main--2.6/test# ./hipsetup -m -d /home/igvarg=
as/hipl--main--2.6 -r
>
> ...
> INSTALL .....
> ....
> if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.6.9; fi
> make: Leaving directory `/home/igvargas/hipl--main--2.6/linux'
> insmod /lib/modules/2.6.9/kernel/net/ipv6/hip/hipmod.ko
> Using hostname: ksat92
> No key file given, use default
> HIT is 6844:bf2e:e1c:a50a:d83e:1a9a:2342:b9
> Responder mode
> nc6: listening on :: 12345 ...
> nc6: listening on 0.0.0.0 12345 ...
> nc6: connect to 2001:638:202:111:204:76ff:fe97:9d77 12345 from 2001:638:2=
02:111:230:1bff:fead:db46 32778

2001:blaa:blaa is an IPv6 address. It should be a HIT.

> ksat77:/home/igvargas/hipl--main--2.6/test# ./hipsetup -m -d /home/igvarg=
as/hipl--main--2.6 -i ksat92
>
> ....
> INSTALL ....
> if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.6.9; fi
> make: Leaving directory `/home/igvargas/hipl--main--2.6/linux'
> insmod /lib/modules/2.6.9/kernel/net/ipv6/hip/hipmod.ko
> Using hostname: ksat77
> No key file given, use default
> HIT is 5b30:cb0e:14e6:1942:992f:552e:fb7:1338
> Initiator mode
> Connecting to peer host ksat92
> Input some text, press enter and ctrl+d
> Trying to connect to 2001:638:202:111:204:76ff:fe97:9d77
> connect took 0.000 sec
> OK
> probe

There you have it again, an IPv6 address again. Do you still have the
whole domain name in the /etc/hosts or /etc/hip/hosts? You should not.

If I have the following configuration in oops:

/etc/hosts:
3ffe::1         crash

/etc/hip/hosts:
47eb:6938:5172:8278:1a52:2a94:4826:845e crash.foobar

and I execute in oops:

oops:/home/mkomu/projects/hipl--main--2.6/test# ./hipsetup -i crash
Setting up HIP in oops, please wait...
insmod /lib/modules/2.6.9/kernel/net/ipv6/hip/hipmod.ko
Using hostname: oops
No key file given, use default
HIT is 60a8:3ecf:8986:927b:e78b:d5eb:7908:e3fa
Initiator mode
Connecting to peer host crash
Input some text, press enter and ctrl+d
Trying to connect to 3ffe::1
connect took 0.004 sec
OK

It tries to connect to an IPv6 address now, because it does not match
"crash" and "crash.foobar". Actually, adjusting /etc/resolv.conf with
"search foobar" does work either (yes, it is a bug) but it should not be
the issue with you.

>>
>> What did this produce to the systems logs (i.e. /var/log/kern.log)?
>>
>
> ksat92:/home/igvargas/hipl--main--2.6/test# cat /var/log/kern.log
> Feb 14 12:37:53 ksat92 kernel: hip_cleanup: Uninitializing HIP module

There was nothing in the system logs about the connection attempt because
it was purely IPv6 based connection attempt. Check your /etc/hosts and
/etc/hip/hosts files again? You need to check them only on the initiator
host (ksat77 in the examples above).

Does the conntest-client-gai + conntest-server pair still work for you
without hipconf:

On both hosts:
# rmmod hipmod
# modprobe hipmod
# tools/hipconf add hi default

ksat92:
# test/conntest-server tcp 12345

ksat77:
# test/conntest-client-gai ksat92 tcp 12345

hipconf is just a wrapper to these (actually, the server is nc6, but it
should not matter).

One other thing to check is that the libinet6.a has been linked properly
to conntest-client-gai. What does the following command output:

# strings test/conntest-client-gai|grep -i hip

--=20
Miika Komu              miika@xxxxxx          http://www.iki.fi/miika/

Other related posts: