네트워크
[CISCO] 동적 라우팅 RIP
화이트해커 Luna 🌙
2022. 11. 29. 17:36
728x90
반응형
동적 라우팅 RIP
라우터가 알고있는 네트워크 정보를 광고하도록 지정한다. Classful 알고리즘이므로 넷마스크를 입력하지 않고, 라우터에 연결된 모든 네트워크 정보를 모두 입력한다.
명령어
router [rip | ospf | eigrp | bgp]
network [IP]
-목차-
1.라우터 인터페이스 설정
2. 라우터 RIP 설정
3. 라우터 RIP 설정 확인
4. 라우팅 정보 확인
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 41.1.1.1 255.255.255.0
R1(config‐if)# no sh
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 23.1.1.2 255.255.255.0
R2(config‐if)# no sh
R2(config‐if)# int s0/0/1
R2(config‐if)# ip add 12.1.1.2 255.255.255.0
R2(config‐if)# no sh
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/0
R3(config‐if)# ip add 34.1.1.3 255.255.255.0
R3(config‐if)# no sh
R3(config‐if)# int s0/0/1
R3config‐if)# ip add 23.1.1.3 255.255.255.0
R3config‐if)# no sh
R4
R4(config)# int g0/0
R4(config‐if)# ip add 4.4.4.1 255.255.255.0
R4(config‐if)# no sh
R4(config‐if)# int s0/0/0
R4(config‐if)# ip add 41.1.1.4 255.255.255.0
R4(config‐if)# no sh
R4(config‐if)# int s0/0/1
R4config‐if)# ip add 34.1.1.4 255.255.255.0
R4config‐if)# no sh
인터페이스 설정 확인
# show ip int brief //확인
2. 라우터 RIP 설정
R1
R1(config)# router rip
R1(config‐router)# network 1.1.1.0
R1(config‐router)# network 12.1.1.0
R1(config‐router)# network 41.1.1.0
R2
R2(config)# router rip
R2(config‐router)# network 2.2.2.0
R2(config‐router)# network 12.1.1.0
R2(config‐router)# network 23.1.1.0
R3
R3(config)# router rip
R3(config‐router)# network 3.3.3.0
R3(config‐router)# network 34.1.1.0
R3(config‐router)# network 23.1.1.0
R4
R4(config)# router rip
R4(config‐router)# network 4.4.4.0
R4(config‐router)# network 34.1.1.0
R4(config‐router)# network 41.1.1.0
3. 라우터 RIP 설정 확인
# show running‐config
4. 라우팅 정보 확인
# show ip route
완성
728x90
반응형