summaryrefslogtreecommitdiffstats
path: root/extras/configs/nsim
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2020-01-30 21:18:39 +0100
committerDamjan Marion <dmarion@me.com>2020-01-30 20:24:51 +0000
commitffad890961b7a5809ba08b4ab1c54001d8fd06d3 (patch)
treef9aa9d5153fdbe1c761ea59df9787b287f327dff /extras/configs/nsim
parentd1e6b2937d551b58adf1b89697d7169f4b72bbdc (diff)
misc: move configs to extras/configs
Type: refactor Change-Id: I64665b290e2c42bbd9b0e877e9e4b028090b0ede Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'extras/configs/nsim')
-rw-r--r--extras/configs/nsim/setup.nsim25
1 files changed, 25 insertions, 0 deletions
diff --git a/extras/configs/nsim/setup.nsim b/extras/configs/nsim/setup.nsim
new file mode 100644
index 00000000000..999b92a901a
--- /dev/null
+++ b/extras/configs/nsim/setup.nsim
@@ -0,0 +1,25 @@
+set term pag off
+
+loop cre
+
+set int ip address loop0 192.168.2.1/24
+set int state loop0 up
+set nsim delay 20 ms bandwidth 1 gbit packet-size 128
+comment { add drop-fraction 0.8 or some such}
+nsim output-feature enable-disable loop0
+
+packet-generator new {
+ name icmp
+ limit 0
+ size 128-128
+ interface local0
+ node ethernet-input
+ data {
+ IP4: 0001.dead.beef -> 0002.dead.beef
+ ICMP: 192.168.1.2 -> 192.168.2.2
+ incrementing 30
+ }
+}
+
+set int ip address pg0 192.168.1.1/24
+set ip arp loop0 192.168.2.2 0003.dead.beef