[LUG.ro] como? IPv6

Luis diazluis en gmail.com
Vie Mar 21 16:17:17 ART 2008


Hola! tanto tiempo colgado...hace unos dias me sacaron el tema de IPv6
y ayer flasheando el AP con la ultra ultima version de dd-wrt encontre
soporte a IPv6 y me dispuse a habilitarlo (como pude) leibastante pero
hay muchisimas cosas que no entiendo, asique voy a pstear "lo que veo"
en mi LAN/WAN y despues hacer las preguntas...

AP:


root en RouterPocoYo:~# ip addr show
1: lo: <LOOPBACK,MULTICAST,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
    inet6 ::1/128 scope host
2: teql0: <NOARP> mtu 1500 qdisc noop
    link/void
3: eth0: <BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc pfifo_fast
    link/ether 00:1c:10:41:23:80 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::21c:10ff:fe41:2380/64 scope link
4: eth1: <BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc pfifo_fast
    link/ether 00:1c:10:41:23:82 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::21c:10ff:fe41:2382/64 scope link
5: vlan0: <BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc noqueue
    link/ether 00:1c:10:41:23:80 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::21c:10ff:fe41:2380/64 scope link
6: vlan1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
    link/ether 00:1c:10:41:23:81 brd ff:ff:ff:ff:ff:ff
    inet 201.212.206.84/24 brd 201.212.206.255 scope global vlan1
    inet6 fe80::21c:10ff:fe41:2381/64 scope link
7: br0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc htb
    link/ether 00:1c:10:41:23:80 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global br0
    inet 169.254.255.1/16 brd 169.254.255.255 scope global br0:0
    inet6 2002:c9d4:ce54:1::1/64 scope global
    inet6 fe80::21c:10ff:fe41:2380/64 scope link
8: imq0: <NOARP,UP> mtu 1500 qdisc htb
    link/void
9: imq1: <NOARP> mtu 1500 qdisc noop
    link/void
10: sit0 en NONE: <NOARP> mtu 1480 qdisc noop
    link/sit 0.0.0.0 brd 0.0.0.0
11: tun6to4 en NONE: <NOARP,UP> mtu 1280 qdisc noqueue
    link/sit 201.212.206.84 brd 0.0.0.0
    inet6 2002:c9d4:ce54::1/16 scope global
    inet6 ::201.212.206.84/128 scope global


Router (IPv4)

root en RouterPocoYo:~# ip -4 addr show
1: lo: <LOOPBACK,MULTICAST,UP> mtu 16436 qdisc noqueue
    inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
6: vlan1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
    inet 201.212.206.84/24 brd 201.212.206.255 scope global vlan1
7: br0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc htb
    inet 192.168.1.1/24 brd 192.168.1.255 scope global br0
    inet 169.254.255.1/16 brd 169.254.255.255 scope global br0:0



PC: (gentoo, con modulo ipv6 y ping6, nada mas tiene soporte IPv6,
salvo el firefox, porque accedo a muchos lugares IPv6...(es un binario
de ffox 3)

Vger bin # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:13:8F:BF:55:08
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: 2002:c9d4:ce54:1:213:8fff:febf:5508/64 Scope:Global
          inet6 addr: fe80::213:8fff:febf:5508/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:31860 errors:0 dropped:0 overruns:0 frame:0
          TX packets:32484 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28029076 (26.7 Mb)  TX bytes:5251301 (5.0 Mb)
          Interrupt:28 Base address:0x6000



Para el AP hice algunos pasos de aca:
http://www.dd-wrt.com/wiki/index.php/IPv6#6to4_Setup
basicamente solo agregue la config de radvd:

interface br0 {
   MinRtrAdvInterval 3;
   MaxRtrAdvInterval 10;
   AdvLinkMTU 1280;
   AdvSendAdvert on;
   prefix 0:0:0:1::/64 {
    AdvOnLink on;
    AdvAutonomous on;
    AdvValidLifetime 86400;
    AdvPreferredLifetime 86400;
    Base6to4Interface vlan1;
   };
};


y luego un script al inicio en el AP:

sleep 5
WANIP=$(ip -4 addr show dev vlan1 | grep 'inet ' | awk '{print $2}' |
cut -d/ -f1)
if [ -n "$WANIP" ]
then
 V6PREFIX=$(printf '2002:%02x%02x:%02x%02x' $(echo $WANIP | tr . ' '))
 ip tunnel add tun6to4 mode sit ttl 255 remote any local $WANIP
 ip link set tun6to4 mtu 1280
 ip link set tun6to4 up
 ip addr add $V6PREFIX:0::1/16 dev tun6to4
 ip addr add $V6PREFIX:1::1/64 dev br0
 ip -6 route add 2000::/3 via ::192.88.99.1 dev tun6to4
 kill -HUP $(cat /var/run/radvd.pid)
fi


Todo esto me da como resultado la configuracion de arriba, ahora, por
lo que entiendo estoy usando alguna clase de tunel, por lo que mi
trafico IPv6 es encapsulado en el AP adentro de IPv4,

1) Es asi?

2) Es posible NO usar un tunel y tener trafico IPv6 directamente a
internet?? (tengo flash cablemodem......)

3) mi IP tiene prefijo 2002, indicando que estoy en un tunel 6 a 4,
por ende la IP es dinamica....puedo conseguir alguna IP estatica?
preferentemente con algun servicio que no necesite software extra


Saludos y gracias, espero no estar haciendo preguntas tontas, pero lei
bastante y hay muchas cosas que no me terminan de cerrar... :S



-- 
Luis Diaz - Es solo cuestion de Fe y ser optimista....


Más información sobre la lista de distribución Lugro