네트워크(15) : VPC + NAT

NOHHYEONGJUN·2024년 9월 3일

네트워크

목록 보기
15/21

VPC + NAT


PC5

ip 172.31.0.50 172.31.0.1 

➩ (/24 → 생략 가능)


PC6

ip 172.31.1.60 172.31.1.1

➩ (/24 → 생략 가능)


R2

conf t
int f0/0
ip add 172.31.0.1 255.255.255.0
no sh

int f0/1
ip add 172.31.1.1 255.255.255.0
no sh

int s1/0
ip add 10.0.0.2 255.255.255.0
no sh

ip route 172.20.0.0 255.255.255.0 s1/0 10.0.0.1
ip route 0.0.0.0 0.0.0.0 s1/0 10.0.0.1 **(default route gateway)**

R1

conf t
int s1/0
ip add 10.0.0.1 255.255.255.0
no sh

ip route 172.31.0.0 255.255.255.0 s1/0 10.0.0.2

profile
Cloud/DevOps & Network Virtualization에 관심 있는 대학생입니다. 🐳

0개의 댓글