07-03-2017 04:10 PM - edited 03-05-2019 08:47 AM
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
Solved! Go to Solution.
07-03-2017 06:56 PM
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.
07-03-2017 06:56 PM
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
:-)
07-03-2017 06:56 PM
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.
07-03-2017 06:56 PM
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
:-)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide