네트워크(2) : Static Routing

NOHHYEONGJUN·2024년 9월 2일

네트워크

목록 보기
2/21

Static Routing


R1

conf t

int f0/0

ip add 172.16.100.254 255.255.255.0

no sh

int s1/0

ip add 10.1.12.1 255.255.255.0

no sh

ip route 192.168.1.0 255.255.255.0 s1/0 10.1.12.2

R2

conf t

int s1/0

ip add 10.1.12.2 255.255.255.0

no sh

int f0/0

ip add 192.168.1.254 255.255.255.0

no sh

ip route 172.16.100.0 255.255.255.0 s1/0 10.1.12.1

R3

conf t

int f0/0

ip add 192.168.1.100 255.255.255.0

no sh

no ip routing
ip default-gateway 192.168.1.254

→ Router3은 Router 역할 X (단말 역할로 사용)


Window → R1      Routing

→ cmd 관리자 모드 실행

 

route add 192.168.1.0 mask 255.255.255.0 172.16.100.254

→ routing table 추가

 

→ 인터페이스, 메트릭(26)이 맞아야 한다.

 

만약 메트릭이 46 or 다른 숫자라면, 아래의 실행을 통해 해결

route delete 192.168.1.0 mask 255.255.255.0 172.16.100.254

route add 192.168.1.0 mask 255.255.255.0 172.16.100.254

Router3의 Routing 기능 제거

conf t

int f0/0

ip add 192.168.1.100 255.255.255.0

no sh

no ip routing

ip default-gateway 192.168.1.254


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

0개의 댓글