(Added pre-built binary) |
|||
(9 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
+ | == Radvd - IPv6 Router Advertisement Daemon == | ||
− | + | The IPv6 Router Advertisement Daemon (radvd) periodically sends router advertisement (RA) messages to a local ethernet LAN advertising among other things, the IPv6 prefix and router address. | |
− | + | === Cross Compiling Radvd for ARM === | |
− | + | Radvd requires the following to be installed on your build system: | |
<PRE> | <PRE> | ||
− | + | sudo apt-get install bison | |
− | + | sudo apt-get install flex | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</PRE> | </PRE> | ||
− | + | Download radvd, extract and cross compile for ARM: | |
<PRE> | <PRE> | ||
− | wget http://www.litech.org/radvd/dist/radvd- | + | wget http://www.litech.org/radvd/dist/radvd-2.11.tar.gz |
− | tar -xzf radvd- | + | tar -xzf radvd-2.11.tar.gz |
− | cd radvd- | + | cd radvd-2.11 |
− | ./configure --prefix= | + | ./configure --prefix= --host=arm-linux-gnueabi --sysconfdir=/etc |
− | + | ||
− | + | ||
− | + | ||
make | make | ||
− | make install | + | make install DESTDIR=/home/export/rootfs |
+ | </PRE> | ||
+ | |||
+ | === Configuration === | ||
+ | |||
+ | A default /etc/radvd.conf file is shown below advertising an address prefix: | ||
+ | |||
+ | <pre> | ||
+ | interface eth0 { | ||
+ | AdvSendAdvert on; | ||
+ | MinRtrAdvInterval 3; | ||
+ | MaxRtrAdvInterval 10; | ||
+ | prefix 2003:44b9:4219:6400::/64 { | ||
+ | AdvOnLink on; | ||
+ | AdvAutonomous on; | ||
+ | }; | ||
+ | }; | ||
+ | </pre> | ||
+ | |||
+ | Options | ||
+ | |||
+ | * AdvSendAdvert: Enable router to send periodic router advertisements and respond to router solicitations. | ||
+ | * MinRtrAdvInterval: Minimum time between sending unsolicited multicast router advertisements (seconds) | ||
+ | * MaxRtrAdvInterval: Maximum time between sending unsolicited multicast router advertisements (seconds). Must be no greater than 1800 seconds (30 Minutes) | ||
+ | * Prefix: Prefix Definition | ||
+ | ** AdvOnLink: Indicates if prefix can be used for on-link determination. | ||
+ | ** AdvAutonomous: When set, indicates that this prefix can be used for autonomous address configuration as specified in RFC 4862. | ||
+ | ** AdvRouterAddr: When set, indicates that the address of interface is sent instead of network prefix | ||
+ | |||
+ | The daemon can be started by simply running: | ||
+ | |||
+ | <PRE> | ||
+ | radvd | ||
</PRE> | </PRE> | ||
− | == Download Pre-built Binaries == | + | === Download Pre-built Binaries === |
The link below contains a bzip2 tarball of the radvd binaries compiled for ARM : | The link below contains a bzip2 tarball of the radvd binaries compiled for ARM : | ||
− | * [http://wiki.beyondlogic.org/prebuilt/radvd-1.10.0-arm-linux-gnueabi.tar. | + | * [http://wiki.beyondlogic.org/prebuilt/radvd-1.10.0-arm-linux-gnueabi.tar.gz radvd-1.10.0-arm-linux-gnueabi.tar.gz] [md5hash cc5f5af7e2df34b3589fbfb5115920a3] |
* Built using: | * Built using: |
The IPv6 Router Advertisement Daemon (radvd) periodically sends router advertisement (RA) messages to a local ethernet LAN advertising among other things, the IPv6 prefix and router address.
Radvd requires the following to be installed on your build system:
sudo apt-get install bison sudo apt-get install flex
Download radvd, extract and cross compile for ARM:
wget http://www.litech.org/radvd/dist/radvd-2.11.tar.gz tar -xzf radvd-2.11.tar.gz cd radvd-2.11 ./configure --prefix= --host=arm-linux-gnueabi --sysconfdir=/etc make make install DESTDIR=/home/export/rootfs
A default /etc/radvd.conf file is shown below advertising an address prefix:
interface eth0 { AdvSendAdvert on; MinRtrAdvInterval 3; MaxRtrAdvInterval 10; prefix 2003:44b9:4219:6400::/64 { AdvOnLink on; AdvAutonomous on; }; };
Options
The daemon can be started by simply running:
radvd
The link below contains a bzip2 tarball of the radvd binaries compiled for ARM :