-
Notifications
You must be signed in to change notification settings - Fork 1.5k
NAT Adapter on Amazon EC2
Takuya ASADA edited this page Jul 6, 2015
·
3 revisions
- Press "Launch Instance" on EC2
- In Quick Start tab, select "Ubuntu Server 14.04 LTS (HVM), SSD Volume Type"
- Select c4.xlarge
- On Auto-assign Public IP, select Enable
- Press Review and Launch
- Press Edit Security Group, add All traffic - All - 0 - 65535 - Custom IP: for incoming connection test
- Press Review and Launch, then press Launch
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get install software-properties-common python-software-properties
sudo apt-get update
sudo apt-get install libaio-dev ninja-build ragel libhwloc-dev libnuma-dev libpciaccess-dev libcrypto++-dev libboost-all-dev python3.4 make git g++-4.9 gcc-4.9-multilib g++-4.9-multilib linux-image-extra-3.13.0-48-generic iperf nginx uml-utilities bridge-utils
git clone https://github.com/syuu1228/seastar.git -b nat-adapter-dev2
cd seastar
rm -rf dpdk
git clone https://github.com/cloudius-systems/dpdk.git
./configure.py --disable-xen --enable-dpdk --compiler=g++-4.9
ninja
cat > bridge.sh << EOS
#!/bin/sh
killall dhclient
ifconfig eth0 0.0.0.0
brctl addbr br0
brctl addif br0 eth0
dhclient br0
EOS
cd seastar
sudo sh bridge.sh
cd scripts
tmux -c "sudo sh -e run.sh nat.config"