Whole document tree 17.4. Router Advertisement Daemon (radvd)The router advertisement daemon is very useful on a LAN, if clients should be auto-configured. The daemon itself should run a Linux router (not necessary the default IPv4 gateway). You can specify some information and flags which should be contained in the advertisement. Common used are
After a proper configuration, the daemon sends advertisements through specified interfaces and clients are hopefully receive them and auto-magically configure addresses with received prefix and the default route. 17.4.1. Configuring radvd17.4.1.1. Simple configurationRadvd's config file is normally /etc/radvd.conf. An simple example looks like following:
This results on client side in
Because no lifetime was defined, a very high value was used. 17.4.1.2. Special 6to4 configurationVersion since 0.6.2pl3 support the automatic (re)-generation of the prefix depending on an IPv4 address of a specified interface. This can be used to distribute advertisements in a LAN after the 6to4 tunneling has changed. Mostly used behind a dynamic dial-on-demand Linux router. Because of the sure shorter lifetime of such prefix (after each dial-up, another prefix is valid), the lifetime configured to minimal values:
This results on client side in (assuming, ppp0 has currently 1.2.3.4 as local IPv4 address):
Because a small lifetime was defined, such prefix will be thrown away quickly, if no related advertisement was received. 17.4.2. DebuggingA program called "radvdump" can help you looking into sent or received advertisements. Simple to use:
Output shows you each advertisement package in readable format. You should see your configured values here again, if not, perhaps it's not your radvd which sends the advertisement...look for another router on the link (and take the LLAddress, which is the MAC address for tracing). |