Skip to content

Commit

Permalink
scripts: Add tap.sh
Browse files Browse the repository at this point in the history
This is the script I used to setup a tap device for seastar.
  • Loading branch information
asias authored and avikivity committed Nov 5, 2014
1 parent 6a2532f commit 534d401
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/tap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
### Set up a tap device for seastar
tap=tap0
bridge=virbr0
user=`whoami`
sudo tunctl -d $tap
sudo ip tuntap add mode tap dev $tap user $user one_queue vnet_hdr
sudo ifconfig $tap up
sudo brctl addif $bridge $tap
sudo brctl stp $bridge off
sudo modprobe vhost-net
sudo chown $user.$user /dev/vhost-net
sudo brctl show $bridge
sudo ifconfig $bridge

0 comments on commit 534d401

Please sign in to comment.