ip simulate

Last Updated : Oct 26, 2015 |
Tests the action of a policy on a simulated packet.
Prolog information

Syntax

ip simulate policy_list_number direction [priority] [dscp_value] source destination [protocol [source_port destination_port [established]]]

Parameters

Parameter
Description
Possible Values
Default Value
policy_list_ number
The number of the policy
1-999
For PBR: 1
For ACL: 300
For Qos: 400
For Capture: 500
direction
The direction
in, out
priority
The priority
fwd0-fwd7
dscp_value
The DSCP value
dscp0-dscp63
source
The source IP address
destination
The destination IP address
protocol
The protocol to use
ip, tcp, udp, 1-255
source_port
The source port of the simulated packet
1-65535
destination_port
The destination port of the simulated packet
1-65535
established
The value of the TCP established bit

User level

read-write

Context

interface: Serial (DS1 PPP L2-L3, DS1 PPP L3, DS1 FR-SUB L2-L3, DS1 FR-SUB L3, USP PPP L2-L3, USP PPP L3), Loopback (L2, L2-L3), FastEthernet (L2-L3, L3, PPP L2, PPP L2-L3, PPP L3), Tunnel (L2, L2-L3), VLAN (L2, L2-L3), Dialer (L2, L2-L3)

Example

To simulate the effects of applying access control list 330 to a packet entering the Branch Gateway through the FastEthernet interface, from IP address 192.67.85.12 to IP address 192.67.54.25:
Gxxx-001(if:FastEthernet 10/3)# ip simulate 330 in 192.67.85.12 192.67.54.25 ip