如果要看IPv6的網頁請照下列的格式輸入
● HTTP
http://[3ffe:1:2::2]
● HTTPs
https://[3ffe:1:2::2]
http://[3ffe:1:2::2]
https://[3ffe:1:2::2]
# yum install telnet-server
# chkconfig telnet on
# telnet 3ffe:1:2::1
# yum install fedora-rpmdevtools
# fedora-buildrpmtree
# yum install yum-utils
# yumdownloader --source kernel
# rpm -ivh kernel-.src.rpm
# cd /rpmbuild
# rpmbuild -bp --target $(uname -m) kernel-2.6.spec
# cd /rpmbuild/BUILD/kernel-/linux-
# vi Makefile
...
EXTRAVERSION = XXX (改成自己能識別的名稱)
...
# make mrproper
# cp /boot/config- .config
# make oldconfig
# make clean
# make bzImage modules modules_install
# make install
# vi /boot/grub/grub.conf
...
default=0
...
# reboot
# uname -a
# ifconfig eth0 192.168.1.1
# ifconfig eth0 192.168.1.2
# ifconfig eth1 192.168.2.1
# echo "1" > /proc/sys/net/ipv4/ip_forward
# route add default gw 192.168.2.2
# ifconfig eth0 192.168.2.2
# ifconfig eth1 192.168.3.1
# echo "1" > /proc/sys/net/ipv4/ip_forward
# route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.2.1
# route add -net 192.168.4.0 netmask 255.255.255.0 gw 192.168.3.2
# ifconfig eth0 192.168.3.2
# ifconfig eth1 192.168.4.1
# echo "1" > /proc/sys/net/ipv4/ip_forward
# route add default gw 192.168.3.1
# ifconfig eth0 192.168.4.2
![]() |
| Add caption |
# tar vfxz v6eval-remotes-3.0.tar.gz
# cd v6eval-remotes-3.0
# vi Makefile
DOCFILES=00README.remotes INSTALL.remotes \
COPYRIGHT
# vi ./bin/remotes/Makefile
SUBDIR= unknown \
manual \
linux-v6 \
usagi-i386 \
usagi24-i386 \
freebsd-i386 \
freebsd43-i386 \
kame-freebsd \
ms-winxp \
ms-win2k
# make
# make install
System linux-v6
$Device=”cuau0”
$User=”root”
$Password=”v6eval”
# touch /var/log/aculog
# chown uucp:dialer /var/log/aculog
# chmod 660 /var/log/aculog
# cu –l /dev/cuau0 –s 38400 (38400是 baud rate)
# ~. (終止連線)
# /usr/local/v6eavl/bin/linux-v6/loginout.rmt –o 1
# cd Self_Test_5-0-0
# make clean
# make ipv6ready_p2_host
# cd /usr/ports/lang/perl5.12
# make
# make install
如果無法連上網路請自行下載BSDPAN-20111107.tar.bz2與perl-5.12.4.tar.bz2,並執行以下指令之後,再重新試上面的指令
# cp perl-5.12.4.tar.bz2 /usr/ports/distfiles/perl
# cp BSDPAN-20111107.tar.bz2 /usr/ports/distfiles/perl
● Expect# cd /usr/ports/lang/p5-Expect
# make
# make install
如果無法連上網路請自行下載IO-Tty-1.10.tar.gz與Expect-1.21.tar.gz,並執行以下指令之後,再重新試上面的指令
# cp Expect-1.21.tar.gz /usr/ports/distfiles
# cp IO-Tty-1.10.tar.gz /usr/ports/distfiles
● Digest-MD5# cd /usr/ports/security/p5-Digest-MD5
# make
# make install
如果無法連上網路請自行下載Digest-MD5-2.51.tar.gz,並執行以下指令之後,再重新試上面的指令
# cp Digest-MD5-2.51.tar.gz /usr/ports/distfiles
● YAML# cd /usr/ports/textproc/p5-YAML
# make
# make install
如果無法連上網路請自行下載YAML-0.77.tar.gz,並執行以下指令之後,再重新試上面的指令
# cp YAML-0.77.tar.gz /usr/ports/distfiles
# tar zxvf v6eval-3.3.2.tar.gz
# cp v6eval.diff_.gz v6eval-3.3.2
# cd v6eval-3.3.2
# gunzip v6eval.diff_.gz
# patch -p0 < v6eval.diff_
# make
# make install
● Self Test Tool (Perl寫的Script用來執行v6eval讓它去收送封包)# tar vxfz Self_Test_5-0-0.tgz
ipv6_enable=”NO”
ifconfig_rl0=”up”
devfs_system_ruleset=“devfsrules_unhide_bpf”
● /etc/devfs.rules[devfsrules_unhide_bpf=1025]
add path ‘bpf0’ user root group wheel mode 0660 unhide
add path ‘bpf1’ user root group wheel mode 0660 unhide
add path ‘bpf2’ user root group wheel mode 0660 unhide
add path ‘bpf3’ user root group wheel mode 0660 unhide
add path ‘bpf4’ user root group wheel mode 0660 unhide
add path ‘bpf5’ user root group wheel mode 0660 unhide
add path ‘bpf6’ user root group wheel mode 0660 unhide
add path ‘bpf7’ user root group wheel mode 0660 unhide
● /etc/groupwheel
● /usr/local/v6eval/etc/tn.def (請修改rl0為連接NUT的port)RemoteDevice cuau0
RemoteDebug 0
RemoteIntDebug 0
RemoteLog 1
RemoteSpeed 0
RemoteLogout 0
RemoteMethod serial
filter ipv6
Link0 rl0 00:00:00:00:01:00
● /usr/local/v6eval/etc/nut.def (TargetName與HostName設定要測試設備的名稱,Link0請設定NUT的port與MAC)System manual
TargetName abc
HostName abc
Type host
User root
Password v6eval
Link0 eth0 00:00:92:a7:6d:f5
# cd Self_Test_5-0-0
# make clean
# make ipv6ready_p2_host
若要分項測試,針對Spec作測試# cd Self_Test_5-0-0/spec.p2
# make clean
# make ipv6ready_p2_host
若要針對Spec的17~24項作測試# cd Self_Test_5-0-0/spec.p2
# make clean
# make AROPT="-s 17 -e 24" ipv6ready_p2_host
reboot> Reboot NUT.
reboot> * Wait until NUT boot up completely.
reboot> Ex.) Wait until catch up login prompt.
reboot>
reboot> Press Enter key for continue.
● 重新開機之後,馬上按下Enterreboot_async> Reboot NUT.
reboot_async> * You don't need to wait NUT untill boot up completely.
reboot_async> * You have to exit this script quickly.
reboot_async> * This script is used for catching up boot sequence.
reboot_async> Ex.) DAD, MLD Report, ...
reboot_async>
reboot_async> Press Enter key for continue.
● 先輸入好ping6的指令,按下Enter的五秒內,執行ping6的指令ping6> Press enter key, and excute the following commands within 5 seconds.
ping6> Do ``ping6 DataSize= 1352, Send Count= 1, Interface= bfe0, Destination= FF1E::1:2''
# yum remove dhclinet
# yum install dhcp
# vi /etc/dhcp/dhcpd6.conf
option dhcp6.rapid-commit;
default-lease-time 120;
ddns-update-style interim;
ddns-domainname example.com";
authoritative;
subnet6 2011:1:2::/48 {
range6 2011:1:2::129 2011:1:2::254;
option dhcp6.name-servers 2011:1:2::2012;
option dhcp6.domain-serach "ipv6.domain.example";
}
# ifconfig eth0 inet6 add 2011:1:2::123/48
# service dhcpd6 start
# dhclient -6 eth0
# ifconfig
# yum install radvd
# vi /etc/radvd.conf
interface eth0
{
AdvSendAdvert on;
MinRtrAdvInterval 3;
MaxRtrAdvInternal 10;
prefix 2001:db8:0:f101::/64
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
};
# echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
# echo 1 > /proc/sys/net/ipv6/conf/default/forwarding
# vi /etc/sysconfig/network
NETWORKING_IPV6=yes
# service radvd start
# ifconfig
# ifconfig eth0 192.168.1.2
# ifconfig eth0 inet6 add 3ff1:1:2::2/64
# service iptables stop
# service ip6tables stop
# ifconfig eth0 192.168.1.1
# ifconfig eth0 inet6 add 3ff1:1:2::1/64
# service iptables stop
# service ip6tables stop
# ping 192.168.1.1
# ping6 -I eth0 3ffe:1:2::1
# ping 192.168.1.2
# ping6 -I eth0 3ffe:1:2::2