All technological notes.
Networking has two sorts of IPs. IPv4 and IPv6:
Internet of Things (IoT).
Public IP:
Private IP:
NAT(Network address translation) + internet gateway (a proxy)EC2
private IP for the internal AWS Networkpublic IP, for the WWW.SSH into our EC2 machines:
public IP.Elastic IPYou can attach it to one instance at a time
Elastic IP address, you can mask the failure of an instance or software by rapidly remapping the address to another instance in your account.You can only have 5 Elastic IP in your account (you can ask AWS to increase that).
Load Balancer and don’t use a public IP
Security Groups
They regulate:
SG can be attached to multiple instances; An instance can have multiple SG.
SG Locked down to a region / VPC combination
Troubleshooting:
time out), then it’s a security group issueconnection refused“ error, then it’s an application error or it’s not launchedClassic Ports
| Port | Protocol | Use case |
|---|---|---|
22 |
SSH (Secure Shell) | log into a Linux instance |
22 |
SFTP (Secure File Transfer Protocol) | upload files using SSH |
21 |
FTP (File Transfer Protocol) | upload files into a file share |
80 |
HTTP | access unsecured websites |
443 |
HTTPS | access secured websites |
3389 |
RDP (Remote Desktop Protocol) | log into a Windows instance |
0.0.0.0/0: any IPv4::/0: any IPv6
SSH: Secure Shell or Secure Socket Shell
ssh -i pem_file hostname@public_ip
SSH
EC2 instance Connect
SSM Session manager
VPC that represents a virtual network cardENI can have the following attributes:
Primary private IPv4, one or more secondary IPv4Elastic IP (IPv4) per private IPv4Public IPv4security groupsMAC addressIf an ENI is created by user, it will still available even the ec2 to which ENI is attatched is terminated.



