Tests reachability using ping from IOS switch.
Version added: 1.0.0
- Tests reachability using ping from switch to a remote destination.
- For a general purpose network module, see the net_ping module.
- For Windows targets, use the win_ping module instead.
- For targets running Python, use the ping module instead.
Note
- name: Test reachability to 198.51.100.251 using default vrf
cisco.ios.ios_ping:
dest: 198.51.100.251
- name: Test reachability to 198.51.100.252 using prod vrf
cisco.ios.ios_ping:
dest: 198.51.100.252
vrf: prod
afi: ip
- name: Test un reachability to 198.51.100.253 using default vrf
cisco.ios.ios_ping:
dest: 198.51.100.253
state: absent
- name: Test reachability to 198.51.100.250 using prod vrf and setting count and source
cisco.ios.ios_ping:
dest: 198.51.100.250
source: loopback0
vrf: prod
count: 20
- name: Test reachability to 198.51.100.249 using df-bit and size
cisco.ios.ios_ping:
dest: 198.51.100.249
df_bit: true
size: 1400
- name: Test reachability to ipv6 address
cisco.ios.ios_ping:
dest: 2001:db8:ffff:ffff:ffff:ffff:ffff:ffff
afi: ipv6
Common return values are documented here, the following are the fields unique to this module:
- Jacob McGill (@jmcgill298)
- Sagar Paul (@KB-perByte)