IOS Ping using TOS Bit
From NippAero
I was turned on to this by Robert. It is very useful for validating Qos policy maps in IOS. You can use the extended ping to produce a packet with the necessary TOS bit to match your Qos policy.
Using either Hex (0xb8) or Dec (184) works fine.
This example will ping using DSCP value EF.
Router#ping Protocol [ip]: Target IP address: 192.168.0.1 Repeat count [5]: 100 Datagram size [100]: Timeout in seconds [2]: Extended commands [n]: y Source address or interface: 192.168.2.100 Type of service [0]: 0xb8 Set DF bit in IP header? [no]: Validate reply data? [no]: Data pattern [0xABCD]: Loose, Strict, Record, Timestamp, Verbose[none]: Sweep range of sizes [n]: Type escape sequence to abort. Sending 100, 100-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds: Packet sent with a source address of 192.168.2.100 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Success rate is 100 percent (100/100), round-trip min/avg/max = 24/25/28 ms Router#
Categories: QoS | Network Management | IOS | Cisco
