Wrong Subnet being set

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.

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

I was using quickset in winbox to set the static ip

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.

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

See post by @Sob above.

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.