BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / embedded-system / #15811同步于 2015/7/18
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Embedded_System机器人发帖

[问题]openwrt加入ipv6后怎么配置能上学校v6资源

shouwang
2015/7/18镜像同步18 回复
rt,感觉这个应该不难,不知道我哪里弄错了,纠结好几天了…… 各位能帮我看一下吗?我现在电脑能正常收到ipv6的地址了,但是电脑ping6不到路由器的wan口…… 我的配置如下: /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 'eth1' option type 'bridge' option proto 'static' option ipaddr '192.168.67.1' option netmask '255.255.255.0' option ip6addr '2001:da8:215:307::1/64' config interface 'wan' option ifname 'eth0' option proto 'dhcp' config switch option name 'eth1' option reset '1' option enable_vlan '1' config switch_vlan option device 'eth1' option vlan '1' option ports '0 1 2 3 4' /etc/config/dhcp config dnsmasq option domainneeded '1' option boguspriv '1' option filterwin2k '0' option localise_queries '1' option rebind_protection '0' option rebind_localhost '1' option local '/lan/' option domain 'lan' option expandhosts '1' option nonegcache '0' option authoritative '1' option readethers '1' option leasefile '/tmp/dhcp.leases' option resolvfile '/tmp/resolv.conf.auto' config dhcp 'lan' option interface 'lan' option start '10' option limit '240' option leasetime '12h' option ra 'hybrid' option dhcpv6 'hybrid' option ndp 'hybrid' option ra_management '1' option force '1' config dhcp 'wan6' option interface 'wan' option dhcpv6 'hybrid' option ra 'hybrid' option nad 'hybrid' option master '1' option ignore '0' /etc/config/dhcp6s config 'dhcp6s' 'basic' option 'enabled' '1' # 1 = enabled; 0 = disabled option 'interface' 'br-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) /etc/config/radvd config interface option interface 'lan' option AdvSendAdvert 1 option AdvManagedFlag 1 option AdvOtherConfigFlag 1 option ignore 0 config prefix option interface 'lan' # If not specified, a non-link-local prefix of the interface is used list prefix '' option AdvOnLink 1 option AdvAutonomous 1 option prefix '2001:da8:215:307::/64' option AdvRouterAddr 0 option ignore 0 config route option interface 'lan' list prefix '' option ignore 1 config rdnss option interface 'lan' # If not specified, the link-local address of the interface is used list addr '' option ignore 1 config dnssl option interface 'lan' list suffix '' option ignore 1 /etc/dhcp6s.conf interface br-lan { address-pool pool1 3600; }; pool pool1 { range 2001:da8:215:307::1000 to 2001:da8:215:307::2000 ; }; /etc/dnsmasq.conf dhcp-range=2001:0db8:215:307::,ra-names enable-ra 主要就动过这几个文件,能找到的方法,我都试了……方法有点杂……估计也有点问题 请大家指教一下…… 十分谢谢。
订阅后,新回复会通过你的通知中心匿名送达。
9 条回复
jh1机器人#1 · 2015/7/18
没有办法 通过『我邮2.0』发布
hu6360567机器人#2 · 2015/7/18
应该使用dhcp6c做ipv6 relay,具体配置忘记了…… 学校的v6地址是stateless autoconfigration,你也不可能配置地址段的,你需要做得就是RA信息的relay
buwjc机器人#3 · 2015/7/18
那怎么找RA的relay? 【 在 hu6360567 的大作中提到: 】 : 应该使用dhcp6c做ipv6 relay,具体配置忘记了…… : 学校的v6地址是stateless autoconfigration,你也不可能配置地址段的,你需要做得就是RA信息的relay
hu6360567机器人#4 · 2015/7/18
http://wiki.openwrt.org/doc/uci/network6 config dhcp wan6 option dhcpv6 relay option ra relay option ndp relay option master 1 config dhcp lan option dhcpv6 relay option ra relay option ndp relay 【 在 buwjc 的大作中提到: 】 : 那怎么找RA的relay? :
shouwang机器人#5 · 2015/7/18
您的意思是只修改一下这个dhcp6c的配置文件?还是有其它的需要改一些相应文件吗? 多谢指教。 【 在 hu6360567 的大作中提到: 】 : 应该使用dhcp6c做ipv6 relay,具体配置忘记了…… : 学校的v6地址是stateless autoconfigration,你也不可能配置地址段的,你需要做得就是RA信息的relay
shouwang机器人#6 · 2015/7/19
您好,我试过你的方法了。但是,电脑上没有分配的ipv6地址,ping不到bt.byr.cn。而且我看了一下那个howto,那个是给12.09以上版本配置的方法,我的openwrt的版本是12.09……请问有没有适合我的openwrt版本的方法呢?官方给的howto我也试过了,也不好用…… 【 在 hu6360567 的大作中提到: 】 : http://wiki.openwrt.org/doc/uci/network6 : config dhcp wan6 : option dhcpv6 relay : ...................
hu6360567机器人#7 · 2015/7/19
版本太老了吧,那时候还在用6script,现在BB都已经正式版本了 【 在 shouwang 的大作中提到: 】 : 您好,我试过你的方法了。但是,电脑上没有分配的ipv6地址,ping不到bt.byr.cn。而且我看了一下那个howto,那个是给12.09以上版本配置的方法,我的openwrt的版本是12.09……请问有没有适合我的openwrt版本的方法呢?官方给的howto我也试过了,也不好用……
shouwang机器人#8 · 2015/7/19
没办法啊……那请问这个版本的怎么办呢?刚接触,都不太懂,搞了好久都没弄出来…… 【 在 hu6360567 的大作中提到: 】 : 版本太老了吧,那时候还在用6script,现在BB都已经正式版本了
hu6360567机器人#9 · 2015/7/19
不知道,我也没用过这么老的版本…… 【 在 shouwang 的大作中提到: 】 : 没办法啊……那请问这个版本的怎么办呢?刚接触,都不太懂,搞了好久都没弄出来……