WAN - IP address and route configuration
Posted: Sun Aug 21, 2022 11:01 am
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:
Notice the wrong netmask!
I am trying to recall what I saw yesterday, but the otput of the configuration must have looked like this:
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
The configuration now looks like this and everything seems to work flawlesly:
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.
So my questions now are:
How come that everything is working?
Will it survive a reboot? I forgot to test it yesterday![Sad :(](./images/smilies/icon_sad.gif)
thanks for any comments![Wink ;)](./images/smilies/icon_wink.gif)
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.
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:
Code: Select all
/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
I am trying to recall what I saw yesterday, but the otput of the configuration must have looked like this:
Code: Select all
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 was able to fix it by changing the Network IP to .1
Code: Select all
/ip address add address=192.168.88.48/32 interface=ether1 network=192.168.88.1
Code: Select all
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.
Code: Select all
/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
![Sad :(](./images/smilies/icon_sad.gif)
thanks for any comments
![Wink ;)](./images/smilies/icon_wink.gif)
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.