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

DHCP on 2500 1

Status
Not open for further replies.

jpapanik

Technical User
Mar 20, 2002
27
0
0
US
Hello all, this site has been very helpful. I have another question regarding my 2500 router. I was wondering how I can have the Ethernet port on my 2500 automatically get an IP address from the cable modem. I have IOS 12.1

Thank you for your help in advance. :-D
 
it took me a while but here it goes. First of all what 2500 do you have? The config I am giving you works for my 2514 router. E0 is connected to cable and E1 is connected to my lan.Perform a "ipconfig /all" on your computer and jot down the following: computer name, default gateway,mac -address, dns server.

E0
mac-addresss xxxx.xxxx.xxxx (mac-add from computer)
ip address dhcp client-id ethernet 0 hostname "abcd" (computer name)
ip nat outside

E1
ip address 192.100.100.1 255.255.255.0
ip nat outside

access-list 1 permit 192.168.100.0 0.0.0.255
ip nat inside source list 1 interface ethernet 0 overload
ip route 0.0.0.0 0.0.0.0 ethernet 0

now once you hook up your router to cable you will have to use a different ethernet card for your computer since you gave that mac address to the router's interface E0.
That should do it.
 
Thank you rbaxter1. I actually have 2 2500 routers. a 2501 and a 2503. The 2501 runs 12.1 IOS and the 2503 runs 11.3. The 2501 has e0 connected to cable modem and s0 connected to s0 of 2503 (with respective ip's of 10.0.1.1 and 10.0.1.2). The e0 on the 2503 connects to a 2900 switch. that was the only way i could work with 2 ethernet ports. I am finally able to ping from the serial ports but the 2501 can ping all the way internally (the switch distributes in the 192.168.xxx.xxx class) I will need to set up a static route so I can ping from within the network outside. Would the configuration that you gave me work with something like this?

Kind regards and many thanks in advance

 
I have not tried it the way you are describing but I do not see why it should not work. Were you able to get an ip address on e0 on your 2501 router?
 
I actually have not tried it yet. I will do tomorrow and let you know whether i have any other questions. Thank you very much. As a side note do you know how I can create a static route from my 10.0.1.1 subnet to the 192.168.0.1 and vise versa?

Thank you very much

jpapanik
 
static route command is as follows:

ip route 10.0.0.1 255.0.0.0 "next hop ip address"
 
ip address dhcp client-id ethernet 0 hostname "abcd" (computer name)

While everything else works this line does not ...any ideas why?

thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top