Skip to content

Instantly share code, notes, and snippets.

@jermdw
Created April 11, 2018 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jermdw/d7b2efeb3075296c9f6b176e4cfc03c1 to your computer and use it in GitHub Desktop.
Save jermdw/d7b2efeb3075296c9f6b176e4cfc03c1 to your computer and use it in GitHub Desktop.
tcpreplay
#!/usr/bin/env bash
modprobe dummy
lsmod | grep dummy
ip link set name eth10 dev dummy0
ip link show eth10
ifconfig eth10 hw ether 00:22:22:ff:ff:ff
ip link show eth10
ip addr add 192.168.100.199/24 brd + dev eth10 label eth10:0
ifconfig eth10 up
ifconfig eth10 promisc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment