Sign in
Categories
Your Saved List Become a Channel Partner Sell in AWS Marketplace Amazon Web Services Home Help

How to add IPs

  • By Chris
  • on 06/04/2016

1. Add additional private IPs to your instance in EC2 dashboard (optional, one for each Elastic IP)

2. Find out what gateway you're currently using (look at first line under gateway):
> netstat -rn

3. Edit: /etc/rc.conf
> vi /etc/rc.conf

comment-out this line:
ifconfig_DEFAULT="SYNCDHCP"

Add these lines, adjust as necessary (subnet seems to always be /20):
defaultrouter="172.31.48.1"
ifconfig_xn0="inet 172.31.xx.xx/20"
ifconfig_xn0_alias0="inet 172.31.xx.xx/20"

4. Shutdown instance
> shutdown -p now

5. Create new Elastic IP(s) in EC2 dashboard and point them to your private IP(s)

6. Start instance


There are no comments to display