Hello to everyone,
yestarday I was at my friends house to fix his WAN connection. His router is running on the 7.4.1 version.
The original commands used to configure the WAN IP address and static route were like this:
/ip address add address=192.168.88.48/32 interface=ether1 network=192.168.88.0
/ip route add distance=1 gateway=192.168.88.1
Notice the wrong netmask!
I am trying to recall what I saw yesterday, but the otput of the configuration must have looked like this:
Flags: D - DYNAMIC; A - ACTIVE; c, s, y - COPY
Columns: DST-ADDRESS, GATEWAY, DISTANCE
# DST-ADDRESS GATEWAY DISTANCE
0 IUHs 0.0.0.0/0 192.168.88.1 1
DAc 192.168.22.0/24 bridge_intranet 0
DAc 192.168.88.0/32 ether1 0
I have immediately noticed the dynamic route with the 0 IP address and /32 netmask, which didn’t look right to me.
I was able to fix it by changing the Network IP to .1
/ip address add address=192.168.88.48/32 interface=ether1 network=192.168.88.1
The configuration now looks like this and everything seems to work flawlesly:
Flags: D - DYNAMIC; A - ACTIVE; c, s, y - COPY
Columns: DST-ADDRESS, GATEWAY, DISTANCE
# DST-ADDRESS GATEWAY DISTANCE
0 As 0.0.0.0/0 192.168.88.1 1
DAc 172.22.0.0/24 ovpn-client 0
DAc 192.168.22.0/24 bridge_intranet 0
DAc 192.168.88.1/32 ether1 0
Originally I wanted to ask if there was some change in v7 routing configuration, but then I have compared it with my config and found out, that the proper solution would have been to change the Netmask of the WAN IP address to /24.
/ip address add address=192.168.88.48/24 interface=ether1 network=192.168.88.0
So my questions now are:
How come that everything is working?
Will it survive a reboot? I forgot to test it yesterday ![]()
thanks for any comments ![]()
PiGeon
PS: my intention is to set the proper IP addres netmask and network IP next time I come by physically. I am afraid to touch it via remote connection.