Simulating packets

Last Updated : May 29, 2019 |

Procedure

Use the ip simulate command in the context of an interface to test a policy list.

The command tests the effect of the policy list on a simulated IP packet in the interface. Specify the number of a policy list, the direction of the packet (in or out), and a source and destination IP address. You may also specify other parameters. For a full list of parameters, see Avaya Branch Gateway G430 CLI Reference.

Example

For example, the following command simulates the effect of applying QoS list number 401 to a packet entering Branch Gateway through interface VLAN 2:

Gxxx-001(if:VLAN 2)# ip simulate 401 in CoS1 dscp46 10.1.1.1 
10.2.2.2 tcp 1182 20

When you use the ip simulate command, the Branch Gateway displays the effect of the policy rules on the simulated packet. For example:

Gxxx-001(super-if:VLAN 2)# ip simulate 401 in CoS1 dscp46 10.1.1.1  
10.2.2.2 tcp 1182 20
Rule match for simulated packet is the default rule
Composite action for simulated packet is CoS6
New priority value is fwd6
Dscp value is not changed