IPv6トンネル接続実験の概要

申し込み。 DMZ と Local Network の間のルーターにトンネルやらすことに決定。

* 設定終了

もう設定終了したらしいので、さくっと設定した。

$ cat /etc/init.d/ipv6
#! /bin/sh
# See how we were called.
case "$1" in
        start)
                echo -n "Starting IPv6:"
                /sbin/ifconfig sit0 mtu 1280
                /sbin/ifconfig sit0 tunnel ::61.200.163.69/96
                /sbin/ifconfig sit1 mtu 1280
                /sbin/ifconfig sit1 up
                echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra
                echo 1 > /proc/sys/net/ipv6/conf/all/accept_redirects
                echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
                /sbin/route -A inet6 add 2000::/3 dev sit1
                /sbin/ifconfig eth1 add 2001:XXXX:XXXX:0000::1/64
                /sbin/route -A inet6 add 2001:XXXX:XXXX:0000::/64 dev eth1
                /sbin/ifconfig eth0 add 2001:XXXX:XXXX:0001::1/64
                /sbin/route -A inet6 add 2001:XXXX:XXXX:0001::/64 dev eth0
                echo "."
                ;;
        stop)
                echo -n "Stopping IPv6:"
                /sbin/ifconfig sit1 down
                /sbin/ifconfig sit0 down
                /sbin/ifdown eth0
                /sbin/ifup eth0
                echo "."
                ;;
        restart)
                $0 stop
                $0 start
                ;;
        *)
                echo "Usage: ipv6 {start|stop|restart}"
                exit 1
esac
exit
$ cat /etc/radvd.conf
interface eth0
{
   AdvSendAdvert on;
   #
   # new EUI-64 prefixes
   #
   prefix 2001:XXXX:XXXX:0001::0/64
   {
      AdvOnLink on;
      AdvAutonomous on;
   };
};
 $ cat /etc/zepra/daemons
 # This file tells the zebra package
 # which daemons to start.
 # Entries are in the format: <daemon>=(yes|no|priority)
 # where 'yes' is equivalent to infinitely low priority, and
 # lower numbers mean higher priority. Read
 # /usr/doc/zebra/README.Debian for details.
 # Daemons are: bgpd zebra ospfd ospf6d ripd ripngd
 zebra=no
 bgpd=no
 ospfd=no
 ospf6d=no
 ripd=no
 ripngd=yes
 $ cat /etc/zepra/ripng.conf
 ! -*- rip -*-
 !
 ! RIPngd sample configuration file
 !
 ! $Id: d20021007.hnf,v 1.6 2002/10/08 09:38:48 tnh Exp $
 !
 hostname ripngd
 ! password zebra
 !
 ! debug ripng events
 ! debug ripng packet
 !
 !
 router ripng
  network sit1
  route 2001:XXXX:XXXX::/48
 ! network sit1
 ! route 3ffe:506::0/32
 ! distribute-list local-only out sit1
 !
 !ipv6 access-list local-only permit 3ffe:506::0/32
 !ipv6 access-list local-only deny any
 !
 log file /var/log/zebra/ripngd.log

* Debian IPv6 Project - Setup Instructions

masy さんに教えてもらったページ。