# Mikrotik router configuration to assign a public IP from VPS service in case of fiber connection interruption

**URL:** <https://forum.mikrotik.com/t/mikrotik-router-configuration-to-assign-a-public-ip-from-vps-service-in-case-of-fiber-connection-interruption/174742>\
**Category:** General\
**Created:** [March 26, 2024, 1:57pm UTC](https://forum.mikrotik.com/t/mikrotik-router-configuration-to-assign-a-public-ip-from-vps-service-in-case-of-fiber-connection-interruption/174742 "2024-03-26T13:57:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Borborygmus](https://forum.mikrotik.com/letter_avatar/borborygmus/32/6_449c533f586939b6e5f246632a46421f.png) [@Borborygmus](https://forum.mikrotik.com/u/Borborygmus)\
**Post date:** [March 26, 2024, 1:57pm UTC](https://forum.mikrotik.com/t/mikrotik-router-configuration-to-assign-a-public-ip-from-vps-service-in-case-of-fiber-connection-interruption/174742/1 "2024-03-26T13:57:34Z")

</div>

I use a VPS service that, along with the virtual machine, also provides me with a series (not contiguous) of static public IP addresses that I can associate with the interfaces of the virtual server. I also have a Mikrotik router (router A) connected to both optic fiber and another 4G Mikrotik router (router B) with a SIM card that I use as a backup in case the fiber connection is interrupted.  
I would like to configure “router B” to provide a chosen public IP address from those provided by my VPS service to the WAN interface of my “router A,” so that I can always have a public IP directly on router A even when the fiber connection is interrupted.  
I would like the connection to not simply be a NAT via a VPN connection to the VPS, but something that may make use of PPPoE or similar protocols to assign the public IP directly to the WAN of my router.  
Is there a way to achieve this? What technologies and protocols should I use?

---

<div class="post-metadata">

**Author:** ![TheCat12](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/thecat12/32/2912_2.png) [@TheCat12](https://forum.mikrotik.com/u/TheCat12)\
**Post date:** [March 26, 2024, 7:35pm UTC](https://forum.mikrotik.com/t/mikrotik-router-configuration-to-assign-a-public-ip-from-vps-service-in-case-of-fiber-connection-interruption/174742/2 "2024-03-26T19:35:28Z")

</div>

Maybe the simplest method would be to directly assign a /32 address of your choosing from the public ones to the Router A facing interface with Proxy ARP
