티스토리 뷰

Default
[ISP]
int f1/0
no sh
mac-address 40ab.26b4.ed16
ip add dhcp
int f0/1
no sh
ip add 1.1.12.9 255.255.255.0
exit
int f0/0
no sh
ip add 24.24.10.254 255.255.255.0
exit
[R2]
int f0/1
no sh
ip add 1.1.12.10 255.255.255.0
exit
int f0/0
no sh
ip add 1.1.30.254 255.255.255.0
exit
ROUTING
[ISP]
ip route 0.0.0.0 0.0.0.0 FastEthernet1/0 10.0.0.1
ip route 1.1.30.0 255.255.255.0 FastEthernet0/1 1.1.12.10
#10.0.0.1 은 내 PC네트워크 기본 게이트웨이 이다.#
[R2]
ip route 0.0.0.0 0.0.0.0 f0/1 1.1.12.9
NAT_PT
[ISP]
access-list 10 permit 1.1.30.0 0.0.0.255
access-list 10 permit 24.24.10.0 0.0.0.255
ip nat inside source list 10 int f1/0 overload
int f1/0
ip nat outside
exit
int range f0/0 - 1
ip nat inside
exit
## named방식이라면 ##
ip access-list standard NAT10
permit 1.1.30.0 0.0.0.255
permit 24.24.10.0 0.0.0.255
ip nat inside source list 10 int f1/0 overload
####################
DHCP
[ISP]
ip dhcp pool NET24
network 24.24.10.0 255.255.255.0
dns-server 168.126.63.1
default-router 24.24.10.254
lease 8
class N24
address range 24.24.10.1 24.24.10.253
exit
ip dhcp pool NET1
network 1.1.30.0 255.255.255.0
default-router 1.1.30.254
dns-server 168.126.63.1
lease 8
class N1
address range 1.1.30.1 1.1.30.253
exit
int f0/0
ip dhcp client class-id N24
exit
int f0/1
ip dhcp client class-id 1
exit
[R2]
int f0/0
ip helper-address 1.1.12.9
exit
[PC1]
no ip routing
int f0/0
no sh
ip add dhcp
exit
##디스커버를 보냄##
[PC2]
no ip routing
int f0/0
no sh
ip add dhcp
exit
## RIP v2 ROUTING ##
[ISP]
router rip
ver 2
net 1.0.0.0
net 24.0.0.0 (PC1 PC2 통신목적)
no auto
passive f0/0
default-information originate (...)
exit
[R2]
router rip
ver 2
net 1.0.0.0
net 24.0.0.0
no auto
passive f0/0
exit
'네트워크 > LAB실습 및 이론' 카테고리의 다른 글
| [keduit]EIGRP 기초2 -2023/03/28 (0) | 2023.03.28 |
|---|---|
| [keduit]EIGRP 기초, EIGRP-RIP혼합 -2023/03/28 (0) | 2023.03.28 |
| IPv6 라우팅 (0) | 2023.03.23 |
| [keduit]Extended Access-list -2023/03/22 (0) | 2023.03.22 |
| [keduit]DHCP 보강 -2023/03/17 (0) | 2023.03.17 |