i am having some trouble with configuring OpenWRT (10.03.1-rc6) with IPv6 conectivity. I have set up the router to use IPv6, radvd, DHCP6 Client for dynamic prefix and DHCP6 Server in hopes it will work better (tried also without the server just radvd). My Windows 7 x64 machine gets the global IPv6 address fine, but the IPv6 default gateway and DNS remain emply (gateway has a local-link address). When i try to ping ipv6.google.com i get request time out. However if i ping my Global IPv6 br-lan address which works fine and then ping ipv6.google.com then everithing works fine, for a short while (arround a minute or so) and than its back to request time out.
Also i get a dynamic /64 prefix from ISP via DHCP6 and radvd only configures IPv6 Global addresses on one machine in my lan out of 3, all running Windows 7.
These are my config files:
network
config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'
config 'interface' 'lan'
option 'ifname' 'eth0'
option 'type' 'bridge'
option 'proto' 'static'
option 'ipaddr' '192.168.1.1'
option 'netmask' '255.255.255.0'
config 'interface' 'wan'
option 'ifname' 'eth1'
option 'proto' 'pppoe'
option 'username' 'asdasd'
option 'password' 'password'
option 'ipv6' '1'
option 'service' 'ipv6test'
option 'mtu' '1452'
config 'switch'
option 'name' 'eth0'
option 'reset' '1'
option 'enable_vlan' '1'
config 'switch_vlan'
option 'device' 'eth0'
option 'vlan' '1'
option 'ports' '0 1 2 3 4 5'
dhcp6c
config 'dhcp6c' 'basic'
option 'enabled' '1' # 1 = enabled; 0 = disabled
option 'interface' 'wan' # This is the interface the DHCPv6 client will run on
option 'dns' 'dnsmasq' # Which DNS server you run (only dnsmasq currently supported)
option 'debug' '0' # 1 = enable debugging; 0 = disable debugging
# Send options (1 = send; 0 = do not send)
option 'pd' '1' # Prefix Delegation
option 'na' '0' # Non-Temporary Address
option 'rapid_commit' '1' # Rapid Commit
# Request options (1 = request; 0 = do not request)
option 'domain_name_servers' '1'
option 'domain_name' '0'
option 'ntp_servers' '0'
option 'sip_server_address' '0'
option 'sip_server_domain_name' '0'
option 'nis_server_address' '0'
option 'nis_domain_name' '0'
option 'nisp_server_address' '0'
option 'nisp_domain_name' '0'
option 'bcmcs_server_address' '0'
option 'bcmcs_server_domain_name' '0'
# Override the used DUID, by default it is derived from the interface MAC
# The given value must be uppercase and globally unique!
#option 'duid' '00:03:00:06:D8:5D:4C:A5:03:F2'
# Script to run when a reply is received
option 'script' '/usr/bin/dhcp6c-state'
# Define one or more interfaces on which prefixes should be assigned
config 'interface' 'loopback'
option 'enabled' '1' # 1 = enabled; 0 = disabled
option 'sla_id' '0' # Site level aggregator identifier specified in decimal (subnet)
option 'sla_len' '0' # Site level aggregator length (64 - size of prefix being delegated)
# e.g. /60 from ISP -> 64 - 60 = 4
config 'interface' 'lan'
option 'enabled' '1'
option 'sla_id' '1'
option 'sla_len' '0'
radvd
config 'interface'
option 'interface' 'lan'
option 'AdvSendAdvert' '1'
option 'AdvLinkMTU' '1452'
option 'ignore' '0'
option 'IgnoreIfMissing' '1'
option 'AdvSourceLLAddress' '1'
option 'AdvDefaultPreference' 'high'
option 'AdvManagedFlag' '1'
option 'AdvOtherConfigFlag' '1'
config 'prefix'
option 'interface' 'lan'
option 'AdvOnLink' '1'
option 'AdvAutonomous' '1'
option 'ignore' '0'
config 'route'
option 'interface' 'lan'
list 'prefix' ''
option 'ignore' '0'
config 'rdnss'
option 'interface' 'lan'
option 'ignore' '0'
config 'dnssl'
option 'interface' 'lan'
list 'suffix' ''
option 'ignore' '1'
dhcp6s
config 'dhcp6s' 'basic'
option 'enabled' '1' # 1 = enabled; 0 = disabled
option 'interface' 'lan' # This is the interface the DHCPv6 server will run on
option 'config_file' '/etc/dhcp6s.conf' # Config file (as this UCI config doesn't fully support all options)
dhcp6s.conf
interface br-lan {
address-pool pool1 86400;
};
pool pool1 {
range 2001:xxxx:yyyy:zzzz::1000 to 2001:xxxx:yyyy:zzzz:2000 ;
};
sysctl.conf
kernel.panic=3
net.ipv4.conf.default.arp_ignore=1
net.ipv4.conf.all.arp_ignore=1
net.ipv4.ip_forward=1
net.ipv4.icmp_echo_ignore_broadcasts=1
net.ipv4.icmp_ignore_bogus_error_responses=1
net.ipv4.tcp_ecn=0
net.ipv4.tcp_fin_timeout=30
net.ipv4.tcp_keepalive_time=120
net.ipv4.tcp_syncookies=1
net.ipv4.tcp_timestamps=0
net.netfilter.nf_conntrack_checksum=0
net.ipv4.netfilter.ip_conntrack_checksum=0
net.ipv4.netfilter.ip_conntrack_max=16384
net.ipv4.netfilter.ip_conntrack_tcp_timeout_established=3600
net.ipv4.netfilter.ip_conntrack_udp_timeout=60
net.ipv4.netfilter.ip_conntrack_udp_timeout_stream=180
net.ipv6.conf.all.forwarding=1
# disable bridge firewalling by default
net.bridge.bridge-nf-call-arptables=0
net.bridge.bridge-nf-call-ip6tables=0
net.bridge.bridge-nf-call-iptables=0
Network Config Windows7
Connection-specific DNS Suffix: lan
Description: Intel(R) WiFi Link 5300 AGN
Physical Address: ?00-21-6A-84-28-4A
DHCP Enabled: Yes
IPv4 Address: 192.168.1.100
IPv4 Subnet Mask: 255.255.255.0
Lease Obtained: 23 November 2011 09:24:20
Lease Expires: 23 November 2011 10:54:53
IPv4 Default Gateway: 192.168.1.1
IPv4 DHCP Server: 192.168.1.1
IPv4 DNS Server: 192.168.1.1
IPv4 WINS Server:
NetBIOS over Tcpip Enabled: Yes
IPv6 Address: 2a02:2f02:8028:7001:221:6aff:fe84:284a
Temporary IPv6 Address: 2a02:2f02:8028:7001:d5d7:d522:9de0:c363
Link-local IPv6 Address: fe80::221:6aff:fe84:284a%12
IPv6 Default Gateway: fe80::6a7f:74ff:fe0a:c60a%12
IPv6 DNS Server:
(Last edited by sscoop on 23 Nov 2011, 12:45)