Project

General

Profile

Bug #12920

Updated by Marcos M almost 2 years ago

The gateway status and @dpinger@ behave differently when the respective gateway entry does not exist in the @config.xml@ file. This behavior difference results in failure to fail back after WAN failover. 

 Test: 
 * Using DHCP WAN 
 * Bounce on WAN, and after bouncing the interface physically and with @ifconfig@. either ifconfig or physically: 

 h3. Netgate 5100 

 @ifconfig@ produced same results. *Tested on 22.01* 
 <pre> 
             unplug cable                              plug cable 
             Gateway entry in config (see notes): 
 * interface down: dpinger process *missing*; gateway status    |     *pending* 
 * interface up: dpinger process *missing*; gateway status        *pending* 

 No gateway entry in config: 
 * interface down: dpinger process *running*; gateway status    |     *missing* 
 * interface up: dpinger process *running*; gateway status *online* 

 *Tested on 22.05.a.20220308.0600* 
 22.01 no gw missing               RUNNING               ONLINE                RUNNING Gateway entry in config: 
 22.01 gw      pending               stopped               pending               stopped 
 22.05 no gw missing               stopped               ONLINE                RUNNING 
 22.05 gw      pending               stopped               ONLINE                RUNNING 
 </pre> 

 h3. Netgate 1100 

 <pre> 
             unplug cable                              plug cable 
             * interface down: dpinger process *missing*; gateway status    |     *pending* 
 * interface up: dpinger process *running*; gateway status        *online* 

 No gateway entry in config: 
 * interface down: dpinger process *running*; gateway status    |     *missing* 
 * interface up: dpinger process *running*; gateway status *online* 


 *NOTES*: 
 22.01 no gw missing               RUNNING               ONLINE                RUNNING On switched interfaces (1100), there's a difference between using ifconfig and physically unplugging/plugging a cable: 

 Gateway entry in config (using @ifconfig@): 
 22.01 gw      pending               stopped               pending               stopped 
 22.05 no gw missing               stopped               ONLINE                RUNNING 
 22.05 gw      pending               stopped               ONLINE                RUNNING 

             ifconfig down                             ifconfig up 
             * interface down: dpinger process *running*; gateway status    |     *offline* 
 * interface up: dpinger status        process *running*; gateway status    |     dpinger status *online* 
 22.01 no gw offline               RUNNING               ONLINE                RUNNING 
 22.01 gw      offline               RUNNING               ONLINE                RUNNING 
 22.05 no gw offline               RUNNING               ONLINE                RUNNING 
 22.05 gw      offline               RUNNING               ONLINE                RUNNING 
 </pre>

Back