Lab Cisco - Settingan NAT Static di router cisco
Topologi Jaringan - Settingan NAT Static Router Cisco |
Mengganti Hostname
Router>enable
Router#conf t
Router(config)#hostname R1
Menambahkan Password
R1(config)#enable secret fauzan
Menambahakan IP Interface g0/0
R1(config)#int g0/0
R1(config-if)#ip address dhcp
R1(config-if)#no shutdown
R1(config-if)#end
Pengujian IP untuk Interface g0/0
R1#show ip int brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 192.168.24.148 YES DHCP up up
GigabitEthernet0/1 unassigned YES unset administratively down down
GigabitEthernet0/2 unassigned YES unset administratively down down
GigabitEthernet0/3 unassigned YES unset administratively down down
R1#ping 192.168.24.148
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.24.148, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R1#ping google.com
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 216.239.38.120, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 42/42/43 ms
Settingan NAT Outside g0/0
R1#conf t
R1(config)#int g0/0
R1(config-if)#ip nat outside
R1(config-if)#exit
#####Konfigurasi IP Address g0/1#######
R1(config)#interface g0/1
R1(config-if)#ip address 192.168.10.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
Konfigurasi DHCP-Server g0/1
R1(config)#service dhcp
R1(config)#ip dhcp pool smk
R1(dhcp-config)#network 192.168.10.0 255.255.255.0
R1(dhcp-config)#default-router 192.168.10.1
R1(dhcp-config)#dns-server 192.168.10.1 8.8.8.8
R1(dhcp-config)#exit
R1(config)#ip dhcp excluded-address 192.168.10.1 192.168.10.10
R1(config)#exit
Melihat Settingan Interface dan IP Address
R1#show ip int brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 192.168.24.148 YES DHCP up up
GigabitEthernet0/1 192.168.10.1 YES manual up up
GigabitEthernet0/2 unassigned YES unset administratively down down
GigabitEthernet0/3 unassigned YES unset administratively down down
NVI0 192.168.24.148 YES unset up up
R1#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is 192.168.24.1 to network 0.0.0.0
S* 0.0.0.0/0 [254/0] via 192.168.24.1
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, GigabitEthernet0/1
L 192.168.10.1/32 is directly connected, GigabitEthernet0/1
192.168.24.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.24.0/24 is directly connected, GigabitEthernet0/0
L 192.168.24.148/32 is directly connected, GigabitEthernet0/0
Settingan NAT g0/1
R1#configure t
R1(config)#interface g0/1
R1(config)#ip nat inside source static 192.168.10.11 192.168.24.148
R1(config)#exit
R1# show ip nat translations
Pro Inside global Inside local Outside local Outside global
--- 192.168.24.148 192.168.10.11 --- ---
R1#copy running-config startup-config
Selanjutnya pengujian dari sisi Client.
Selesai
0 Response to "Lab Cisco - Settingan NAT Static di router cisco"
Post a Comment
Silahkan Kirim Komentas yang membangun,,,tidak mengandung SARA