Escolar Documentos
Profissional Documentos
Cultura Documentos
TOPOLOGIA
Objectives
Part 1: Test Access without NAT
Part 2: Configure Static NAT
Part 3: Test Access with NAT
Scenario
In IPv4 configured networks, clients and servers use private addressing. Before
packets with private addressing can cross then Internet, they need to be translated
to public addressing. Servers that are accessed from outside the organization are
usually assigned both a public and a private static IP address. In this activity, you
will configure static NAT so that outside devices can access and inside server at its
public address.
Se realiza ping desde el PC1 a la interface serial 0/0/0 del R1 la cual tiene ip
209.165.128.130 donde la respuesta a la interface es exitosa.
interface Serial0/0/0
ip address 209.165.128.130 255.255.255.248
clock rate 2000000
b. Verify that the routing table does not contain entries referring to the IP
addresses used by PC1 and L1.
c. R1#show ip route
d. Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
e. D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
f. N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
g. E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
h. i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
i. * - candidate default, U - per-user static route, o - ODR
j. P - periodic downloaded static route
k.
l. Gateway of last resort is not set
m.
n. 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
o. C 172.16.16.0/28 is directly connected, GigabitEthernet0/0
p. L 172.16.16.14/32 is directly connected, GigabitEthernet0/0
q. 209.165.128.0/24 is variably subnetted, 2 subnets, 2 masks
r. C 209.165.128.128/29 is directly connected, Serial0/0/0
s. L 209.165.128.130/32 is directly connected, Serial0/0/0
Las anteriores Son las redes y de acuerdo a la informacin de las redes
Refer to the Topology. Create a static NAT translation to map the Server1 inside
address to its outside address. Este comando asocio la ip privada de nuestro
equipo con la publica.
R1>
R1>enable
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip nat inside source static 172.16.16.1 64.100.50.1
R1(config)#end
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#copy r
R1#copy running-config s
R1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R1#
R1#
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface g0/0
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#interface s0/0/0
R1(config-if)#ip nat outside
R1(config-if)#end
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R1#
#show running-config
interface GigabitEthernet0/0
ip address 172.16.16.14 255.255.255.240
ip nat inside
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/2
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
ip address 209.165.128.130 255.255.255.248
ip nat outside
clock rate 2000000
!
interface Serial0/0/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip nat inside source static 172.16.16.1 64.100.50.1
ip classless
Podemos ver que translation esta realizando desde donde viene hasta donde
debe llegar
Los ejemplos de este documento muestran que los pasos de inicio rpido
Pueden ayudarle a configurar y desplegar NAT. Dichos pasos de inicio rpido
incluyen: