aboutsummaryrefslogtreecommitdiffstats
path: root/vpp/vnet/etc/scripts/snat
blob: 87fd699ee5102403b8ae2be9c0099dcbb920a092 (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
packet-generator new {
  name f1
  limit 1000000
  node ip4-input
  size 64-64
  no-recycle
  worker 0
  data {
    UDP: 10.0.0.3 -> 172.16.1.2
    UDP: 3000 -> 3001
    length 128 checksum 0 incrementing 1
  }
}


packet-generator new {
  name f2
  limit 1000000
  node ip4-input
  size 64-64
  no-recycle
  worker 1
  data {
    UDP: 10.0.0.3 -> 172.16.1.2
    UDP: 3005 -> 3006
    length 128 checksum 0 incrementing 1
  }
}

snat add address 172.16.1.3
ip route 172.16.1.2/32 via drop
set int ip address pg0 10.0.0.1/24
set int snat in pg0
trace add pg-input 10