beautypg.com

Branch office 1 – Allied Telesis AlliedWare AR440S User Manual

Page 34

background image

Page 34 | AlliedWare™ OS How To Note: VPNs for Corporate Networks

branch office

1

This example creates four triggers, which allows for up to four simultaneous roaming client
VPNs. You can scale this to the correct number for your network.

Create the following scripts as text files on the router.

Create triggers to run the appropriate script when the interface comes up.

enable trigger

create trigger=1 interface=ppp0 event=up cp=ipcp script=ppp0up.scp

create trigger=2 interface=ppp0 event=up cp=ipcp script=ppp1up.scp

create trigger=3 interface=ppp0 event=up cp=ipcp script=ppp2up.scp

create trigger=4 interface=ppp0 event=up cp=ipcp script=ppp3up.scp

You need TOS (type of service) reflection so that DSCP marked VoIP packets can be
classified for prioritisation at the PPP level. Unless you already turned on TOS reflection
when you configured L2TP in

step 7 on page 19

, delete your existing L2TP entry and add it

again.

delete l2tp ip=1.1.1.1-255.255.255.254 ppptemplate=1

add l2tp ip=1.1.1.1-255.255.255.254 ppptemplate=1 tos=on

create conf=<your-file.cfg>

set config=<your-file.cfg>

5.

For roaming clients, use triggers to apply SQoS to dynamic interfaces

script name

script contents

ppp0up.scp

set sqos int=ppp0 outpolicy=1

ppp1up.scp

set sqos int=ppp1 outpolicy=1

ppp2up.scp

set sqos int=ppp2 outpolicy=1

ppp3up.scp

set sqos int=ppp3 outpolicy=1

6.

For roaming clients, set L2TP TOS reflection

7.

Save your configuration