Guys, can you please give me hint what I'm doing wrong ?
My modem IP 192.168.2.1 and is Router 192.168.1.1
This is the script I use and it works great:
ip addr add 192.168.2.0/24 dev vlan2 brd +
iptables -I POSTROUTING -t nat -o vlan2 -d 192.168.2.0/24 -j MASQUERADE
However it causes problem that my SPA2102 Voip adapter 192.168.1.236 that is behind the Asus router
will no longer register with my Voip provider. If I remove those modem scripts it works again fine.
Any help would be appreciated.