Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to get NAT and "ip address dhcp" working

Status
Not open for further replies.
May 25, 2003
24
AU
On my 1751 router I setup ethernet port e 1/0 to get it's ip address from a DHCP server using the below commands

Ip address dhcp
no shut
ip nat outside

What I don't understand is why it's not being assigned a IP address? What I'm trying to setup Lan in my office using NAT to translation. Even when I put a static address on E 1/0 I'm not getting pass the 1751 Router

sh run
Building configuration...

Current configuration : 633 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
!
memory-size iomem 15
ip subnet-zero
!
!
!
!
interface FastEthernet0/0
ip address 192.168.3.1 255.255.255.0
ip nat inside
speed auto
!
interface Ethernet1/0
ip address 192.168.2.253 255.255.255.0
ip nat outside
full-duplex
!
ip nat pool natpool 192.168.2.253 192.168.2.253 netmask 255.255.255.0
ip nat inside source list 10 interface Ethernet1/0 overload
ip classless
no ip http server
!
access-list 10 permit 192.168.3.0 0.0.0.255
!
line con 0
line aux 0
line vty 0 4
!
no scheduler allocate
end


Thanks in advance
 
Not really sure what to use as a default route. Would it be for example :

ip route 0.0.0.0 0.0.0.0 192.168.2.253

or

ip route 192.168.3.0 255.255.255.0 192.168.2.253


or 0.0.0.0 0.0.0.0 e 1/0

Thanks
 
would be like the next hop
ip route 0.0.0.0 0.0.0.0 192.168.2.252
assuming that 192.168.2.252 is the next hop
 
So what you're saying is the outside interface in this case the ip address of E1/0 which is address 192.168.2.253 255.255.255.0 would be the next hop?
 
Ignore my 20:37 update

So what you're saying is the outside interface in this case the ip address of E1/0 which is address 192.168.2.252 255.255.255.0 would be the next hop?
 
The next hop would be the IP address of whatever's plugged into the "wan" end of the router. I think you need to explain what's plugged into both router ports in a bit more detail, and what network is what.
 
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.2.253
%Invalid next hop address (it's this router)
Router(config)#


WallJack----------E1/0 router FA0/0-------2950Switch
192.168.2.253 192.168.3.1 192.168.3.2

Hopes this helps, Thanks
 
what you are looking for is the gateway what ever you would use if you did not have the router there like you just had a computer there that would be your next hop
 
I'll have to try that tomorrow, I believe I tried that but I'm not 100% sure. In my office computer the gateway is 192.168.2.3, so I'll use that as the default route. I can't believe how much trouble, what I think of as a simple configuration is causing. Oh well Thank for you help
 
Your default route should point to the IP address of whatever is hiding on the other end of the wire going into the wall jack. :) You haven't chosen to share with us what is there.

This could be a cable modem, DSL modem, or something else provided by your ISP.
 
do you need to get an ip address from your ISP on E1/0??
you might want to use speed 10mb half duplex for the port settings.
Is there another dhcp server in your network that will give ip addresses to the hosts? Or is the router that suppose to do? As I don't see a dhcp pool configured.

CCNA, CCNP..partly ;)
 
Damm wic card was faulty. I have a established command in my access-list which prevents me from using my nortel and cisco VPN any ideas?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top