pagent#tgn pagent(TGN:OFF,Fa0/0:none)#add ip pagent(TGN:OFF,Fa0/0:1/1)#rate 2000 pagent(TGN:OFF,Fa0/0:1/1)#l2-dest-addr FFFF.FFFF.FFFF pagent(TGN:OFF,Fa0/0:1/1)#l3-dest-addr 255.255.255.255 pagent(TGN:OFF,Fa0/0:1/1)# pagent(TGN:OFF,Fa0/0:1/1)#add ip pagent(TGN:OFF,Fa0/0:2/2)#rate 2000 pagent(TGN:OFF,Fa0/0:2/2)#l2-dest-addr 0100.5E7F.0001 pagent(TGN:OFF,Fa0/0:2/2)#l3-dest-addr 239.255.0.1 pagent(TGN:OFF,Fa0/0:2/2)# pagent(TGN:OFF,Fa0/0:2/2)#sh ip Summary of IP traffic streams on FastEthernet0/0 prot- ts# tos len id frag ttl col chksm source destination 1 IP 00 20 0000 0000 60 0 7EEB 0.0.0.0 255.255.255.255 2 IP 00 20 0000 0000 60 0 8EEA 0.0.0.0 239.255.0.1 pagent(TGN:OFF,Fa0/0:2/2)# pagent(TGN:OFF,Fa0/0:2/2)#sh mac Summary of MAC addresses on FastEthernet0/0 ts# template encap mac.destination mac.source dsap ssap protocol 1 IP arpa FFFF.FFFF.FFFF 000D.28EF.CCE0 0x0800 2 IP arpa 0100.5E7F.0001 000D.28EF.CCE0 0x0800 pagent(TGN:OFF,Fa0/0:2/2)# pagent(TGN:OFF,Fa0/0:2/2)#sh rate Traffic generation is currently off. These rates are from the last time traffic generation was active. Summary of traffic stream rates on FastEthernet0/0 measured ts# template state repeat interval/rate interval/rate packets_sent 1 IP on 1 2000 pps 0.000 0 2 IP on 1 2000 pps 0.000 0 Totals for FastEthernet0/0 0.000 0 pagent(TGN:OFF,Fa0/0:2/2)# pagent(TGN:OFF,Fa0/0:2/2)#s pagent(TGN:ON,Fa0/0:2/2)#sh rate The rates are since traffic generation was started. Summary of traffic stream rates on FastEthernet0/0 measured ts# template state repeat interval/rate interval/rate packets_sent 1 IP on 1 2000 pps 1999.811 28846 2 IP on 1 2000 pps 1999.484 28846 Totals for FastEthernet0/0 3998.866 57692 pagent(TGN:ON,Fa0/0:2/2)#
Showing posts with label pagent. Show all posts
Showing posts with label pagent. Show all posts
Tuesday, May 24, 2011
Generating Broadcast and Multicast Traffic using Cisco Pagent
Saturday, March 19, 2011
Traffic Generation using Cisco Pagent TGN (Traffic GeNeration) Module
Below shows the sample configuration for generating 1000 ICMP Echo Request packets with random length between 500 and 1000 bytes, per second.
pagent1#tgn pagent1(TGN:OFF,Fa0/0:none)#add icmp pagent1(TGN:OFF,Fa0/0:1/1)#name *** Stream 1 - ICMP Ping *** pagent1(TGN:OFF,Fa0/0:1/1)#rate 1000 pagent1(TGN:OFF,Fa0/0:1/1)#l2-dest-addr 1111.1111.1111 pagent1(TGN:OFF,Fa0/0:1/1)#l3-src-addr random 192.168.1.1 to 192.168.1.254 pagent1(TGN:OFF,Fa0/0:1/1)#l3-dest-addr random 172.16.0.1 to 172.16.255.254 pagent1(TGN:OFF,Fa0/0:1/1)#l4-type 8 pagent1(TGN:OFF,Fa0/0:1/1)#length random 500 to 1000 pagent1(TGN:OFF,Fa0/0:1/1)#output-mode dedicated pagent1(TGN:OFF,Fa0/0:1/1)#sh ip Summary of IP traffic streams on FastEthernet0/0 prot- ts# tos len id frag ttl col chksm source destination 1 ICMP 00 28 0000 0000 60 1 1127 192.168.1.1 172.16.0.1 pagent1(TGN:OFF,Fa0/0:1/1)# pagent1(TGN:OFF,Fa0/0:1/1)#sh icmp Summary of ICMP traffic streams on FastEthernet0/0 ts# type code checksum option 1 8 0 0xF7FF 0x00000000 pagent1(TGN:OFF,Fa0/0:1/1)# pagent1(TGN:OFF,Fa0/0:1/1)#sh rate Traffic generation is currently off. These rates are from the last time traffic generation was active. Summary of traffic stream rates on FastEthernet0/0 measured ts# template state repeat interval/rate interval/rate packets_sent 1 ICMP on 1 1000 pps 0.000 0 pagent1(TGN:OFF,Fa0/0:1/1)#start You have started traffic generation in dedicated output-mode. TGN will go into a send loop that locks out all other processes. Enter control-6 or shift-control-6 to stop traffic generation.
Subscribe to:
Posts (Atom)