cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
607
Views
0
Helpful
2
Replies

Router for Internet

pablo.arcelcr
Level 1
Level 1

Hi,

I have the following information:

ISP provideme the following:

WAN 201.199.102.4/30

LAN 201.199.200.48/28

also I need to create a DHCP server with this IP address 10.10.10.0/24 and Gi0/1 should have IP address 10.10.10.1

What would be the configuration of the router to provide access to the device I connect at interface G0/1?

Thanks

2 Accepted Solutions

Accepted Solutions

conf t

!
interface GigabitEthernet0/0
description WAN INTERFACE
ip address 201.199.102.x 255.255.255.252 (verify if you are .5 or .6 with your ISP)
ip nat outside
no shutdown
!
interface GigabitEthernet0/1
description LAN INTERFACE
ip address 10.10.10.1 255.255.255.0
ip nat inside
no shutdown
!
ip route 0.0.0.0 0.0.0.0 201.199.102.x (replace .x with your ISP's IP address)

!
ip nat inside source list NAT-INSIDE-LOCAL interface GigabitEthernet0/0 overload
!
ip access-list extended NAT-INSIDE-LOCAL
permit ip 10.10.10.0 0.0.0.255
!

!
ip dhcp excluded-address 10.10.10.1 10.10.10.10
ip dhcp pool LAN
network 10.10.10.0 255.255.255.0
default-router 10.10.10.1
dns-server 8.8.8.8
!

Make sure you know you are doing when modifying the configuration of a Router in a production environment. This is just my personal recommendation.

View solution in original post

Just adding to the Hector's configuration:

interface GigabitEthernet0/0
description WAN INTERFACE
ip address 201.199.102.x 255.255.255.252
ip nat outside
no shutdown
!
interface GigabitEthernet0/1
description LAN INTERFACE
ip address 10.10.10.1 255.255.255.0
ip nat inside
no shutdown

:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

View solution in original post

2 Replies 2

conf t

!
interface GigabitEthernet0/0
description WAN INTERFACE
ip address 201.199.102.x 255.255.255.252 (verify if you are .5 or .6 with your ISP)
ip nat outside
no shutdown
!
interface GigabitEthernet0/1
description LAN INTERFACE
ip address 10.10.10.1 255.255.255.0
ip nat inside
no shutdown
!
ip route 0.0.0.0 0.0.0.0 201.199.102.x (replace .x with your ISP's IP address)

!
ip nat inside source list NAT-INSIDE-LOCAL interface GigabitEthernet0/0 overload
!
ip access-list extended NAT-INSIDE-LOCAL
permit ip 10.10.10.0 0.0.0.255
!

!
ip dhcp excluded-address 10.10.10.1 10.10.10.10
ip dhcp pool LAN
network 10.10.10.0 255.255.255.0
default-router 10.10.10.1
dns-server 8.8.8.8
!

Make sure you know you are doing when modifying the configuration of a Router in a production environment. This is just my personal recommendation.

Just adding to the Hector's configuration:

interface GigabitEthernet0/0
description WAN INTERFACE
ip address 201.199.102.x 255.255.255.252
ip nat outside
no shutdown
!
interface GigabitEthernet0/1
description LAN INTERFACE
ip address 10.10.10.1 255.255.255.0
ip nat inside
no shutdown

:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<