- Add a secondary private IP into the network interface
- Then, assign an Elastic IP to this Private IP
- Next, add the following line into /etc/rc.local according to your VPC subnet
sudo ip addr add dev eth0 192.168.X.Y/24
Make sure /etc/rc.local has execute permissions
Now you can ping the Elastic IP which you have already added from your local computer. Run the following command and observe ping packets.
sudo tcpdump -n icmp