Book Image

AWS Networking Cookbook

By : Satyajit Das, Jhalak Modi
Book Image

AWS Networking Cookbook

By: Satyajit Das, Jhalak Modi

Overview of this book

This book starts with practical recipes on the fundamentals of cloud networking and gradually moves on to configuring networks and implementing infrastructure automation. This book then supplies in-depth recipes on networking components like Network Interface, Internet Gateways, DNS, Elastic IP addresses, and VPN CloudHub. Later, this book also delves into designing, implementing, and optimizing static and dynamic routing architectures, multi-region solutions, and highly available connectivity for your enterprise. Finally, this book will teach you to troubleshoot your VPC's network, increasing your VPC's efficiency. By the end of this book, you will have advanced knowledge of AWS networking concepts and technologies and will have mastered implementing infrastructure automation and optimizing your VPC.
Table of Contents (10 chapters)

Assigning multiple IPs to an instance and ENI

The Elastic Network Interface (ENI) is a virtual interface. Any instance when created comes with its default NI attached to it (eth0). Additional ENIs can be created and attached to an instance or can be detached from it. The number of ENIs that can be attached to an EC2 instance depends on its type. An ENI may have the following properties:

  • One primary and multiple secondary IPv4 addresses and optionally, one public or Elastic (fixed) IPv4 IP
  • One or more IPv6 addresses if supported by the instance type and network
  • One MAC address
  • Additional properties such as SG, source destination check, and so on.

This recipe is similar to creating a NAT instance that we learnt in Chapter 1, Getting Started with AWS Networking Components. In that case, we attached an Elastic IP to one instance. Here, we shall learn how to create an ENI and attach...