DHCP and default GW

Have a question or want to start a discussion? Post it! No Registration Necessary.  Now with pictures!

Threaded View
Hi,

i have the following problem: I have eth1 connected to Internet, an IP
address is assigned via DHCP. Eth0 is connected to LAN and it has
staticly assigned IP address. How to configure router to receive default
route from the DHCP server?

my configuration is as follows:

!
interface Ethernet0/0
  ip address 192.168.1.1 255.255.255.0
  no ip redirects
  no ip unreachables
  no ip proxy-arp
  ip nat inside
  no ip mroute-cache
  half-duplex
  random-detect
  no cdp enable
!
interface Ethernet0/1
  ip address dhcp
  no ip redirects
  no ip unreachables
  no ip proxy-arp
  ip nat outside
  no ip mroute-cache
  half-duplex
  no cdp enable
!
ip nat inside source list 1 interface Ethernet0/1 overload
access-list 1 permit 192.168.1.0 0.0.0.255

How to configure default route via DHCP?

Regards,
Fibre Optic

Re: DHCP and default GW
You don't, it is a default route for your internal network and it gets
routing information from the next hop, which will be the isp, it gets ip
address, DNS server, and gateway address from the isp dhcp server
automatically.
So what is the problem? what's happening? (or not)
Quoted text here. Click to load it



Re: DHCP and default GW
Den wrote:
Quoted text here. Click to load it

!
interface Ethernet0/1
ip address dhcp
!

I do see that an IP has been assigned but route table is not modified
thus the question, i do not see default root.How it should be configured?



Quoted text here. Click to load it

Re: DHCP and default GW
On Wed, 31 Jan 2007, Fibre Optic wrote:

Quoted text here. Click to load it
You can set a default route pointing to Ethernet0/1.

Doan

Quoted text here. Click to load it


Re: DHCP and default GW
Doan napisaƂ(a):
Quoted text here. Click to load it

I have resolved the problem i made a simple mistake, i was simply tired.
  Tank you for your prompt answer!

Regards,
Fibre Optic

Site Timeline