PPPoE Static IP fast switch

Sorry for my bad english. I have a radio power supply with which I can use two types of connections. I have a static ip and pppoe connection option. Both connections use different service providers. How can I solve it so that I can quickly switch between the two connections? The pppoe connection would be the primary one, but sometimes the other would be necessary. I don’t want to use both at the same time. I should solve this through a physical port.
mybackup.rsc (4.47 KB)

You may want to remove at least the password from the /interface pppoe-client row in the .rsc file you have posted (remove the file from the post, edit it and attach it again).

You can attach the static IP configuration to ether1 and add a default route via the corresponding gateway with distance=2. This way,

  • if you connect ether1 to the PPPoE ISP, it will log in to the PPPoE account, so the PPPoE client interface will go up and a default route with distance=1 via that interface will be added, so it will shadow the one with distance=2.
  • if you connect ether1 to the direct IP ISP, the PPPoE client interface will not go up, so the system will use the default route with distance=2.

Loosely related, bear in mind that the 10p8c connectors are only designed for some 100 insertion cycles :slight_smile:

Thank you!
But my eth1 and the pppoe connection is same connector.

That’s what I have expected, but I cannot see any static IP configuration linked to ether1 in the .rsc file, nor a DHCP client, so what have I missed?

Other than that, do you have in mind that both uplinks are available on the same cable all the time, and you want to tell the router which one of them to choose?

Yes, two uplinks are continuously available on one cable. I want to choose which one to use at the moment. The static ip uplink is not in the config because I deleted it. The static part of the thing didn’t work when I disabled the pppoe connection. I use a 5GHz antenna to access a network on which both types of connections are available.

If so, you can use the mode switch button to modify the configuration. But not all router models support a mode switch button.

You can use multiple LAN ports and multiple routing tables, so equipment connected to one of the LAN ports will use the direct IP WAN and equipment connected to another LAN port will use the PPPoE WAN.

Or you can ping the router’s LAN address with a packet of a specific size, use mangle rules to add an item to an address list if they see a “proper” ICMP packet, and a scheduled script watch for such items in address lists and treat them as WAN switch commands.

Or you can use a hairpin connector connecting 1,2 to 3,6 on a free Ethernet port as a switch - if inserted, the port goes up in Fast Ethernet mode (but it must not be a member of any bridge!), and a scheduled script may track the state of the port.