Dave Barach | 7c91007 | 2019-04-03 11:20:06 -0400 | [diff] [blame] | 1 | set term pag off |
| 2 | |
| 3 | loop cre |
| 4 | |
| 5 | set int ip address loop0 192.168.2.1/24 |
| 6 | set int state loop0 up |
| 7 | set nsim delay 20 ms bandwidth 1 gbit packet-size 128 |
| 8 | comment { add drop-fraction 0.8 or some such} |
| 9 | nsim output-feature enable-disable loop0 |
| 10 | |
| 11 | packet-generator new { |
| 12 | name icmp |
| 13 | limit 0 |
| 14 | size 128-128 |
| 15 | interface local0 |
| 16 | node ethernet-input |
| 17 | data { |
| 18 | IP4: 0001.dead.beef -> 0002.dead.beef |
| 19 | ICMP: 192.168.1.2 -> 192.168.2.2 |
| 20 | incrementing 30 |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | set int ip address pg0 192.168.1.1/24 |
| 25 | set ip arp loop0 192.168.2.2 0003.dead.beef |