
Policy Applications
Configuring QoS
page 25-82
OmniSwitch AOS Release 7 Network Configuration Guide
June 2013
! route 2,10,18,34,(2+(n*8))
-> policy condition c3 source ip 12.0.0.2 mask 255.0.0.7
-> policy action a3 permanent gateway-ip 10.0.0.3
-> policy rule r3 condition c3 action a3
! route 3,11,19,35,(3+(n*8))
-> policy condition c4 source ip 12.0.0.3 mask 255.0.0.7
-> policy action a4 permanent gateway-ip 10.0.0.4
-> policy rule r4 condition c4 action a4
! route 4,12,20,36,(4+(n*8))
-> policy condition c5 source ip 12.0.0.4 mask 255.0.0.7
-> policy action a5 permanent gateway-ip 10.0.0.5
-> policy rule r5 condition c5 action a5
! route 5,13,21,37,(5+(n*8))
-> policy condition c6 source ip 12.0.0.5 mask 255.0.0.7
-> policy action a6 permanent gateway-ip 10.0.0.6
-> policy rule r6 condition c6 action a6
! route 6,14,22,38,(6+(n*8))
-> policy condition c7 source ip 12.0.0.6 mask 255.0.0.7
-> policy action a7 permanent gateway-ip 10.0.0.7
-> policy rule r7 condition c7 action a7
! route 7,15,23,39,(7+(n*8))
-> policy condition c8 source ip 12.0.0.7 mask 255.0.0.7
-> policy action a8 permanent gateway-ip 10.0.0.8
-> policy rule r8 condition c8 action a8
-> qos apply
Note the following regarding the use and configuration of IPv4 non-contiguous masks.
•
Automatic resolution via Address Resolution Protocol (ARP) for next-hop (permanent gateway-IP)
addresses is not supported if a mask contains more than 8-bits of non-contiguous zeros. As a result,
other mechanisms have to be used to resolve the MAC addresses such as server load balancing ping
probing or static ARP entries.
•
A Server Load Balancing (SLB) configuration can be used to probe IPv4 addresses. This allows for
dynamic resolution of the IPv4 next hop policy based route. For example:
-> vlan 14 admin-state enable
-> vlan 14 members port 1/14 untagged
-> ip interface "v4_v14" vlan 14 admin-state enable
-> ip address 10.0.0.254
-> ip slb cluster pbr_servers vip 1.2.3.4
-> ip slb server ip 10.0.0.1 cluster pbr_servers
-> ip slb server ip 10.0.0.2 cluster pbr_servers
-> ip slb server ip 10.0.0.3 cluster pbr_servers
-> ip slb server ip 10.0.0.3 cluster pbr_servers
-> ip slb server ip 10.0.0.4 cluster pbr_servers
-> ip slb server ip 10.0.0.5 cluster pbr_servers
-> ip slb server ip 10.0.0.6 cluster pbr_servers
-> ip slb server ip 10.0.0.7 cluster pbr_servers
-> ip slb cluster pbr_servers ping period 1
-> ip slb cluster pbr_servers ping timeout 1000