IPv6 AutoConfiguration: Stateful radvd - redistribusi ulang alokasi IPv6 6project

From OnnoWiki
Jump to: navigation, search

router advertisement daemon (RAdvD) hanya berfungsi jika kita mempunyai alokasi IPv6 <64 di bawah itu akan bermasalah. Jadi alokasi dari 6project.org ( /80 ) tidak bisa di distribusi ulang menggunakan radvd.


Reset IPv6 tun0 interface, misalnya awal perolehan IPv6 address

tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
       inet 10.8.0.21  netmask 255.255.255.0  destination 10.8.0.21
       inet6 fe80::c692:811f:ae00:38f6  prefixlen 64  scopeid 0x20<link>
       inet6 2a07:1c44:212:c0ca:87e8::  prefixlen 80  scopeid 0x0<global>
       unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 100  (UNSPEC)
       RX packets 3701  bytes 4124934 (4.1 MB)
       RX errors 0  dropped 0  overruns 0  frame 0
       TX packets 2711  bytes 302275 (302.2 KB)
       TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Set ulang tun0 menjadi IPv6 atas /80

ip addr del 2a07:1c44:212:c0ca:87e8::/80 dev tun0
ip addr add 2a07:1c44:212:c0ca:87e8:8000::/81 dev tun0
ip route add ::/0 dev tun0

Set IPv6 interface, misalnya,

ip -6 addr add 2a07:1c44:212:c0ca:87e8::/81 dev enp3s0
ip -6 addr add 2a07:1c44:212:c0ca:87e8::/80 dev enp3s0
ip -6 addr add 2a07:1c44:212:c0ca:87e8::dead/128 dev enp3s0

Edit /etc/radvd.conf. Contoh:

interface enp3s0
{
   AdvSendAdvert on;
   prefix 2a07:1c44:212:c0ca:87e8::/81
   {
   };
};

Restart radvd

/etc/init.d/radvd restart


Pranala Menarik