On Tue, 2006-04-18 at 11:52 -0400, itachi@cnt.uo.edu.cu wrote:
> ok here i go
> i have a private network (no internet access)
What you need is so called "ULA"'s (Unique Local Addresses)
as per RFC4193 / http://www.ietf.org/rfc/rfc4193.txt
Easy way, go to: http://www.kame.net/~suz/gen-ula.html
and fill in your mac address, the HWaddr, from one of your network
interfaces. This will produce you with a globally unique /48.
Then you can use one of the 65536 /64's out of it to make up the prefix
for your network. Below we assume 2001:db8:1234::/48 to be your prefix
and we'll use 2001:db8:1234:1000::/64 for the link.
On your 'router' do:
8<----------------------------
modprobe ipv6
sysctl -w net.ipv6.conf.all.forwarding=1
ip -6 addr add 2001:db8:1234:1000::1/64 dev eth0
---------------------------->8
Which can also be done using interfaces(5).
Then configure radvd:
8<----------------------------
# cat /etc/radvd.conf
interface eth0
{
AdvSendAdvert on;
prefix 2001:db8:1234:1000::/64
{
};
};
---------------------------->8
Then enable it:
8<----------------------------
# /etc/init.d/radvd start
---------------------------->8
All other computers on the network should now automatically get IPv6
addresses (with a default route pointing to the machine where radvd runs
on).
Enjoy your local network ;)
Easy things to try if it works:
# ping6 -I eth0 ff02::1
which should get responses from all the other hosts on the link which
have an IPv6 stack. Though that uses link-local addresses.
Greets,
Jeroen
Attachment:
signature.asc
Description: This is a digitally signed message part