Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

FireBrick 3G Dongle: Difference between revisions

no edit summary
No edit summary
<profile name="No_DSL" timeout="PT5S" recover="PT1S" not="DSL"/ comment="Just the not of the previous profile">
</syntaxhighlight>
 
= 3G based on profiles =
Sometimes we don't want the dongle to be online 24x7 as it's not clear whether the dongle has got into a strange state or not. It's also not clear whether some of these devices are designed to be left connected all of the time.
 
This example brings the dongle online for quick fallback during office hours, and leaves it powered up but disconnected. Fallback still works out of office hours but takes a few seconds longer to set up.
 
Note that both <usb> and <dongle> elements can be based on profiles. Leaving <usb> active but disabling <dongle> will leave the dongle powered up but disconnected. Disabling <usb> will physically turn off the USB port and therefore also the dongle. Cold starts take a lot longer!
 
<syntaxhighlight>
<usb>
<dongle name="Backup" username="example@a.3" password="password" nat="false" graph="3G" profile="3G"/>
</usb>
<profile name="Working_hours" comment="Office working times">
<time days="Mon Tue Wed Thu Fri" start="08:00:00" stop="18:00:00"/>
</profile>
<profile name="No_PPP" ppp="ADSL1 ADSL2" invert="true"/>
<profile name="3G" or="Working_hours No_PPP" comment="Backup active during the working day, or if there's no PPP at night"/>
</syntaxhighlight>
 
This example is taken from a site which has 2 ADSL lines - hence the No_PPP profile being based on ADSL1 and ADSL2 being up.
The 3G profile is then active during the Working hours, but it will become active if both of the ADSL lines are down out of hours.
 
= Ping test example of falling back =
<pre>set command log level debug</pre>
-there will be lots of info coming out!
 
= 3G based on profiles =
Sometimes we don't want the dongle to be online 24x7 as it's not clear whether the dongle has got into a strange state or not. It's also not clear whether some of these devices are designed to be left connected all of the time.
 
This example brings the dongle online for quick fallback during office hours, and leaves it powered up but disconnected. Fallback still works out of office hours but takes a few seconds longer to set up.
 
Note that both <usb> and <dongle> elements can be based on profiles. Leaving <usb> active but disabling <dongle> will leave the dongle powered up but disconnected. Disabling <usb> will physically turn off the USB port and therefore also the dongle. Cold starts take a lot longer!
 
<syntaxhighlight>
<usb>
<dongle name="Backup" username="example@a.3" password="password" nat="false" graph="3G" profile="3G"/>
</usb>
<profile name="Working_hours" comment="Office working times">
<time days="Mon Tue Wed Thu Fri" start="08:00:00" stop="18:00:00"/>
</profile>
<profile name="No_PPP" ppp="ADSL1 ADSL2" invert="true"/>
<profile name="3G" or="Working_hours No_PPP" comment="Backup active during the working day, or if there's no PPP at night"/>
</syntaxhighlight>
 
This example is taken from a site which has 2 ADSL lines - hence the No_PPP profile being based on ADSL1 and ADSL2 being up.
The 3G profile is then active during the Working hours, but it will become active if both of the ADSL lines are down out of hours.
autoreview, Bureaucrats, editor, Interface administrators, reviewer, Administrators
12,274

edits