Configuration examples
U
SER
G
UIDE
369
set adsl pvc atm0 no-masquerade
set adsl pvc atm0 ipaddr <PTP-IP-ADDRESS>
set adsl pvc atm0 no-nexthop
set adsl pvc atm0 netmask 255.255.255.252
set adsl on
set backup checking-ipaddr <PUBLIC-IP> via bfd through-interface atm0
set backup check-interval 30
set backup check-retries 3
set backup check-wait 5
set backup deactivate-delay 30
set backup on
set trigger backup up set gprs on
set trigger backup down set gprs off
set route net 0.0.0.0 netmask 0.0.0.0 dev atm0 distance 10
set route net 0.0.0.0 netmask 0.0.0.0 dev ppp0 distance 5
set iptables -t nat -A POSTROUTING -s <PRIVATE-LAN>/N -o atm0 -j SNAT --to < PUBLC-IP>
set autocmd set backup on
set autocmd set gprs off
Practical example:
set eth0 ipaddr 2.21.172.162 netmask 255.255.255.248
set eth0 on
set eth1 ipaddr 192.168.1.254 netmask 255.255.255.0
set eth1 on
set gprs apn ibox.tim.it
set gprs idle 0
set gprs rx-idle 1800
set gprs no-default-route
set gprs masquerade
set gprs mtu 1500
set gprs usepeerdns
set gprs debug
set gprs sgauth 1
set gprs pwroff-modem
set gprs off
set adsl encap rfc1483-llc
set adsl pvc-number 1
set adsl pvc atm0 vpi 8 vci 35