找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3007|回复: 2

【求助大神】AA+6to4 wifi没有ipv6

[复制链接]
本帖最后由 q623928815 于 2015-5-27 18:19 编辑

大神求助啊~~~~~~
版本 Attitude Adjustment 12.09    6to4+radvd    网络是校园网的6to4
参照  http://blog.sina.com.cn/s/blog_3f2db1dc010173ru.html  配置的
用网线连接可以有ipv6 用wifi连接就没有了


wifi下  IPv6测试后结果
您在公网上的 IPv4 地址是 115.155.111.120
您的互联网服务提供商(ISP)看起来是 ERX-CERNET-BKB China Education and Research Network Center,CN
没有检测到您的 IPv6 地址 [更多信息]
好消息!您当前位置当前电脑上的浏览器,预计将在IPv6启动之后继续正常运行。
当发行人提供IPv4和IPv6,您的浏览器似乎会毫不迟疑地欣然使用IPv4站点。
连接纯IPv6站点超时。纯IPv6网站对您来说都好似down掉了。
您的DNS服务器(通常由您的网络服务商提供)已经可以接入IPv6互联网了。

etc/config/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.1'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'

config interface 'wan'
        option ifname 'eth0.2'
        option proto 'dhcp'

config switch
        option name 'rt305x'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'rt305x'
        option vlan '1'
        option ports '0 1 2 3 5  6t'

config switch_vlan
        option device 'rt305x'
        option vlan '2'
        option ports '4  6t'

config interface 6rd
        option proto    6to4
        option adv_subnet    1 # Selects the advertised /64 prefix, default 1 if not specified
        option adv_interface lan

etc/config/radvd配置
config interface
        option interface        'lan'
        option AdvSendAdvert        1
        option AdvManagedFlag        1
        option AdvOtherConfigFlag 0
        option ignore                0

config prefix
        option interface        'lan'
        # If not specified, a non-link-local prefix of the interface is used
        option AdvOnLink        1
        option AdvAutonomous        1
        option AdvRouterAddr        0
        option ignore                0

etc/config/firewall
config defaults
        option syn_flood        1
        option input                ACCEPT
        option output                ACCEPT
        option forward                REJECT
# Uncomment this line to disable ipv6 rules
#        option disable_ipv6        1

config zone
        option name                lan
        option network                'lan'
        option input                ACCEPT
        option output                ACCEPT
        option forward                REJECT

config zone
        option name                wan
        option network                'wan 6rd'
        option input                REJECT
        option output                ACCEPT
        option forward                REJECT
        option masq                1

config forwarding
        option src                lan
        option dest                wan

# We need to accept udp packets on port 68,
# see https://dev.openwrt.org/ticket/4108
config rule
        option name                Allow-DHCP-Renew
        option src                wan
        option proto                udp
        option dest_port        68
        option target                ACCEPT
        option family                ipv4

# Allow IPv4 ping
config rule
        option name                Allow-Ping
        option src                wan
        option proto                icmp
        option icmp_type        echo-request
        option family                ipv4
        option target                ACCEPT

# Allow DHCPv6 replies
# see https://dev.openwrt.org/ticket/10381
config rule
        option name                Allow-DHCPv6
        option src                wan
        option proto                udp
        option src_ip                fe80::/10
        option src_port                547
        option dest_ip                fe80::/10
        option dest_port        546
        option family                ipv6
        option target                ACCEPT






config 'rule'
        option 'target' 'ACCEPT'
        option 'name' '6to4'
        option 'src' 'wan'
        option 'proto' '41'








# Allow essential incoming IPv6 ICMP traffic
config rule
        option name                Allow-ICMPv6-Input
        option src                wan
        option proto        icmp
        list icmp_type                echo-request
        list icmp_type                echo-reply
        list icmp_type                destination-unreachable
        list icmp_type                packet-too-big
        list icmp_type                time-exceeded
        list icmp_type                bad-header
        list icmp_type                unknown-header-type
        list icmp_type                router-solicitation
        list icmp_type                neighbour-solicitation
        list icmp_type                router-advertisement
        list icmp_type                neighbour-advertisement
        option limit                1000/sec
        option family                ipv6
        option target                ACCEPT

# Allow essential forwarded IPv6 ICMP traffic
config rule
        option name                Allow-ICMPv6-Forward
        option src                wan
        option dest                *
        option proto                icmp
        list icmp_type                echo-request
        list icmp_type                echo-reply
        list icmp_type                destination-unreachable
        list icmp_type                packet-too-big
        list icmp_type                time-exceeded
        list icmp_type                bad-header
        list icmp_type                unknown-header-type
        option limit                1000/sec
        option family                ipv6
        option target                ACCEPT

# include a file with users custom iptables rules
config include
        option path /etc/firewall.user


### EXAMPLE CONFIG SECTIONS
# do not allow a specific ip to access wan
#config rule
#        option src                lan
#        option src_ip        192.168.45.2
#        option dest                wan
#        option proto        tcp
#        option target        REJECT

# block a specific mac on wan
#config rule
#        option dest                wan
#        option src_mac        00:11:22:33:44:66
#        option target        REJECT

# block incoming ICMP traffic on a zone
#config rule
#        option src                lan
#        option proto        ICMP
#        option target        DROP

# port redirect port coming in on wan to lan
#config redirect
#        option src                        wan
#        option src_dport        80
#        option dest                        lan
#        option dest_ip                192.168.16.235
#        option dest_port        80
#        option proto                tcp

# port redirect of remapped ssh port (22001) on wan
#config redirect
#        option src                wan
#        option src_dport        22001
#        option dest                lan
#        option dest_port        22
#        option proto                tcp

# allow IPsec/ESP and ISAKMP passthrough
#config rule
#        option src                wan
#        option dest                lan
#        option protocol                esp
#        option target                ACCEPT

#config rule
#        option src                wan
#        option dest                lan
#        option src_port                500
#        option dest_port        500
#        option proto                udp
#        option target                ACCEPT

### FULL CONFIG SECTIONS
#config rule
#        option src                lan
#        option src_ip        192.168.45.2
#        option src_mac        00:11:22:33:44:55
#        option src_port        80
#        option dest                wan
#        option dest_ip        194.25.2.129
#        option dest_port        120
#        option proto        tcp
#        option target        REJECT

#config redirect
#        option src                lan
#        option src_ip        192.168.45.2
#        option src_mac        00:11:22:33:44:55
#        option src_port                1024
#        option src_dport        80
#        option dest_ip        194.25.2.129
#        option dest_port        120
#        option proto        tcp


etc/config/wireless配置

config wifi-device 'radio0'
        option type 'mac80211'
        option channel '11'
        option macaddr '1c:bd:b9:ad:74:96'
        list ht_capab 'GF'
        list ht_capab 'SHORT-GI-20'
        list ht_capab 'SHORT-GI-40'
        list ht_capab 'TX-STBC'
        list ht_capab 'RX-STBC12'
        option txpower '20'
        option country '00'

config wifi-iface
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'psk2'
        option key 'nidieshi116'

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| | 显示全部楼层
求助啊~~~大神~~~不要沉
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

估计是电脑的无线网卡没有安装IPv6协议 电脑的有线跟无线的协议是单独的

win7位例:右键电脑网络图标——打开网络和共享中心——更改适配器设置——右键”无线网路连接“选择属性——查看是否有IPV6协议
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-29 19:34

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表