Witam,
Znowu ja, po raz kolejny utknąłem, tym razem z IPv6.
Posiłkując się http://www.tunnelbroker.net/forums/in...opic=106.0,http://www.exit2shell.com/~skreuzer/o...-ipv6.html. http://mattventura.net/openwrt-stuff/ próbuje uzyskać ipv6 z http://www.tunnelbroker.net/ (Hurricane Electric) ale mam problem już na początku drogi.
Mam najnowszego Gargoyle z 6 listopada.
Poradnik http://www.tunnelbroker.net/forums/in...opic=106.0 wydawał mi się najlepszy dla mnie - czytaj idioto odporny - ale cóż... wyszło jak wyszło. Są też inne poradniki na sixxs ale 3 razy odrzucili moje podanie :) a po 2 z HE tunel mam już dobre 2 lata i działało dobrze pod windą :)
Zainstalowałem:
opkg install kmod-ipv6
opkg install radvd
opkg install ip
opkg install kmod-ip6tables
opkg install ip6tables
Na komendę insmod ipv6:
root@Gargoyle:~# insmod ipv6
insmod: can't insert 'ipv6': File exists
Po restarcie to samo,natomiast z tego co znalazłem to ipv6 jest obecne. Na komendę ip addr show lo otrzymuje:
root@Gargoyle:/etc/init.d# ip addr show lo
1: lo: mtu 16436 qdisc noqueue state UNKNOWN
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
valid_lft forever preferred_lft forever
oraz (chociaż duże te pingi)
root@Gargoyle:/etc/init.d# ping6 -c3 ::1
PING ::1 (::1): 56 data bytes
64 bytes from ::1: seq=0 ttl=64 time=8.362 ms
64 bytes from ::1: seq=1 ttl=64 time=7.853 ms
64 bytes from ::1: seq=2 ttl=64 time=7.298 ms
potem jest o protokole 41, dodałem do /etc/config/firewall takie coś:
config 'rule'
option proto '41'
option target 'ACCEPT'
potem skrypcik /etc/init.d/S45ipv6 (adresy pozmieniane - tu akurat chyba ciężko się pomylić bo nazwy takie jak na stronie tunnelbroker.net)
#!/bin/sh /etc/rc.common
#Information from the "Tunnel Details" page
SERVER_v4=Server IPv4 Address
SERVER_v6=Server IPv6 Address
CLIENT_v4=Client IPv4 Address
CLIENT_v6=Client IPv6 Address
# Uncomment if you have a /48
#ROUTED_48=Your /48 netblock's gateway address, e.g., 2001:a:b::1
ROUTED_64=Your /64 netblock's gateway address, e.g., 2001:a:b:c::1
START=50
start() {
echo "Starting he.net IPv6 tunnel: "
ip tunnel add henet mode sit remote $SERVER_v4 local $CLIENT_v4 ttl 255
ip link set henet up
ip -6 addr add $CLIENT_v6/64 dev henet
ip -6 ro add default via $SERVER_v6 dev henet
ip -6 addr add $ROUTED_64/64 dev br0
# Uncomment if you have a /48
#ip -6 addr add $ROUTED_48/48 dev br0
ip -f inet6 addr
echo "Done."
}
stop() {
echo -n "Stopping he.net IPv6 tunnel: "
ip link set henet down
ip tunnel del henet
ip -6 addr delete $ROUTED_64/64 dev br0
# Uncomment if you have a /48
#ip -6 addr delete $ROUTED_48/48 dev br0
echo "Done."
}
restart() {
stop
start
}
chmod +x /etc/init.d/S45ipv6
po wpisaniu
otrzymuje:
root@Gargoyle:/etc/init.d# ./S45ipv6 start
Starting he.net IPv6 tunnel:
ioctl: No such device
Cannot find device "henet"
Cannot find device "henet"
Cannot find device "henet"
Cannot find device "br0"
1: lo: mtu 16436
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: mtu 1500 qlen 1000
inet6 fe80::da5d:4cff:feb9:dc78/64 scope link
valid_lft forever preferred_lft forever
3: eth0.1@eth0: mtu 1500
inet6 fe80::da5d:4cff:feb9:dc78/64 scope link
valid_lft forever preferred_lft forever
4: eth0.2@eth0: mtu 1500
inet6 fe80::220:edff:fe71:7481/64 scope link
valid_lft forever preferred_lft forever
5: br-lan: mtu 1500
inet6 fe80::34eb:7cff:fecf:f5aa/64 scope link
valid_lft forever preferred_lft forever
Done.
Więc się pytam, co zaś sknociłem :>
Pozdrawiam
vorkosigan
edit:
Troche poszukałem na necie i wyszło, że nie mam SIT? jak to włączyc ?
Po lekturze http://eko.one.pl/forum/viewtopic.php...id=484&p=2 twierdzę, ze openwrt wspiera ipv6 :).
root@Gargoyle:~# ifconfig sit0 up
ifconfig: SIOCGIFFLAGS: No such device
root@Gargoyle:~# ifconfig
br-lan Link encap:Ethernet HWaddr D8:5D:4C:B9:DC:78
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::3c52:d2ff:fe06:3463/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:187108 errors:0 dropped:0 overruns:0 frame:0
TX packets:269078 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10094852 (9.6 MiB) TX bytes:395124780 (376.8 MiB)
eth0 Link encap:Ethernet HWaddr D8:5D:4C:B9:DC:78
inet6 addr: fe80::da5d:4cff:feb9:dc78/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:467040 errors:0 dropped:0 overruns:0 frame:0
TX packets:455219 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:410517328 (391.4 MiB) TX bytes:408407133 (389.4 MiB)
Interrupt:4
eth0.1 Link encap:Ethernet HWaddr D8:5D:4C:B9:DC:78
inet6 addr: fe80::da5d:4cff:feb9:dc78/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:187108 errors:0 dropped:0 overruns:0 frame:0
TX packets:269086 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10843296 (10.3 MiB) TX bytes:396201812 (377.8 MiB)
eth0.2 Link encap:Ethernet HWaddr 00:20:ED:71:74:81
inet addr:xx.xxx.xxx.xx Bcast:95.215.235.255 Mask:255.255.255.0
inet6 addr: fe80::220:edff:fe71:7481/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:279446 errors:0 dropped:0 overruns:0 frame:0
TX packets:186124 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:393038507 (374.8 MiB) TX bytes:12203590 (11.6 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:64 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5214 (5.0 KiB) TX bytes:5214 (5.0 KiB)
root@Gargoyle:~# opkg list-installed
aiccu - 20070115-4
base-files - 43.8-unknown
block-hotplug - 0.1.0-2
block-mount - 0.1.0-2
bridge - 1.4-1
busybox - 1.15.3-2
bwmon-gargoyle - 1.3.7-1
crda - 1.1.0-2
ddns-gargoyle - 1.3.7-1
dnsmasq - 2.55-5
dropbear - 0.52-4
e2fsprogs - 1.41.11-1
ebtables - 2.0.9-1-1
ewget - 1.3.7-1
fdisk - 2.13.0.1-4
firewall - 1-20
gargoyle - 1.3.7-8cj
gargoyle-firewall-util - 1.3.7-1
haserl - 0.9.26-1
hotplug2 - 1.0-beta-2
httpd-gargoyle - 1.3.7-1
ip - 2.6.29-1-2
ip6tables - 1.4.6-2
iptables - 1.4.6-2
iptables-mod-bandwidth - 1.4.6-2
iptables-mod-conntrack - 1.4.6-2
iptables-mod-conntrack-extra - 1.4.6-2
iptables-mod-filter - 1.4.6-2
iptables-mod-imq - 1.4.6-2
iptables-mod-ipopt - 1.4.6-2
iptables-mod-iprange - 1.4.6-2
iptables-mod-nat - 1.4.6-2
iptables-mod-nat-extra - 1.4.6-2
iptables-mod-timerange - 1.4.6-2
iptables-mod-webmon - 1.4.6-2
iptables-mod-weburl - 1.4.6-2
iw - 0.9.21-1
kernel - 2.6.32.16-1
kmod-ath - 2.6.32.16+2010-10-19-1
kmod-ath9k - 2.6.32.16+2010-10-19-1
kmod-button-hotplug - 2.6.32.16-1
kmod-cfg80211 - 2.6.32.16+2010-10-19-1
kmod-crc-ccitt - 2.6.32.16-1
kmod-crc16 - 2.6.32.16-1
kmod-crypto-aes - 2.6.32.16-1
kmod-crypto-arc4 - 2.6.32.16-1
kmod-crypto-core - 2.6.32.16-1
kmod-ebtables - 2.6.32.16-1
kmod-fs-ext2 - 2.6.32.16-1
kmod-fs-ext3 - 2.6.32.16-1
kmod-fs-ext4 - 2.6.32.16-1
kmod-fs-mbcache - 2.6.32.16-1
kmod-fs-vfat - 2.6.32.16-1
kmod-fuse - 2.6.32.16-1
kmod-gre - 2.6.32.16-1
kmod-input-core - 2.6.32.16-1
kmod-input-gpio-buttons - 2.6.32.16-1
kmod-input-polldev - 2.6.32.16-1
kmod-ip6-tunnel - 2.6.32.16-1
kmod-ip6tables - 2.6.32.16-1
kmod-ipt-bandwidth - 2.6.32.16-1
kmod-ipt-conntrack - 2.6.32.16-1
kmod-ipt-conntrack-extra - 2.6.32.16-1
kmod-ipt-core - 2.6.32.16-1
kmod-ipt-filter - 2.6.32.16-1
kmod-ipt-imq - 2.6.32.16-1
kmod-ipt-ipopt - 2.6.32.16-1
kmod-ipt-iprange - 2.6.32.16-1
kmod-ipt-nat - 2.6.32.16-1
kmod-ipt-nat-extra - 2.6.32.16-1
kmod-ipt-nathelper - 2.6.32.16-1
kmod-ipt-timerange - 2.6.32.16-1
kmod-ipt-webmon - 2.6.32.16-1
kmod-ipt-weburl - 2.6.32.16-1
kmod-iptunnel4 - 2.6.32.16-1
kmod-iptunnel6 - 2.6.32.16-1
kmod-ipv6 - 2.6.32.16-1
kmod-leds-gpio - 2.6.32.16-1
kmod-mac80211 - 2.6.32.16+2010-10-19-1
kmod-nls-base - 2.6.32.16-1
kmod-nls-cp437 - 2.6.32.16-1
kmod-nls-iso8859-1 - 2.6.32.16-1
kmod-ppp - 2.6.32.16-1
kmod-pppoe - 2.6.32.16-1
kmod-sched - 2.6.32.16-1
kmod-scsi-core - 2.6.32.16-1
kmod-sit - 2.6.32.16-1
kmod-textsearch - 2.6.32.16-1
kmod-tun - 2.6.32.16-1
kmod-usb-core - 2.6.32.16-1
kmod-usb-serial - 2.6.32.16-1
kmod-usb-serial-option - 2.6.32.16-1
kmod-usb-storage - 2.6.32.16-1
kmod-usb-storage-extras - 2.6.32.16-1
kmod-usb2 - 2.6.32.16-1
libblkid - 1.41.11-1
libc - 0.9.30.1-43.8
libcurl - 7.19.6-1
libcyassl - 1.4.0-2
libericstools - 1.3.7-1
libexif - 0.6.19-1
libexpat - 2.0.1-1
libext2fs - 1.41.11-1
libffmpeg - 0.5.2-4cj
libflac - 1.2.1-1
libgcc - 4.3.3+cs-43.8
libgd - 2.0.35-1
libiconv - 1.11-1
libid3tag - 0.15.1b-3
libintl - 0.17-1
libiptbwctl - 1.3.7-1
libiptc - 1.4.6-2
libjpeg - 6b-1
libncurses - 5.7-2
libnl-tiny - 0.1-1
libogg - 1.1.4-2
libopenssl - 0.9.8m-3
libpar2 - 0.2-1
libpcre - 8.10-1
libpng - 1.2.44-1
libpthread - 0.9.30.1-43.8
librt - 0.9.30.1-43.8
libsigcxx - 2.2.6-1
libsqlite3 - 3.7.0-1
libstdcpp - 4.3.3+cs-43.3
libuci - 12012009.5-2
libuuid - 1.41.11-1
libvorbis - 1.2.3-1
libxml2 - 2.7.7-1
libxtables - 1.4.6-2
lighttpd - 1.4.26-3
lighttpd-mod-cgi - 1.4.26-3
minidlna - 1.0.18-1
miniupnpd - 1.4-1
mount.ntfs-3g - 2010.8.8-1-fuseint
mtd - 13
ntfs-3g - 2010.8.8-1-fuseint
ntpclient - 2007_365_1-1
nzbget - 0.7.0-1
nzbgetweb - 1.3-1
opkg - 576-1
perl - 5.10.0-4
perl-uri - 1.36-1
perl-www-curl - 4.00-1
perlbase-autoloader - 5.10.0-4
perlbase-base - 5.10.0-4
perlbase-bytes - 5.10.0-4
perlbase-config - 5.10.0-4
perlbase-cwd - 5.10.0-4
perlbase-digest - 5.10.0-4
perlbase-dynaloader - 5.10.0-4
perlbase-errno - 5.10.0-4
perlbase-essential - 5.10.0-4
perlbase-fcntl - 5.10.0-4
perlbase-file - 5.10.0-4
perlbase-io - 5.10.0-4
perlbase-mime - 5.10.0-4
perlbase-posix - 5.10.0-4
perlbase-selectsaver - 5.10.0-4
perlbase-socket - 5.10.0-4
perlbase-symbol - 5.10.0-4
perlbase-tie - 5.10.0-4
perlbase-time - 5.10.0-4
perlbase-xsloader - 5.10.0-4
php5 - 5.3.1-3
php5-cgi - 5.3.1-3
php5-mod-gd - 5.3.1-3
php5-mod-session - 5.3.1-3
php5-mod-xml - 5.3.1-3
ppp - 2.4.4-11
ppp-mod-pppoe - 2.4.4-11
qos-gargoyle - 1.3.7-1
radvd - 1.6-1
samba3 - 3.0.24-7
screen - 4.0.3-2
sha1sum - 1.3.7-1
swconfig - 6
tc - 2.6.29-1-2
uci - 12012009.5-2
udevtrigger - 106-1
vsftpd - 2.3.2-1cj
webmon-gargoyle - 1.3.7-1
wireless-tools - 29-4
wpad-mini - 20100705-1
zlib - 1.2.3-5
Edytowany przez vorkosigan dnia 09-11-2010 20:24
|