Configuration examples
U
SER
G
UIDE
373
set trigger backup down set gprs sms
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 192.168.1.0/24 -o atm0 -j SNAT --to 2.21.172.162
set autocmd set backup on
set autocmd set gprs sms
Q
O
S
FOR
ADSL
CONNECTION
In the configuration below the case of setting QoS rules on ADSL is considered. If there is no band
specified in the policy, Imola allocate the band calculated during the alignment phase of the
cpe
central.
The voice traffic is assigned to the RT class and the specified band takes into account the overhead
ATM, and maximum priority (1), IPP 5 traffic, DSCP 46 traffic are also assigned.
Non-classified traffic is assigned to BE class, to which is assigned the 100% of the remaining band.
set no-qos-ext
set qos-ext policy voip
set qos-ext policy voip interface atm0
set qos-ext class RT
set qos-ext class RT policy voip
set qos-ext class RT filter priority 1
set qos-ext class RT bandwidth 90
set qos-ext class RT filter match ipp 5
set qos-ext class RT filter match dscp 46
set qos-ext class BE
set qos-ext class BE policy voip
set qos-ext class BE default
set qos-ext class BE bandwidth percent 100
set trigger adsl up set qos-ext on
set trigger adsl down set qos-ext off
Q
O
S
FOR
HDSL
CONNECTION
In the configuration below the case of setting QoS rules on HDSL is considered. On the policy, a
specific band that takes the ATM overhead into account, is specified.
The voice traffic is assigned to the RT class and the specified band takes into account the overhead
frame-relay and that the voice packets are small, and maximum priority (1), IPP 5 traffic, DSCP 46
traffic are also assigned.