cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
450
Views
0
Helpful
4
Replies

DHCP NAT help

gonzalezel
Level 1
Level 1

I am trying to have my router hand out dhcp private addresses and have those natted to the public network. Here is what I have so far. I believe i am missing the acl but have no idea what is would look like.

Current configuration : 878 bytes

!

version 12.3

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname Efrain

!

boot-start-marker

boot-end-marker

!

!

no network-clock-participate slot 1

no network-clock-participate wic 0

no aaa new-model

ip subnet-zero

ip cef

!

ip dhcp excluded-address 192.168.1.1 192.168.1.40

!

ip dhcp pool Chiefs

network 192.168.1.0 255.255.255.0

default-router 192.168.1.1

dns-server 192.168.1.5

!

ip dhcp pool chiefs

domain-name kcpl

lease 15 23 59

!

!

interface FastEthernet0/0

ip address 144.x.x.1 255.255.255.0

ip nat outside

duplex auto

speed auto

!

interface Serial0/0

no ip address

shutdown

!

interface FastEthernet0/1

ip address 192.168.1.20 255.255.255.0

ip nat inside

duplex auto

speed auto

!

ip http server

ip classless

!

!

line con 0

line aux 0

line vty 0 4

login

!

!

4 Replies 4

mzsrtgzr_cisco
Level 1
Level 1

hey,

The dhcp process doesn't interfere with nat.

in this answer i'll be assuming that you want to overload the inside addresses.

1st: configure access-list for your "inside"

access-list 1 permit 192.168.1.0 0.0.0.255

2nd: configure the global nat statement:

ip nat inside source list 1 interface f0/0 overload

i hope this helps

thanks for your help, I'm really confused but starting to understand this. How would I go about testing this when all I have is 2 2621xm and a laptop?

laptop --> with cross cable --> router f0/1.

then plug f0/0 with a cross to the other router.

I did this and was able to receive private dhcp but I don't get anything when doing "sh ip nat translations" on the router, is this correct?

Review Cisco Networking products for a $25 gift card