Sample IPv6 Quagga config

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

ThuanNguyen.Net

Xem thêm:   Chuẩn nén video H.265/HEVC

Facebook Comments