I'm currently trying to route a 56k connection, which is connected to a PSTN off a microwave transmitter, through a laptop to some ethernet enabled equipment. Essentially I'm using a laptop as a router utilizing a persistant route until proper routing equipment can be flown in. I can connect, route, perform data transfer between my remote points, and the 33kbs is plenty enough bandwidth for my needs using the following route:
route add -p 192.168.2.0 mask 255.255.255.0 188.8.131.52 if 0x10004
However, if the modem is forced to redial the interface index on the 56k modem changes (0x10004 -> 0xa0004 -> 0xc0004 -> etc) and the route is invalidated.
If I don't specifiy the route, the
route add fails with the message that the index is wrong or the gateway isn't on the same interface.
Is there any way to route the 56k connection independant of the interface index to my ethernet interface?