--------------------------------------------------------해답------------------------------------------------------

!!외부 네트워크와 통신을 위해서는 PAT 와 디폴트 라우팅 재분배가 필요하다.!! + 실습환경이 동일해야한다.
OSPF만 학습한 경우는 이 조건은 제외하고 진행하자.
라우터 기본 ip 설정은 생략
#R1
R1(config)#router ospf 1 | Process ID를 1로 ospf 설정 |
R1(config-router)#router -id 1.1.1.1 | 라우터 id 설정 |
R1(config-router)#network 192.168.40.10 a 0 R1(config-router)#network 192.168.40.193 a 0 |
area는 0이고 R1에 속한 네트워크 advertising(광고) |
#R2
R2(config)#router ospf 1 | Process ID를 1로 ospf 설정 |
R2(config-router)#router -id 2.2.2.2 | 라우터 id 설정 |
R2(config-router)#network 192.168.40.194 a 0 R2(config-router)#network 192.168.40.197 a 1 |
각 area 별로 R2에 속한 네트워크 advertising(광고) |
R2(config-router)#area 1 virtual-link 3.3.3.3 | 3.3.3.3인 라우터와 area1에서 virtual-link를 통해 연결 |
#R3
R3(config)#router ospf 1 | Process ID를 1로 ospf 설정 |
R3(config-router)#router -id 3.3.3.3 | 라우터 id 설정 |
R3(config-router)#network 192.168.40.10 a 0 R3(config-router)#network 192.168.40.193 a 0 |
각 area 별로 R2에 속한 네트워크 advertising(광고) |
R3(config-router)#area 1 virtual-link 2.2.2.2 | 2.2.2.2인 라우터와 area1에서 virtual-link를 통해 연결 |
#R4
R3(config)#router ospf 1 | Process ID를 1로 ospf 설정 |
R3(config-router)#router -id 1.1.1.1 | 라우터 id 설정 |
R3(config-router)#network 192.168.40.10 a 0 R3(config-router)#network 192.168.40.193 a 0 |
각 area 별로 R2에 속한 네트워크 advertising(광고) |
#외부와의 통신을 위한 PAT, default router 재분배
-default gateway ip : 10.0.0.1
R2
#R2 디폴트 라우터 설정
R2(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.1 | 10.0.0.1을 게이트웨이로 정적으로 설정 |
#R2 디폴트 라우터 재분배
Rouetr(config-router)#router ospf 1 | ospf 설정된 process IP로 접근 |
Rouetr(config-router)#default-information originate | 정적으로 설정된 디폴트 라우팅 정보를 재분배 |
#R2 PAT 설정
R2(config)#access-list 1 permit 192.168.40.0 0.0.0.255 | PAT할 네트워크 대역을 리스트로 작성 |
R2(config)#int f1/0 | |
R2(config)#ip nat outside | PAT outside 포트 설정 |
R2(config)#int f0/0 | |
R2(config)#ip nat inside | PAT inside 포트 설정 |
R2(config)#int f0/1 | |
R2(config)#ip nat inside | PAT inside 포트 설정 |
R2(config)#ip nat inside source list 1 int f1/0 overload | 해당 포트에 PAT 설정 |
'네트워크 > 네트워크 연습문제' 카테고리의 다른 글
DHCP 외부 라우터 연습문제 (0) | 2021.12.02 |
---|---|
VLSM + DHCP 연습문제 (0) | 2021.12.02 |
슈퍼넷팅 연습문제 (0) | 2021.12.02 |
VLSM 연습문제 (0) | 2021.12.02 |
서브넷팅 연습문제3 (0) | 2021.11.17 |