2025. 6. 23. 11:27ㆍCS/CCNA

R1>en
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int g0/0
R1(config-if)#ip nat outside
R1(config-if)#int g0/1
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#ip nat inside source static 172.16.0.1 100.0.0.1
R1(config)#ip nat inside source static 172.16.0.2 100.0.0.2
R1(config)#ip nat inside source static 172.16.0.3 100.0.0.3
R1(config)#exit
R1#show ip nat translations
Pro Inside global Inside local Outside local Outside global
--- 100.0.0.1 172.16.0.1 --- ---
--- 100.0.0.2 172.16.0.2 --- ---
--- 100.0.0.3 172.16.0.3 --- ---
R1#show ip nat statistics
Total translations: 3 (3 static, 0 dynamic, 0 extended)
Outside Interfaces: GigabitEthernet0/0
Inside Interfaces: GigabitEthernet0/1
Hits: 0 Misses: 0
Expired translations: 0
Dynamic mappings:
//after ping from each PCs
R1#show ip nat translations
Pro Inside global Inside local Outside local Outside global
icmp 100.0.0.1:10 172.16.0.1:10 172.217.175.238:10 172.217.175.238:10
icmp 100.0.0.1:11 172.16.0.1:11 172.217.175.238:11 172.217.175.238:11
icmp 100.0.0.1:12 172.16.0.1:12 172.217.175.238:12 172.217.175.238:12
icmp 100.0.0.1:6 172.16.0.1:6 8.8.8.8:6 8.8.8.8:6
icmp 100.0.0.1:7 172.16.0.1:7 8.8.8.8:7 8.8.8.8:7
icmp 100.0.0.1:8 172.16.0.1:8 8.8.8.8:8 8.8.8.8:8
icmp 100.0.0.1:9 172.16.0.1:9 172.217.175.238:9 172.217.175.238:9
icmp 100.0.0.2:1 172.16.0.2:1 172.217.175.238:1 172.217.175.238:1
icmp 100.0.0.2:2 172.16.0.2:2 172.217.175.238:2 172.217.175.238:2
icmp 100.0.0.2:3 172.16.0.2:3 172.217.175.238:3 172.217.175.238:3
icmp 100.0.0.2:4 172.16.0.2:4 172.217.175.238:4 172.217.175.238:4
icmp 100.0.0.3:1 172.16.0.3:1 172.217.175.238:1 172.217.175.238:1
icmp 100.0.0.3:2 172.16.0.3:2 172.217.175.238:2 172.217.175.238:2
icmp 100.0.0.3:3 172.16.0.3:3 172.217.175.238:3 172.217.175.238:3
icmp 100.0.0.3:4 172.16.0.3:4 172.217.175.238:4 172.217.175.238:4
--- 100.0.0.1 172.16.0.1 --- ---
--- 100.0.0.2 172.16.0.2 --- ---
--- 100.0.0.3 172.16.0.3 --- ---
udp 100.0.0.1:1025 172.16.0.1:1025 8.8.8.8:53 8.8.8.8:53
udp 100.0.0.2:1025 172.16.0.2:1025 8.8.8.8:53 8.8.8.8:53
udp 100.0.0.3:1025 172.16.0.3:1025 8.8.8.8:53 8.8.8.8:53
// UDP from ping 'google.com' (using domain name)
R1#clear ip nat translation *
R1#show ip nat translations
Pro Inside global Inside local Outside local Outside global
--- 100.0.0.1 172.16.0.1 --- ---
--- 100.0.0.2 172.16.0.2 --- ---
--- 100.0.0.3 172.16.0.3 --- ---
// only static addresses remain
'CS > CCNA' 카테고리의 다른 글
| CCNA 취득 후기 및 점수 확인 방법 (-2025.06.13) (6) | 2025.07.03 |
|---|---|
| <Jeremy's IT Lab> Day 43: FTP & TFTP (3) | 2025.06.20 |
| <Jeremy's IT Lab> Day 31: IPv6 (part 1) (2) | 2025.05.03 |
| <Jeremy's IT Lab> Day 30: TCP & UDP (0) | 2025.05.02 |
| <Jeremy's IT Lab> Day 29: FHRP(First Hop Redundancy Protocols) (0) | 2025.05.02 |