Community discussions

MikroTik App
 
shawnrussell
just joined
Topic Author
Posts: 8
Joined: Thu May 19, 2016 4:05 am
Location: Edmotnon
Contact:

Wrong Subnet being set

Tue Sep 04, 2018 1:34 am

ok here is my issue..

I have a static IP
XXX.XXX.245.134
and a gateway of
XXX.XXX.245.133

now my subnet is supposed to be
255.255.255.252 /30

the issue is that the router keeps defaulting to a wrong subnet if I manually force it the correct gateway of
255.0.0.0 /8

If I leave the gateway alone and force the subnet to the correct # it reprograms my gateway to
XXX.XXX.245.132

this of course breaks my internet.. any help would be great.
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: Wrong Subnet being set

Tue Sep 04, 2018 3:01 am

So what exactly are you entering into RouterOS? It should be:
/ip address
add address=xxx.xxx.245.134/30 interface=<WAN>
/ip route
add dst-address=0.0.0.0/0 gateway=xxx.xxx.245.133
 
shawnrussell
just joined
Topic Author
Posts: 8
Joined: Thu May 19, 2016 4:05 am
Location: Edmotnon
Contact:

Re: Wrong Subnet being set

Tue Sep 04, 2018 3:10 am

I was using quickset in winbox to set the static ip
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11438
Joined: Thu Mar 03, 2016 10:23 pm

Re: Wrong Subnet being set

Tue Sep 04, 2018 12:06 pm

Quickset has plenty of limitations built-in ... so that it sanitizes most of errors inexperienced users might do. Your case is non-trivial and you should use "regular" winbox section to configure things. And don't use quickset on said router ever again.
 
shawnrussell
just joined
Topic Author
Posts: 8
Joined: Thu May 19, 2016 4:05 am
Location: Edmotnon
Contact:

Re: Wrong Subnet being set

Tue Sep 04, 2018 5:14 pm

ok so that being said what is the command list (string?) to program the IP / subnet / and gateway I need?

IP: XXX.XXX.245.134
SubNET: 255.255.255.252 /30
Gateway: XXX.XXX.245.133
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11438
Joined: Thu Mar 03, 2016 10:23 pm

Re: Wrong Subnet being set

Tue Sep 04, 2018 7:57 pm

See post by @Sob above.
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: Wrong Subnet being set

Tue Sep 04, 2018 8:44 pm

Or if you'd enter it using WinBox/WebFig, it would be xxx.xxx.245.134/30 for Address (that's all, you don't put anything in Network) and xxx.xxx.245.133 as gateway.

Who is online

Users browsing this forum: fibracapi, FurfangosFrigyes, hendry, Michiganbroadband, pajapatak, raiod and 69 guests