[radvd-devel-l] radvd exit

=?gb2312?B?y84gzqy80Q==?= songweijia at hotmail.com
Mon Aug 21 05:25:19 EDT 2006


Thank you pekkas!
I've advanced a little but stuck in another problem.

/ # radvd -d 4
[Jan 01 00:19:26] radvd: another radvd seems to be already running, 
terminating
/ # ps | grep radvd
/ # ls -l /var/*
/var/log:
drwxr-xr-x    2 0        0            1024 Jan  1 00:12 radvd
-rw-r--r--    1 0        0               0 Jan  1 00:09 radvd.log

/var/run:
drwxr-xr-x    2 0        0            1024 Jan  1 00:11 radvd
-rw-r--r--    1 0        0               0 Jan  1 00:08 radvd.pid
/ # radvd -v
Version: 0.9.1

Compiled in settings:
  default config file           "//etc/radvd.conf"
  default pidfile               "/var/run/radvd.pid"
  default logfile               "/var/log/radvd.log"
  default syslog facililty      24
Please send bug reports or suggestions to Pekka Savola <pekkas at netcore.fi>.
/ # cat /etc/radvd.conf
#
# NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
# NOTE                                                             NOTE
# NOTE  This is an EXAMPLE, which serves only to demonstrate the   NOTE
# NOTE  syntax of radvd.conf, and is not meant to be used for a    NOTE
# NOTE  real radvd configuration.                                  NOTE
# NOTE                                                             NOTE
# NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
#

interface ixp0
{
        AdvSendAdvert on;

# This may be needed on some interfaces which are not active when
# radvd starts, but becomoe available later on, and are activated by 
sending a
# HUP signal to radvd; see man page for details.

        # IgnoreIfMissing on;

#
# These settings cause advertisements to be sent every 3-10 seconds.  This
# range is good for 6to4 with a dynamic IPv4 address, but can be greatly
# increased when not using 6to4 prefixes.
#

        MinRtrAdvInterval 3;
        MaxRtrAdvInterval 10;

#
# You can use AdvDefaultPreference setting to advertise the preference of
# the router for the purposes of default router determination.
# NOTE: This feature is still being specified and is not widely supported!
#
        AdvDefaultPreference low;

#
# Disable Mobile IPv6 support
#
        AdvHomeAgentFlag off;

#
# example of a standard prefix
#
        prefix 2001:da8:ac:1011::/64
        {
                AdvOnLink on;
                AdvAutonomous on;
#               AdvRouterAddr off;
        };

#
# example of a more specific route
# NOTE: This feature is still being specified and is not widely supported!
#
##      route 2001:db0:fff::/48
##      {
##              AdvRoutePreference high;
##              AdvRouteLifetime 3600;
##      };

#
# example of a 6to4 prefix
#
# Note that the first 48 bits are specified here as zeros.  These will be
# replaced with the appropriate 6to4 address when radvd starts or is
# reconfigured. Be sure that the SLA ID (1234 in this case) is specified
# here!
#
##      prefix 0:0:0:1234::/64
##      {
##              AdvOnLink on;
##              AdvAutonomous on;
##              AdvRouterAddr off;

#
# This setting causes radvd to replace the first 48 bits of the prefix
# with the 6to4 address generated from the specified interface.  For 
example,
# if the address of ppp0 is 192.0.2.25 when radvd configures itself, this
# prefix will be advertised as 2002:C000:0219:1234::/64.
#
# If ppp0 is not available at configuration time, this prefix will not be
# advertised, but other prefixes listed in the configuration will be
# advertised as usual.
#
# When using the Base6to4Interface option, make sure radvd receives a
# SIGHUP every time the ppp0 interface goes up, down, or is assigned a
# new IPv4 address.  The SIGHUP will cause radvd to recognize that the
# ppp0 interface has changed and will adjust the advertisements
# accordingly.
#

##              Base6to4Interface ppp0;

#
# If the IP address of ppp0 is assigned dynamically, be sure to set the
# lifetimes for this prefix to be small.  Otherwise, hosts on your network
# may continue to use a prefix that no longer corresponds to the address
# on ppp0!
#
##              AdvPreferredLifetime 120;
##              AdvValidLifetime 300;
##      };

};

/ # ifconfig
ixp0      Link encap:Ethernet  HWaddr 00:02:B3:01:01:01
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: 2001:da8:ac:1011::1/64 Scope:Global
          inet6 addr: fe80::2:b3ff:fe01:101/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:256
          RX bytes:0 (0.0 B)  TX bytes:1276 (1.2 KiB)

ixp1      Link encap:Ethernet  HWaddr 00:02:B3:02:02:02
          inet addr:192.168.1.254  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: 2001:da8:ac:1010::ffff/64 Scope:Global
          inet6 addr: fe80::2:b3ff:fe02:202/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2740 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:256
          RX bytes:207806 (202.9 KiB)  TX bytes:1506 (1.4 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

I've googled this problem, and found 
http://lists.litech.org/pipermail/radvd-devel-l/2002-March/000044.html. but 
it doesn't help.

>From: Pekka Savola <pekkas at netcore.fi>
>To: radvd Development Discussion <radvd-devel-l at litech.org>
>CC: songweijia at hotmail.com
>Subject: Re: [radvd-devel-l] radvd exit
>Date: Mon, 21 Aug 2006 10:40:57 +0300 (EEST)
>
>On Mon, 21 Aug 2006, ËΠά¼Ñ wrote:
>>I'm compiled radvd for an ixp425-based system:
>>Operation System: linux 2.6.10
>>Toolchina: armv5b-softfloat-linux-gcc, big endian mode
>>
>>Compliation reported several warning but passed successfully.
>>
>>when I run radvd on my target like:
>>$>radvd -C /etc/radvd.conf
>>$>
>>it reports nothing and end.
>>$>ps | grep radvd
>>$>
>
>Look at your /var/log/messages, run radvd with '-m' argument and/or 
>increase the debug level (-d).
>
>--
>Pekka Savola                 "You each name yourselves king, yet the
>Netcore Oy                    kingdom bleeds."
>Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings

_________________________________________________________________
ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£  http://www.hotmail.com  




More information about the radvd-devel-l mailing list