Cisco - Problema con NAT sobrecargado

 
Vista:
Imágen de perfil de jose

Problema con NAT sobrecargado

Publicado por jose (1 intervención) el 08/04/2022 23:21:00
Buenas noches

Estoy haciendo un ejercicio con packet tracer. He de configurar una NAT sobrecarcada.

En el ejercicio me indican una dirección pública 65.0.0.15
Y la configuración de puertos del router principal

Gig0/0 30.0.0.1/8
Gig0/ 216.0.0.1/24


La configuración del router principal es
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Router_Principal#sh running-config
Building configuration...
 
Current configuration : 888 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router_Principal
!
ip cef
no ipv6 cef
!
license udi pid CISCO1941/K9 sn FTX1524247V-
!
spanning-tree mode pvst
!
interface GigabitEthernet0/0
 ip address 30.0.0.1 255.0.0.0
 ip nat outside
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 ip address 216.0.0.1 255.255.255.0
 ip nat inside
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
ip nat pool dhcp_publicas 65.0.0.15 65.0.0.15 netmask 255.0.0.0
ip nat inside source list 10 interface GigabitEthernet0/1 overload
ip classless
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0
!
ip flow-export version 9
!
!
access-list 10 permit 192.168.0.0 0.0.0.255
!
!

La red privada la he configurado como 192.168.0.0/24

Y en otro router la configuración es :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Router_SOHO>en
Router_SOHO#sh r
Router_SOHO#sh running-config
Building configuration...
 
Current configuration : 679 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router_SOHO
!
ip cef
no ipv6 cef
!
license udi pid CISCO1941/K9 sn FTX1524BLRG-
!
spanning-tree mode pvst
!
interface GigabitEthernet0/0
 ip address 30.0.0.2 255.0.0.0
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 ip address 192.168.0.1 255.255.255.0
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0
!
ip flow-export version 9
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

Los equipos hacen ping por los enrutamientos predeterminados en ambos routers.

Pero a la hora de hacer sh ip nat translation y sh ip nat statistics, parece ser que no se ha creado la nat.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Router_Principal#sh ip nat translations
Router_Principal#
Router_Principal#sh ip nat statistics
Total translations: 0 (0 static, 0 dynamic, 0 extended)
Outside Interfaces: GigabitEthernet0/0
Inside Interfaces: GigabitEthernet0/1
Hits: 0  Misses: 0
Expired translations: 0
Dynamic mappings:
-- Inside Source
access-list 10 pool dhcp_publicas refCount 0
 pool dhcp_publicas: netmask 255.0.0.0
       start 65.0.0.15 end 65.0.0.15
       type generic, total addresses 1 , allocated 0 (0%), misses 0
Router_Principal#

No se lo que estoy haciendo mal, he visionado varios videos e incluso utilizado este comando

ip nat inside source list 10 interface gig0/1 overload por ip nat inside source list 10 pool dhcp_publicas overload

Y sigo igual.

Adjunto foto de packet tracer y el pkt por si les puede servir de ayuda.

Alguien podría ayudarme !!!

Muchas gracias,
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

Problema con NAT sobrecargado

Publicado por geergon (1 intervención) el 12/08/2022 05:52:39
Hola Jose!

NO entiendo como esta la conexion entre la red 30.x.x.x. Lo que no me queda claro es por donde entran los paquetes/sockets siendo la inside interface la que tiene el nat inside command. ( el packet flow me refiero.)

GigabitEthernet0/1
ip address 216.0.0.1 255.255.255.0
ip nat inside

pero intentando seguir tu diagrama me parece que el ip nat command deberia estar invertido.
ejemplo: ip nat outside en giga0/1

Solo asi tendria sentido tener el acl 10 tal cual
access-list 10 permit 192.168.0.0 0.0.0.255

siendo que la red 192.1680.x accesaria los servidores en la red 216.0.0.x usando el source 65.0.0.15

Por lo demas: en General evita el uso del gateway con la interfaz como next hop, y usa una ip del device proximo como next hop.

ip route 0.0.0.0 0.0.0.0 30.0.0.x
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar