Been hitting my head on this one, and I can't see it. Have many devices setup the same way, and ROS v6.x works fine. Upgrade to ROS v7, and hardware interfaces work okay, but I am unable to get OSPF to establish over L2TP.
So going with the "simplest" working config from 6.49 automatic conversion to 7.4.1, L2TP comes up, but OSPF only comes up on LAN interfaces, and not on the L2TP.
I've attempted to create an interface-template with basic details, and while this generates an OSPF interface for the L2TP interface, I can't get the state to go beyond ExStart.
Config under 7.4.1 looks like this:-
Code: Select all
# aug/14/2022 22:27:39 by RouterOS 7.4.1
/interface bridge
add name=br.lan57 protocol-mode=none
/interface l2tp-client
add comment="WAN via L2TP" connect-to=11x.yyy.zz.nn \
disabled=no mrru=1500 name=l2tp-wan01 password=PASSWORDHERE user=\
USERNAMEHERE
/routing ospf instance
add disabled=no name=default-v2 router-id=172.31.57.66
/routing ospf area
add disabled=no instance=default-v2 name=backbone-v2
/ip address
add address=172.16.57.1/24 interface=br.lan57 network=172.16.57.0
/ip dhcp-client
add interface=ether1
/routing ospf interface-template
add area=backbone-v2 disabled=no interfaces=br.lan57 networks=\
172.16.57.0/24 priority=1
add area=backbone-v2 disabled=no interfaces=l2tp-wan01 networks=172.19.8.0/24 \
priority=1 type=ptp
Results from running look like this:-
Code: Select all
[admin@dev-ospf-741] > /routing/ospf/instance/print detail
Flags: X - disabled, I - inactive
0 name="default-v2" version=2 vrf=main router-id=172.31.57.66
[admin@dev-ospf-741] > /routing/ospf/interface-template/print detail
Flags: X - disabled, I - inactive
0 area=backbone-v2 interfaces=br.lan57 instance-id=0 networks=172.16.57.0/24
type=broadcast retransmit-interval=5s transmit-delay=1s hello-interval=10s
dead-interval=40s priority=1 cost=1
1 area=backbone-v2 interfaces=l2tp-wan01 instance-id=0 networks=172.19.8.0/24
type=ptmp-broadcast retransmit-interval=5s transmit-delay=1s
hello-interval=10s dead-interval=40s priority=1 cost=1
[admin@dev-ospf-741] > /routing/ospf/interface/print detail
Flags: D - dynamic
0 D address=172.19.8.152%l2tp-wan01 area=backbone-v2 state=ptp
network-type=broadcast cost=1 retransmit-interval=5s transmit-delay=1s
hello-interval=10s dead-interval=40s
1 D address=172.16.57.1%br.lan57 area=backbone-v2 state=dr
network-type=broadcast cost=1 priority=1 retransmit-interval=5s
transmit-delay=1s hello-interval=10s dead-interval=40s
[admin@dev-ospf-741] > /routing/ospf/neighbor/print detail
Flags: V - virtual; D - dynamic
0 D instance=default-v2 area=backbone-v2 address=172.19.8.1
router-id=172.31.8.1 state="ExStart" state-changes=3 timeout=33s
Code: Select all
[admin@dev-ospf-741] > /interface/print detail where running
Flags: D - dynamic; X - disabled, R - running; S - slave; P - passthrough
0 R name="ether1" default-name="ether1" type="ether" mtu=1500 actual-mtu=1500
l2mtu=1592 max-l2mtu=9578 mac-address=08:55:31:62:68:10 ifname="eth0"
ifindex=11 id=1 last-link-up-time=aug/14/2022 22:21:24 link-downs=0
11 R name="br.lan57" type="bridge" mtu=auto actual-mtu=1500 l2mtu=65535
mac-address=96:C4:E6:06:B2:D7 ifname="br0" ifindex=4 id=13
last-link-up-time=aug/14/2022 22:21:15 link-downs=0
12 R ;;; WAN via L2TP
name="l2tp-wan01" type="l2tp-out" mtu=1496 actual-mtu=1496
ifname="ppp11" ifindex=31 id=12
last-link-down-time=aug/14/2022 23:07:07
last-link-up-time=aug/14/2022 23:07:08 link-downs=2
[admin@dev-ospf-741] > /interface/l2tp-client/print detail
Flags: X - disabled; R - running
0 R ;;; WAN via L2TP
name="l2tp-wan01" max-mtu=1450 max-mru=1450 mrru=1500
connect-to=11x.yyy.zz.nn user="USERNAMEHERE" password="PASSWORDHERE"
profile=default-encryption keepalive-timeout=60 use-peer-dns=no
use-ipsec=no ipsec-secret="" allow-fast-path=no add-default-route=no
dial-on-demand=no allow=pap,chap,mschap1,mschap2
l2tp-proto-version=l2tpv2 l2tpv3-digest-hash=md5 vrf=main
[admin@dev-ospf-741] > /ip/address/print detail
Flags: X - disabled, I - invalid, D - dynamic
0 address=172.16.57.1/24 network=172.16.57.0 interface=br.lan57
actual-interface=br.lan57
1 D address=10.204.98.192/24 network=10.204.98.0 interface=ether1
actual-interface=ether1
2 D address=172.19.8.152/32 network=172.19.8.1 interface=l2tp-wan01
actual-interface=l2tp-wan01
I'm sure I'm missing something, and it "should" be simple, but I can't see it.
Oh, the peer end is another Tik, running 6.49.6, with dozens of L2TP tunnels and OSPF running over them, and I wouldn't be able to even think about touching that till I could get the client devices working...
Any help, gratefully appreciated.
Thanks,
Waz.