ip route 0.0.0.0/0 ppp0 255
Command "0.0.0.0/0" is unknown, try "ip route help"QUAGGA + 2 провайдера.
ip route add default dev ppp0 metric 255результат
default dev ppp0 scope link metric 255 причём сразу.. ничего не роняется, просто этот маршрут становится единственным..
как сделать. чтоб выдавалось 2 маршрута по умолчанию с разной стоимостью?
Вам нужно не в ядро добавлять маршрут, а в quagga.
По аналогии с этим
!
router ospf
redistribute connected
network 192.168.8.0/24 area 0.0.0.8
network 192.168.250.20/30 area 0.0.0.0
area 0.0.0.8 range 192.168.8.0/24
!
ip route 212.12.18.35/32 ppp0
ip route 212.12.18.135/32 ppp0
ip route 0.0.0.0/0 ppp0 255
!
В общем заработало... только с метриками пришлось поиграться..
Пока сам не уверен что всё ок.. но всем спасибо в любом случае.
Работает... только какое-то странное чувство :)
Работает... только какое-то странное чувство
Ну покажите таблицу маршрутизации из системы и из quagga, чтобы увидеть что все в порядке.
Метрика метрикой.
Проверьте данные параметры
ip ospf hello-interval 2
ip ospf dead-interval 6
ip ospf retransmit-interval 3И почитайте про них.
Да всё ок. Уже везде поменял, и проверил.
Проверьте данные параметры
ip ospf hello-interval 2
ip ospf dead-interval 6
ip ospf retransmit-interval 3
имхо - не обязательный пункт
И почитайте про них.
Естественно читал
Большое спасибо за помощь.
Ещё раз здравствуйте. Теперь такой вот вопрос.
В двух точках появился второй провайдер, между ними поднимаю туннель, пинги проходят. А вот ospf никак работать не хочет.
iptables в accept всё.
Первый Quagga.conf
!
hostname trgw-router
password zebra
enable password zebra
log syslog
!
service advanced-vty
!
interface eth0
ipv6 nd suppress-ra
!
interface eth1
ipv6 nd suppress-ra
!
interface eth2
ipv6 nd suppress-ra
!
interface eth3
ip ospf cost 110
ipv6 nd suppress-ra
!
interface gre0
ipv6 nd suppress-ra
!
interface lo
!
interface t8n4
description vpn makarenko
bandwidth 1000
ip ospf cost 110
ip ospf dead-interval 30
ipv6 nd suppress-ra
!
interface t253n1
bandwidth 1000
ip ospf cost 110
ipv6 nd suppress-ra
!
router-id 192.168.3.0
!
router ospf
auto-cost reference-bandwidth 1000
redistribute connected metric 10
redistribute static
passive-interface eth0
passive-interface eth1
network 192.168.3.0/24 area 0.0.0.3
network 192.168.250.100/30 area 0.0.0.0
network 192.168.250.180/30 area 0.0.0.0
area 0.0.0.3 range 192.168.3.0/24
neighbor 192.168.253.0
neighbor 192.168.8.0
! distribute-list 1 out connected
!
ip route 0.0.0.0/0 eth2 110
ip route 0.0.0.0/0 eth3 210
ip route 87.244.7.0/24 87.244.7.153
ip route 109.195.176.0/23 eth2
!
access-list 1 permit 192.168.3.0 0.0.0.255
access-list 1 permit 192.168.8.0 0.0.0.255
access-list 1 permit 192.168.250.180 0.0.0.3
!
ip forwarding
!
line vty
!
ну и следующий
!
hostname router-tmgw
password zebra
enable password zebra
log file /var/log/quagga/quagga.log
!
interface eth0
ipv6 nd suppress-ra
!
interface eth1
ipv6 nd suppress-ra
!
interface eth2
ipv6 nd suppress-ra
!
interface eth3
ipv6 nd suppress-ra
!
interface eth4
ipv6 nd suppress-ra
!
interface gre0
ipv6 nd suppress-ra
!
interface lo
!
interface ppp0
ipv6 nd suppress-ra
!
interface t3n4
ip ospf cost 110
!
interface t253n2
ip ospf cost 1100
!
router-id 192.168.8.0
!
router ospf
redistribute connected
redistribute static
network 192.168.8.0/24 area 0.0.0.8
network 192.168.250.20/30 area 0.0.0.0
network 192.168.250.180/30 area 0.0.0.0
area 0.0.0.8 range 192.168.8.0/24
neighbor 192.168.253.0
neighbor 192.168.3.0
!
ip route 0.0.0.0/0 eth3 110
ip route 109.195.176.0/23 eth3
ip route 212.12.18.35/32 ppp0
ip route 212.12.18.135/32 ppp0
ip route 0.0.0.0/0 ppp0 210
!
access-list 1 permit 192.168.8.0 0.0.0.255
access-list 1 permit 192.168.3.0 0.0.0.255
access-list 1 permit 192.168.250.180 0.0.0.3
!
ip forwarding
!
line vty
!
tcpdump -i t8n4 ip[9] == 89
cpdump: listening on t8n4, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes
12:34:03.884275 IP (tos 0xc0, ttl 1, id 27007, offset 0, flags [none], proto OSPF (89), length 64)
192.168.250.182 > ospf-all.mcast.net: OSPFv2, Hello, length 44
Router-ID 192.168.3.0, Backbone Area, Authentication Type: none (0)
Options [External]
Hello Timer 10s, Dead Timer 30s, Mask 0.0.0.0, Priority 1
12:34:13.884528 IP (tos 0xc0, ttl 1, id 27009, offset 0, flags [none], proto OSPF (89), length 64)
192.168.250.182 > ospf-all.mcast.net: OSPFv2, Hello, length 44
Router-ID 192.168.3.0, Backbone Area, Authentication Type: none (0)
Options [External]
Hello Timer 10s, Dead Timer 30s, Mask 0.0.0.0, Priority 1
12:34:23.884798 IP (tos 0xc0, ttl 1, id 27011, offset 0, flags [none], proto OSPF (89), length 64)
192.168.250.182 > ospf-all.mcast.net: OSPFv2, Hello, length 44
Router-ID 192.168.3.0, Backbone Area, Authentication Type: none (0)
Options [External]
Hello Timer 10s, Dead Timer 30s, Mask 0.0.0.0, Priority 1
12:34:33.884989 IP (tos 0xc0, ttl 1, id 27014, offset 0, flags [none], proto OSPF (89), length 64)
192.168.250.182 > ospf-all.mcast.net: OSPFv2, Hello, length 44
Router-ID 192.168.3.0, Backbone Area, Authentication Type: none (0)
Options [External]
Hello Timer 10s, Dead Timer 30s, Mask 0.0.0.0, Priority 1
12:34:43.885281 IP (tos 0xc0, ttl 1, id 27016, offset 0, flags [none], proto OSPF (89), length 64)
192.168.250.182 > ospf-all.mcast.net: OSPFv2, Hello, length 44
Router-ID 192.168.3.0, Backbone Area, Authentication Type: none (0)
Options [External]
только собственные исходящие
А вот с другой стороны
tcpdump: listening on t3n4, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes
08:34:42.493041 IP (tos 0xc0, ttl 1, id 27054, offset 0, flags [none], proto OSPF (89), length 64)
192.168.250.182 > ospf-all.mcast.net: OSPFv2, Hello, length 44
Router-ID 192.168.3.0, Backbone Area, Authentication Type: none (0)
Options [External]
Hello Timer 10s, Dead Timer 30s, Mask 0.0.0.0, Priority 1
08:34:47.903611 IP (tos 0xc0, ttl 1, id 12955, offset 0, flags [none], proto OSPF (89), length 64)
192.168.250.181 > ospf-all.mcast.net: OSPFv2, Hello, length 44
Router-ID 192.168.8.0, Backbone Area, Authentication Type: none (0)
Options [External]
Hello Timer 10s, Dead Timer 40s, Mask 0.0.0.0, Priority 1
08:34:52.492771 IP (tos 0xc0, ttl 1, id 27056, offset 0, flags [none], proto OSPF (89), length 64)
192.168.250.182 > ospf-all.mcast.net: OSPFv2, Hello, length 44
Router-ID 192.168.3.0, Backbone Area, Authentication Type: none (0)
Options [External]
Hello Timer 10s, Dead Timer 30s, Mask 0.0.0.0, Priority 1
08:34:57.903816 IP (tos 0xc0, ttl 1, id 12959, offset 0, flags [none], proto OSPF (89), length 64)
192.168.250.181 > ospf-all.mcast.net: OSPFv2, Hello, length 44
Router-ID 192.168.8.0, Backbone Area, Authentication Type: none (0)
Options [External]
Hello Timer 10s, Dead Timer 40s, Mask 0.0.0.0, Priority 1
Здесь как видите и туда, и сюда.. весь мозг сломал. Может кто подсказать?
Суть в том, что
interface t253n2
ip ospf cost 1100
очень медленное подключение, но это прямой туннель к центральному маршрутизатору , но на нём нового прова нет (топология типа звезды, хотя не совсем, но будем считать что звезда)
и я хотел завернуть трафик через одну из точек (так реально быстрее стало бы), но не выходит
08:34:42.493041 IP (tos 0xc0, ttl 1, id 27054, offset 0, flags [none], proto OSPF (89), length 64)
192.168.250.182 > ospf-all.mcast.net: OSPFv2, Hello, length 44
Router-ID 192.168.3.0, Backbone Area, Authentication Type: none (0)
Options [External]
Hello Timer 10s, Dead Timer 30s, Mask 0.0.0.0, Priority 1
08:34:57.903816 IP (tos 0xc0, ttl 1, id 12959, offset 0, flags [none], proto OSPF (89), length 64)
192.168.250.181 > ospf-all.mcast.net: OSPFv2, Hello, length 44
Router-ID 192.168.8.0, Backbone Area, Authentication Type: none (0)
Options [External]
Hello Timer 10s, Dead Timer 40s, Mask 0.0.0.0, Priority 1
У вас Dead Timer разный. Это так и задумано?
Также не показали ifconfig и поэтому не понятно одинаковые ли размеры MTU на интерфейсах. Если нет в конфигурации интерфейсов необходимо использовать опцию ip ospf mtu-ignore.
MTU одинаковый.
У вас Dead Timer разный.
Вообще не выставлял.. выставлю.
ifconfig позже, сейчас в одной из точек электричества нет ))