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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DHCP with IOS 12.0

Status
Not open for further replies.

supergino

Technical User
Apr 16, 2005
48
CA
Hey Guys,

Does anyone know how to configure DHCP on a 2611 router on an ethernet interface? I cant use the following command:

Config-if> ip address dhcp

I can only specify a static IP.

Thanks
 
This command was introduced in 12.1(2)T. So make sure your IOS support this command.



 
If you want DHCP on the LAN then you need to set the IP address on the interface, create the DHCP pool, and exclude the ip of the interface.
This is what it might look like:

ip dhcp excluded-address 10.10.10.1
!
ip dhcp pool 1
network 10.10.10.0 255.255.255.0
default-router 10.10.10.1
dns-server 204.117.241.10
!
interface Ethernet0/0
ip address 10.10.10.1 255.255.255.0
 
I believe he's talking about getting IP address for the router interface using a DHCP server.
 
I did not understand a fundamentals in Router Getting IP address from DHCP server.

Logically there should not be DHCP Ip at any interface at Router, How do I define my gateway then????

Yes you can set the router as DHCP server and JAOMON has given exact procedure.

You can also define renge for DHCP with
config#ip dhcp excluded-address 10.10.10.1 10.10.10.10

Like your file servers / web servers which have static IPs.

 
There're always situations like domestic/business broadband connections that will give you dynamic IP address allocation. There are usually 2 ways to accomplish this.

1) For PPPoE, using dialer interface and "ip address negotiated"
2) Or if PPPoE is not used, then just simply use the interface command "ip address dhcp"

You can read more on both types of configuration:


 
Hi everyone. I upgraded my IOS to 12.1 (3)T and now I have the DHCP option but it still wont negotiate a connection. I think this is an issue with my ADSL modem as its configured for a ZIPB protocol (zero IP blocking). Its supposed to assign my router a public IP address but if I plug it into my pc at home, it assigns a private IP address and does all the NAT for me which I dont want. I have to speak to my ISP because they support the modem. This would be alot easier if I had PPPoE client but no money for memory.

Thank you all for all your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top