DAY4


DAY4

라우터 설정 심화


[R1]
config t
hostname jjcom
interface fastethernet0/0
ip address 192.168.0.254 255.255.255.0
no shutdown
exit
interface fastethernet0/0.2
encapsulation dot1q 2
ip address 192.168.1.254 255.255.255.0
no shutdown
exit
config t
interface serial1/0
ip address 1.1.1.37 255.255.255.252
no shutdown
exit

show running-config
show ip interface brief


*라우팅 테이블
ip route 192.168.2.0 255.255.255.0 1.1.1.38


[R2]
config t
hostname JYB
interface fastethernet0/0
ip address 192.168.2.254 255.255.255.0
no shutdown
exit
config t
interface serial1/0
ip address 1.1.1.38 255.255.255.252
no shutdown
exit


*라우팅 테이블
ip route 192.168.0.0 255.255.255.0 1.1.1.37
ip route 192.168.1.0 255.255.255.0 1.1.1.37

(or ip route 0.0.0.0 0.0.0.0 1.1.1.37)




Bootstrap Example

동적 라우팅

[RIP]
[R1]
config t
hostname R1
interface fastethernet0/0
ip address 192.168.0.254 255.255.255.0
no shutdown
exit
interface serial1/0
ip address 1.1.1.1 255.255.255.252
no shutdown
exit
router rip
version 2
network 192.168.0.0
network 1.1.1.0

[R2]
config t
interface serial1/0
ip address 1.1.1.2 255.255.255.252
no shutdown
exit
interface serial1/1
ip address 2.2.2.1 255.255.255.252
no shutdown
router rip
version 2
network 1.1.1.0
network 2.2.2.0

[R3]
config t
interface serial1/0
ip address 3.3.3.1 255.255.255.252
no shutdown
exit
interface serial1/1
ip address 2.2.2.2 255.255.255.252
no shutdown
router rip
version 2
network 2.2.2.0
network 3.3.3.0

[R4]
config t
interface serial1/0
ip address 3.3.3.2 255.255.255.252
no shutdown
exit
interface serial1/1
ip address 4.4.4.1 255.255.255.252
no shutdown
router rip
version 2
network 3.3.3.0
network 4.4.4.0
[R5] config t
hostname R1
interface fastethernet0/0
ip address 192.168.1.254 255.255.255.0
no shutdown
exit
interface serial1/1
ip address 4.4.4.2 255.255.255.252
no shutdown
exit
router rip
version 2
network 192.168.1.0
network 4.4.4.0


Bootstrap Example

정적라우팅

[R1]
config t
hostname R1
interface fastethernet0/0
ip address 192.168.0.254 255.255.255.0
no shutdown
exit
interface serial1/0
ip address 1.1.1.1 255.255.255.252
no shutdown
exit
ip route 192.168.1.0 255.255.255.0 1.1.1.2

[R2]
config t
interface serial1/0
ip address 1.1.1.2 255.255.255.252
no shutdown
exit
interface serial1/1
ip address 2.2.2.1 255.255.255.252
no shutdown
exit
ip route 192.168.1.0 255.255.255.0 2.2.2.2
ip route 192.168.0.0 255.255.255.0 1.1.1.1

[R3]
config t
interface serial1/0
ip address 3.3.3.1 255.255.255.252
no shutdown
exit
interface serial1/1
ip address 2.2.2.2 255.255.255.252
no shutdown
exit
ip route 192.168.1.0 255.255.255.0 3.3.3.2
ip route 192.168.0.0 255.255.255.0 2.2.2.1

[R4]
interface fastethernet0/0
ip address 192.168.1.254 255.255.255.0
no shutdown
exit
config t interface serial1/0
ip address 3.3.3.2 255.255.255.252
no shutdown
exit
interface serial1/1
ip address 4.4.4.1 255.255.255.252
no shutdown
exit
ip route 192.168.1.0 255.255.255.0 4.4.4.2
ip route 192.168.0.0 255.255.255.0 3.3.3.1

[R5]
config t
interface serial1/0
ip address 5.5.5.1 255.255.255.252
no shutdown
exit
interface serial1/1
ip address 4.4.4.2 255.255.255.252
no shutdown
exit
ip route 192.168.1.0 255.255.255.0 5.5.5.2
ip route 192.168.0.0 255.255.255.0 4.4.4.1

*RIP 특징
- 30초마다 변화된 내용 업데이트
- 속도 느림
- 15개 이상 라우터 사용 불가능
*OSPF 특징
- 중대규모 네트워크에 가장 많이 사용
- 라우팅 정보 업데이트 224.0.0.5 224.0.0.6 멀티캐스트
- 프로토콜 번호 89번 사용
- 경로 상태 변화: 변화된 내용만 업데이트
- 업데이트 할 내용이 없음: 30분 간격으로 링크 상태 재확인