Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
TOC
TOC
Include Page
KBCOMMON:KB-CSSstyle
KBCOMMON:KB-CSSstyle

...

StepDetails
Locate the Network Interfaces option on the EC2 dashboard and click on it.

Clicking on Network Interfaces opens the list of existing networks.

Create a new interface.

Click on Create Network Interface at the top of the interface list.

This opens the interface creation window.


On this screen,

  • enter a description,
  • select the subnet the interface should be on (select the subnet containing your instance),
  • allow AWS to automatically assign a private IP address or set a custom one, and
  • associate the interface with a security group (same as for the instance).

Click on Create when you are done. The new interface will appear in the overview list. There you can assign a name to the interface. Check that the interface is in state available.


Div
classpagebreak



Attaching the Interface to your Instance

After creating a network interface, you have to assign it to the instance where it will be used.

StepDetails
Locate your network interface in the interface list and right-click on it.

The right-click opens the context menu. Select Attach.

Image Removed


This will open the window to enter the necessary information.

Image Added
Select your instance and confirm entry.

Select your instance from the drop-down list and click on Attach.

Image Removed


The state of your interface will change from available to in-use.

Image Added
Verify that instance has second interface.

Select your instance in the instance list. This opens the instance details at the bottom of the screen. The description tab should now display two network interfaces as shown in the example below:

Image Modified


(info) You can also attach or detach an existing network interface from the instance overview screen. Just select your instance and then Actions > Networking > Attach or Detach network interface.

Div
classpagebreak



Assigning an Elastic IP Address to the Network Interface

...

An Elastic IP address is a static, public IPv4 address to be used for one of your network interfaces or instances. You can associate an Elastic IP address with any instance or network interface in your account.

(info) The advantage of associating the Elastic IP address with the network interface instead of directly with the instance is that you can move the network interface with its attributes easily from one instance to another.

(warning) The initial automatically assigned public IP address will be removed as soon as you restart the network or the instance after adding a network interface with an Elastic IP address to your instance. Do not restart your network or your instance before you are sure you can reach it via the Elastic IP address. The automatically assigned public IP address will also be disabled if you assign an Elastic IP address to the primary Ethernet interface of the instance.

...