728x90
반응형
정적 라우팅 (Static routing)
정적 라우팅은 모든 경로에 대한 정보를 직접 관리자가 입력해주는 방식이다. 단순 경로 네트워크나 단일 외부 경로를 가진 최종 사용자 네트워크에 매우 유용하고, 라우터 장치 이외에 리눅스나 유닉스 윈도우즈 등의 OS에서도 기본적인 기능으로 제공된다. 일반 PC나 서버도 로컬 라우터로 이용할 수 있다.

-목차-
1. R1
2. R2
3. R3
4. R1, R2, R3 디폴트

1. R1
R1(config)# int g0/0
R1(config‐if)# ip add 1.1.1.1 255.255.255.0
R1(config‐if)# no sh
R1(config‐if)# int s0/0/0
R1(config‐if)# ip add 12.1.1.1 255.255.255.0
R1(config‐if)# no sh
R1(config‐if)# int s0/0/1
R1(config‐if)# ip add 13.1.1.1 255.255.255.0
R1(config‐if)# no sh

2. R2
R2(config)# int g0/0
R2(config‐if)# ip add 2.2.2.1 255.255.255.0
R2(config‐if)# no sh
R2(config‐if)# int s0/0/0
R2(config‐if)# ip add 12.1.1.2 255.255.255.0
R2(config‐if)# no sh
R2(config‐if)# do show ip int brief

3. R3
R3(config)# int g0/0
R3(config‐if)# ip add 3.3.3.1 255.255.255.0
R3(config‐if)# no sh
R3(config‐if)# int s0/0/1
R3(config‐if)# ip add 13.1.1.3 255.255.255.0
R3(config‐if)# no sh
R3(config‐if)# do show ip int brief

4. R1,R2,R3 디폴트
R1(config)# ip route 2.2.2.0 255.255.255.0 12.1.1.2
R1(config)# ip route 3.3.3.0 255.255.255.0 13.1.1.3
R2(config)# ip route 1.1.1.0 255.255.255.0 serial0/0/0
R2(config)# ip route 3.3.3.0 255.255.255.0 serial0/0/0
R3(config)# ip route 1.1.1.0 255.255.255.0 serial0/0/1
R3(config)# ip route 2.2.2.0 255.255.255.0 serial0/0/1
ping 1.1.1.3
ping 2.2.2.3
ping 3.3.3.3
1.1.1.3

2.2.2.3


궁금한점 있으시면 댓글 남겨주세요.
728x90
반응형
'네트워크' 카테고리의 다른 글
[CISCO] RIPv2 라우팅 설정하기 (+show ip route 버그) (1) | 2022.11.30 |
---|---|
[CISCO] 동적 라우팅 RIP (0) | 2022.11.29 |
[Cisco] VLAN- Trunk Routing (1) | 2022.11.28 |
Net2) DNS 동작원리 (개념정리부터 질의과정까지) (2) | 2022.10.31 |