cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3630
Views
1
Helpful
2
Replies

Ping Commands in Cisco ACI

palani2010
Level 1
Level 1

How to ping destination IP address by using source IP in Cisco ACI Cli mode

1 Accepted Solution

Accepted Solutions

Sergiu.Daniluk
VIP Alumni
VIP Alumni
Leaf1201# iping -V <TN-name:VRF-name> -S <SRC-IP> <DST-IP>

Leaf1201# iping -help 

usage: iping     [ -d    set the SO_DEBUG option]
                 [ -D    enable debug information ] 
                 [ -F    enable do not fragment bit in IP header ] 
                 [ -L    receive packets on supplied interface ] 
                 [ -n    enable printing host IP address than resolved name ] 
                 [ -q    quiet output ]
                 [ -r    disable routing of the packets, send only to directly connected hosts ]
                 [ -v    output in verbose format ] 
                 [ -V    <vrf-name>      name of the VRF through which destination is reachable ] 
                 [ -c    <count>         no of packets to send ] 
                 [ -i    <wait>                  no of seconds to wait before sending next packet ] 
                 [ -p    <pattern>       packet payload pattern ]
                 [ -s    <packetsize>    size of packets to send ]
                 [ -t    <timeout>       wait for seconds to receive reply ]
                 [ -S    <source ip/interface>   send packet with given source-ip or IP of given interface and 
                                                 send packet out of that interface ]
                 <host>  destination host-name or ip address

View solution in original post

2 Replies 2

Sergiu.Daniluk
VIP Alumni
VIP Alumni
Leaf1201# iping -V <TN-name:VRF-name> -S <SRC-IP> <DST-IP>

Leaf1201# iping -help 

usage: iping     [ -d    set the SO_DEBUG option]
                 [ -D    enable debug information ] 
                 [ -F    enable do not fragment bit in IP header ] 
                 [ -L    receive packets on supplied interface ] 
                 [ -n    enable printing host IP address than resolved name ] 
                 [ -q    quiet output ]
                 [ -r    disable routing of the packets, send only to directly connected hosts ]
                 [ -v    output in verbose format ] 
                 [ -V    <vrf-name>      name of the VRF through which destination is reachable ] 
                 [ -c    <count>         no of packets to send ] 
                 [ -i    <wait>                  no of seconds to wait before sending next packet ] 
                 [ -p    <pattern>       packet payload pattern ]
                 [ -s    <packetsize>    size of packets to send ]
                 [ -t    <timeout>       wait for seconds to receive reply ]
                 [ -S    <source ip/interface>   send packet with given source-ip or IP of given interface and 
                                                 send packet out of that interface ]
                 <host>  destination host-name or ip address

Robert Burns
Cisco Employee
Cisco Employee

Before issuing the iping command do a "show vrf" to grab the VRF listing, (for copy and paste). Make it easier to get the VRF syntax correct which is a combination of the Tenant & VRF name as shared above.  

Robert

Save 25% on Day-2 Operations Add-On License