Привет всем, столкнулся с такой проблемой. Есть два офиса: офис1 (192.168.1.0/24), офиc2 (192.168.2.0/24). Cвязанных между собой оптикой. У каждого из офисов есть свой выход в инет. Задача, сделать так, чтобы при падении канала между офисами, роутинг для подсетей 1.0/24 и 2.0/24 перекидывался на vpn тунель поднятый через внешние каналы каждого из офисов.
Поверх транспорта поднят openvpn тунель (tun0): 10.1.1.1 P-t-P:10.1.1.2
Поднял quagga, настроил ospf.
# show version
Quagga 0.98.6 (router1.office1.com).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
# cat zebra.conf
!
hostname router1.office1.com
password zebra
log file /var/log/quagga/quagga.log
!
interface eth0
!
interface eth1
!
interface eth2
!
interface lo
!
interface sit0
!
interface tun0
no shutdown
description OSPF primary chanel
!
interface tun1
no shutdown
description OSPF backup chanel
!
ip forwarding
!
line vty
!
eth0 - 192.168.1.1, смотрит в локалку 192.168.1.0/24
eth1 - 172.16.1.1, оптика, транспорт между офисами.
eth2 - xxx.xxx.xxx.xxx - смотрит в мир.
Настраиваю ospf
# cat ospfd.conf
hostname router1.office1.com
password zebra
log file /var/log/quagga/ospfd.log
!
interface tun0
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 ********
ip ospf hello-interval 3
ip ospf dead-interval 10
ip ospf cost 10
!
interface tun1
!
router ospf
ospf router-id 192.168.1.1
redistribute kernel
redistribute connected
redistribute static
network 192.168.1.0/24 area 0.0.0.0
area 0.0.0.0 authentication message-digest
!
line vty
!
Запускаю оба демона, теперь смотрю настройки ospf
# show ip ospf interface
eth0 is up
Internet Address 192.168.1.1/24, Broadcast 192.168.1.255, Area 0.0.0.0
Router ID 192.168.1.1, Network Type BROADCAST, Cost: 10
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 192.168.1.1, Interface Address 192.168.4.1
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:10
Neighbor Count is 0, Adjacent neighbor count is 0
eth1 is up
OSPF not enabled on this interface
eth2 is up
OSPF not enabled on this interface
lo is up
OSPF not enabled on this interface
sit0 is down
OSPF not enabled on this interface
tun0 is up
OSPF not enabled on this interface
tun1 is up
OSPF not enabled on this interface
Почему он выдает на интерфейсе tun0 - "OSPF not enabled on this interface"? Как включить ospf для интерфейса tun0?