(OK) Sample IPv6 Quagga config


http://www.thuannguyen.net/sample-ipv6-quagga-config.html


July 12, 2016


The following config is derived from a working config on a OpenWRT Linux router. The original setup has two separate networks: one with a public IPv6 range; the other network based on a unique local address. The VPN network is subnet 0, the public network 1, and the private network 2. For OSPF to work correctly, protocol 89 must be accessible (usually is).

ospf6d.conf

password whatever
!
!adapter setup
!
interface br0
ipv6 ospf6 cost 1
ipv6 ospf6 hello-interval 10
ipv6 ospf6 dead-interval 40
ipv6 ospf6 retransmit-interval 5
ipv6 ospf6 priority 1
ipv6 ospf6 transmit-delay 1
ipv6 ospf6 instance-id 1
!
interface vpn0
ipv6 ospf6 cost 1
ipv6 ospf6 hello-interval 10
ipv6 ospf6 dead-interval 40
ipv6 ospf6 retransmit-interval 5
ipv6 ospf6 priority 2
ipv6 ospf6 transmit-delay 
ipv6 ospf6 instance-id 2
!
!router setup
!
router ospf6
router-id 0.0.0.1
redistribute static
redistribute connected
area 0.0.0.1 range 2001:db8:beef:1::/64
area 0.0.0.1 range 2001:db8:beef:2::/64
interface br0 area 0.0.0.1
interface vpn0 area 0.0.0.0

zebra.conf

hostname www.thuannguyen.net
password whatever
!
interface br0
 link-detect
 no ipv6 nd suppress-ra
 ipv6 nd ra-interval 10
 ipv6 address 2001:db8:beef:1::ffff/64
 ipv6 address 2001:db8:beef:2::ffff/64
 ipv6 nd prefix 2001:db8:beef:1::/64
 ipv6 nd prefix 2001:db8:beef:2::/64
!
interface vpn0
 link-detect
 ipv6 address 2001:db8:beef:0::1/64
 ipv6 address 2001:db8:beef:0::2/64
!
interface lo
 link-detect
!
ipv6 forwarding
 ipv6 route 2001:db8:beef:1::/64 br0
 ipv6 route 2001:db8:beef:2::/64 br0



posted @   张同光  阅读(225)  评论(0编辑  收藏  举报
编辑推荐:
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
点击右上角即可分享
微信分享提示