aboutsummaryrefslogtreecommitdiffstats
path: root/extras/configs/pcapcli/setup.pcapcli
blob: 66f3caebf63a6f4ad8864d6719ebb8683a0ec61e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
set term pag off
loop create
loop create
set int ip address loop0 192.168.1.1/24
set int state loop0 up

set int ip address loop1 192.168.2.1/24
set int state loop1 up

packet-generator new {
    name pg0
    limit 1
    size 300-300
    interface loop0
    node ethernet-input
    data { IP4: 1.2.3 -> 4.5.6
           UDP: 192.168.1.10 -> 192.168.2.10
           UDP: 1234 -> 2345
           incrementing 286
    }
}

packet-generator new {
    name pg1
    limit 1
    size 300-300
    interface loop1
    node ethernet-input
    data { IP4: 1.2.3 -> 4.5.6
           UDP: 192.168.2.10 -> 192.168.1.10
           UDP: 1234 -> 2345
           incrementing 286
    }
}