Static Route 실습
네트워크
10.1.2.0/24
10.1.3.0/24
10.1.4.0/24
10.1.5.0/24
100.100.100.0/24
R1
ip route 10.1.4.0 255.255.255.0 10.1.1.2
ip route 10.1.3.0 255.255.255.0 10.1.1.4
ip route 10.1.5.0 255.255.255.0 10.1.1.2
ip route 0.0.0.0 0.0.0.0 10.1.1.1
R2
ip route 10.1.2.0 255.255.255.0 10.1.1.3
ip route 10.1.4.0 255.255.255.0 10.1.1.2
ip route 10.1.5.0 255.255.255.0 10.1.1.2
ip route 0.0.0.0 0.0.0.0 10.1.1.1
WAN
ip route 10.1.2.0 255.255.255.0 10.1.1.3
ip route 10.1.3.0 255.255.255.0 10.1.1.4
ip route 10.1.5.0 255.255.255.0 10.1.4.1
ip route 0.0.0.0 0.0.0.0 10.1.1.1
대전
ip route 0.0.0.0 0.0.0.0 10.1.4.2
인터넷
ip route 10.1.2.0 255.255.255.0 10.1.1.3
ip route 10.1.3.0 255.255.255.0 10.1.1.4
ip route 10.1.4.0 255.255.255.0 10.1.1.2
ip route 10.1.5.0 255.255.255.0 10.1.1.2
ip route 0.0.0.0 0.0.0.0 100.100.100.1
ISP
ip route 10.0.0.0 255.0.0.0 100.100.100.2
Static + NAT 실습
네트워크
10.1.1.0/24
10.1.2.0/24
10.1.3.0/24
10.1.4.0/24
10.1.5.0/24
10.1.6.0/24
100.100.100.0/24
33.3.3.0/24
R1
ip route 10.1.4.0 255.255.255.0 10.1.2.3
ip route 10.1.5.0 255.255.255.0 10.1.2.4
ip route 10.1.6.0 255.255.255.0 10.1.2.4
ip route 0.0.0.0 0.0.0.0 10.1.1.1
R2
ip route 10.1.3.0 255.255.255.0 10.1.2.2
ip route 10.1.4.0 255.255.255.0 10.1.5.2
ip route 10.1.6.0 255.255.255.0 10.1.5.2
ip route 0.0.0.0 0.0.0.0 10.1.2.1
R3
ip route 10.1.3.0 255.255.255.0 10.1.2.2
ip route 10.1.5.0 255.255.255.0 10.1.4.2
ip route 10.1.6.0 255.255.255.0 10.1.4.2
ip route 0.0.0.0 0.0.0.0 10.1.1.1
R4
ip route 10.1.1.0 255.255.255.0 10.1.4.1
ip route 10.1.2.0 255.255.255.0 10.1.4.1
ip route 10.1.3.0 255.255.255.0 10.1.5.1
ip route 0.0.0.0 0.0.0.0 10.1.4.1
인터넷
interface FastEthernet0/0
ip address 100.100.100.2 255.255.255.0
ip nat outside
interface FastEthernet0/1
ip address 10.1.1.1 255.255.255.0
ip nat inside
interface FastEthernet1/0
ip address 10.1.2.1 255.255.255.0
ip nat inside
ip route 10.1.3.0 255.255.255.0 10.1.1.2
ip route 10.1.4.0 255.255.255.0 10.1.1.3
ip route 10.1.5.0 255.255.255.0 10.1.1.4
ip route 10.1.6.0 255.255.255.0 10.1.1.4
ip route 0.0.0.0 0.0.0.0 100.100.100.1
access-list 7 permit 10.0.0.0 0.255.255.255
ip nat inside source list 7 interface FastEthernet0/0 overload
ISP
interface FastEthernet0/0
ip address 33.3.3.1 255.255.255.0
interface FastEthernet0/1
ip address 100.100.100.1 255.255.255.0
멀티플 커넥션
한 목적지로 가는 경로가 2개 이상일 경우이다.
Static 으로 지정하면 안 된다.
=> 직접 연결된 곳이 아니라, Next-hop 그 다음의 인터페이스가 죽어버렸을 경우에는 현재 라우터에서 알 길이 없다.
=> 따라서, 멀티플 커넥션에서는 환경에 맞춰 Dynamic으로 적용시키는 Routing protocol을 사용해야 한다.
다만, Static Route가 단점만 있는 것은 아니다. 아래 3가지가 Dynamic보다 우수하다.
1. 가용성
2. 속도
3. 보안
=> Single Connection 환경에서는 Static 권장
멀티플 커넥션 실습
* Redistribute static 명령어 사용 (eigrp 업데이트를 보낼 때, 내 라우팅 테이블 데이터를 포함해서 보내줘)
ISP
ip route 10.0.0.0 255.0.0.0 100.100.100.2
인터넷
router eigrp 100
redistribute static
network 10.1.1.0 0.0.0.255
network 10.1.2.0 0.0.0.255
ip route 0.0.0.0 0.0.0.0 100.100.100.1
M1
router eigrp 100
network 10.1.1.0 0.0.0.255
network 10.1.2.0 0.0.0.255
M2
router eigrp 100
network 10.1.1.0 0.0.0.255
network 10.1.2.0 0.0.0.255
WAN
ip route 10.1.4.0 255.255.255.0 10.1.3.1
대전
ip route 0.0.0.0 0.0.0.0 10.1.3.2
OSPF 실습
=> 방금 전의 eigrp 설정을 없애고, ospf 로 바꾼다.
인터넷
router ospf 100
log-adjacency-changes
network 10.0.0.0 0.255.255.255 area 0
default-information originate
WAN
router ospf 100
log-adjacency-changes
redistribute static subnets
network 10.0.0.0 0.255.255.255 area 0
M1
router ospf 100
log-adjacency-changes
network 10.0.0.0 0.255.255.255 area 0
M2
router ospf 100
log-adjacency-changes
network 10.0.0.0 0.255.255.255 area 0
'ㄴ CCNA' 카테고리의 다른 글
7월 19일 (컨버전스 타임, Zone-based 종합 실습) (0) | 2022.07.19 |
---|---|
7월 18일 (OSPF 이론, BGP실습) (0) | 2022.07.18 |
7월 14일 (STP, Etherchannel, HSRP) (0) | 2022.07.14 |
7월 12일 (VLAN, DHCP) (0) | 2022.07.12 |
7월 11일 (T2-3, TCP/UDP - 이중호 강사님) (1) | 2022.07.11 |