[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Default Gateway does not change back after PPP link is
Re: [lwip-users] Default Gateway does not change back after PPP link is deactivated
Mon, 21 Nov 2011 16:22:46 +0100
Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0
OK ... found the solution by myself.
To all who may have the same problem: After the PPP is brought down, a call
netif_set_default( &xEMAC_if );
with the Ethernet netif as parameter is needed to make the ethernet
again the default interface.
Am 21.11.2011 15:57, schrieb Marco Jakobs:
i'm facing a problem with LwIP (1.3.2) and the use of PPP.
The Ethernet port has defined an IP address, Netmask and the default
gateway configuration. Everything works pretty well, also sending
packets to different subnets to the default gateway.
As soon as i activate the PPP link, the default gateway is now
automatically the PPP destination, so the PPP overrides the default
gateway (which is correct so far).
But after deactivating the PPP, the standard gateway of LwIP seems not
to return to the value defined in the ethernet link! As soon as the
PPP was up once and was put down again, the standard gateway is not
working and all connections to different subnets are without any efford.
How can i "reset" the standard gateway of LwIP to the gateway already
defined in the ethernet settings?
lwip-users mailing list