Впервые делаю связку OSPF между микротом и debian’ом и не совсем получается.
Дано:
Внешние IP:
Микрот - 1.1.1.1
Debian - 2.2.2.2
Туннель:
Микрот - 10.0.0.1/30
Debian - 10.0.0.2/30
Что было сделано: На микроте:
/interface ipip add !keepalive remote-address=2.2.2.2 local-address=1.1.1.1
/ip address add address=10.0.0.1/30 interface=ipip-tunnel1
На Debian:
cat /etc/systemd/network/ipip-home.netdev
[NetDev]
Name=ipip-home
Kind=ipip
[Tunnel]
Remote=1.1.1.1
Local=2.2.2.2
cat /etc/systemd/network/ipip-home.network
[Match]
Name=ipip-home
[Network]
Address=10.0.0.1/30
cat /etc/systemd/network/isp.network
[Match]
Name=enp10s0
[Network]
Description=RosTelekom network
Address=Внешний
Gateway=Шлюз
DNS=ДНС’ы
LinkLocalAddressing=no
IPv6AcceptRA = no
Tunnel=ipip-home
Смотрим что получилось
На микротике
/interface/ipip/ print
0 R ipip-tunnel1 auto 1480 1.1.1.1 2.2.2.2 inherit
На Debian
ip a
ipip-home@enp10s0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1480 qdisc noqueue state UNKNOWN group default qlen 1000
link/ipip 2.2.2.2 peer 1.1.1.1
inet 10.0.0.1/30 brd 10.0.0.3 scope global ipip-home
valid_lft forever preferred_lft forever
Добавил на микроте OSPF:
/routing ospf instance add name=instance1 router-id=10.0.0.2
/routing ospf area add instance=instance1 name=backbone
/routing ospf interface-template add area=backbone networks=10.0.0.0/30 type=ptp
/routing ospf interface-template add area=backbone networks=172.16.96.0/29 passive
Добавил на Debian OSPF:
vim /etc/frr/daemons
ospfd=yes
Esc + Z + Z
systemctl restart frr
vtysh
confugure terminal
(conf)$ ip forwarding
(conf)$ router ospf
(conf-router)$ network 172.16.3.0/27 area 0
(conf-router)$ network 10.0.0.0/30 area 0
(conf-router)$ neighbor 10.0.0.2
(conf-router)$ exit
(conf)$ interface ipip-home
(conf-if)$ ip ospf network broadcast
(conf-if)$ end
$ wr
$ exit
systemctl restart frr
Хэллоуйки посылает, но почему-то соседства не находит
tcpdump -i ipip-home
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on ipip-home, link-type RAW (Raw IP), snapshot length 262144 bytes
07:11:49.693556 IP 10.0.0.1 > ospf-all.mcast.net: OSPFv2, Hello, length 48
07:11:52.708093 IP T2.primorye.net.ru > ospf-all.mcast.net: OSPFv2, Hello, length 44
07:11:59.694006 IP 10.0.0.1 > ospf-all.mcast.net: OSPFv2, Hello, length 48
07:12:02.704408 IP T2.primorye.net.ru > ospf-all.mcast.net: OSPFv2, Hello, length 44
07:12:09.694024 IP 10.0.0.1 > ospf-all.mcast.net: OSPFv2, Hello, length 48
07:12:10.019988 IP T2.primorye.net.ru.5678 > 255.255.255.255.5678: UDP, length 124
07:12:12.707207 IP T2.primorye.net.ru > ospf-all.mcast.net: OSPFv2, Hello, length 44
07:12:19.694168 IP 10.0.0.1 > ospf-all.mcast.net: OSPFv2, Hello, length 48
07:12:22.704249 IP T2.primorye.net.ru > ospf-all.mcast.net: OSPFv2, Hello, length 44
Может гуру модели OSI подскажут где я что не доглядел…?!?