Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| networking:cisco:dynamic-nat [2026/02/05 00:00] – [Topologi] ilyasa | networking:cisco:dynamic-nat [2026/02/05 00:06] (current) – [Testing] ilyasa | ||
|---|---|---|---|
| Line 89: | Line 89: | ||
| ===== Konfigurasi ===== | ===== Konfigurasi ===== | ||
| - | | + | |
| + | | ||
| + | <code js> | ||
| + | R1(config)# | ||
| + | R1(config-if)# | ||
| + | R1(config)# | ||
| + | R1(config-if)# | ||
| + | </ | ||
| + | |||
| + | * **R1 : Membuat Pool Untuk IP Public** | ||
| + | |||
| + | <code js> | ||
| + | R1(config)# | ||
| + | </ | ||
| + | |||
| + | * **R1 : Membuat ACL untuk range ip internal** | ||
| + | |||
| + | <code js> | ||
| + | R1(config)# | ||
| + | </ | ||
| + | |||
| + | * **R1 : Mempetakan ip pool yang telah dibuat ke ip private dgn dynamic nat** | ||
| + | |||
| + | <code js> | ||
| + | R1(config)# | ||
| + | </ | ||
| + | |||
| + | ===== Testing ===== | ||
| + | * **PC1 : Test ping dan hasil capture** | ||
| < | < | ||
| - | Switch(config)# | + | PC1> ip dhcp |
| - | Switch(config-vlan)# | + | DORA IP 192.168.1.1/ |
| - | Switch(config-vlan)# | + | |
| - | Switch(config)# | + | PC1> ping 8.8.8.8 |
| - | Switch(config-vlan)#name MAGENTA | + | |
| - | Switch(config-vlan)# | + | 84 bytes from 8.8.8.8 icmp_seq=1 ttl=62 time=48.818 ms |
| + | |||
| + | PC1> ping google.com | ||
| + | google.com resolved to 142.251.175.113 | ||
| + | |||
| + | 84 bytes from 142.251.175.113 icmp_seq=1 ttl=254 time=19.530 ms | ||
| + | 84 bytes from 142.251.175.113 icmp_seq=2 ttl=254 time=26.425 ms | ||
| + | 84 bytes from 142.251.175.113 icmp_seq=3 ttl=254 time=14.858 ms | ||
| + | 84 bytes from 142.251.175.113 icmp_seq=4 ttl=254 time=15.780 ms | ||
| + | 84 bytes from 142.251.175.113 icmp_seq=5 ttl=254 time=11.737 ms | ||
| </ | </ | ||
| - | | + | {{ : |
| + | |||
| + | * **PC2 : Test ping dan hasil capture** | ||
| < | < | ||
| - | Switch(config)# | + | PC2> ip dhcp |
| - | Switch(config-if)# | + | DORA IP 192.168.1.2/24 GW 192.168.1.254 |
| - | Switch(config-if)# | + | |
| - | Switch(config-if)# | + | |
| - | Switch(config)# | + | PC2> ping 8.8.8.8 |
| - | Switch(config-if)# | + | |
| - | Switch(config-if)# | + | 84 bytes from 8.8.8.8 icmp_seq=1 ttl=62 time=29.733 ms |
| - | Switch(config-if)#exit | + | |
| + | PC2> ping google.com | ||
| + | google.com resolved to 142.251.175.113 | ||
| + | |||
| + | 84 bytes from 142.251.175.113 icmp_seq=1 ttl=254 time=20.108 ms | ||
| </ | </ | ||
| - | ===== Testing ===== | + | {{ : |
| + | |||
| + | * **PC3 : Test ping dan hasil capture** | ||
| + | |||
| + | < | ||
| + | PC3> ip dhcp | ||
| + | DORA IP 192.168.1.3/ | ||
| + | |||
| + | PC3> ping 8.8.8.8 -c 1 | ||
| + | |||
| + | 84 bytes from 8.8.8.8 icmp_seq=1 ttl=62 time=26.725 ms | ||
| + | |||
| + | PC3> ping google.com -c 1 | ||
| + | google.com resolved to 142.251.175.113 | ||
| + | |||
| + | 84 bytes from 142.251.175.113 icmp_seq=1 ttl=254 time=19.783 ms | ||
| + | </ | ||
| + | {{ : | ||
| + | |||
| + | * **R1 : logs nat translations** | ||
| + | <code js> | ||
| + | R1#show ip nat translations | ||
| + | Pro Inside global | ||
| + | udp 100.0.0.1: | ||
| + | icmp 100.0.0.1: | ||
| + | icmp 100.0.0.1: | ||
| + | icmp 100.0.0.1: | ||
| + | icmp 100.0.0.1: | ||
| + | icmp 100.0.0.1: | ||
| + | --- 100.0.0.1 | ||
| + | --- 100.0.0.3 | ||
| + | udp 100.0.0.2: | ||
| + | icmp 100.0.0.2: | ||
| + | --- 100.0.0.2 | ||
| + | </ | ||