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!

New to Cisco routers, not getting ip address 1

Status
Not open for further replies.

Amakusa42

Technical User
Dec 22, 2008
16
0
0
US
Hi everyone,

I am really really new to Cisco routers and such. I am currently studying to get my CCNA and was fortunate enough to have family members invest is some professional grade routers and switches for me.

I am currently in the process of setting up a small home network for myself. Using the IOS is fairly easy, and I got all the basic commands. I have a Cisco 2611 switch with two ethernet ports. I intend internet service to come into e0/0 and connect to my switch (catylist 2900 in port e0/1) to provide internet service to five devices (two wireless, three wired).

I do all the basic setup thru the console port (naming, hiding passwords, ect). I setup DHCP on the router, using e0/1 as the server. I am trying to get e0/0 to work, but my router won't pull an IP address from the modem.

Now, they can see each other, I know cause the line is up and protocol is up. The modem and router seem to be talking, but the router wont grab an IP address. Obviously I am missing something basic, but its so basic, I am going slighty bonkers. I am using a westell wirespeed from verizon. At first I thought it was because the modem usually saw my computer's mac address and refused to recognize anything else. But I plugged it straight into my Xbox 360 and PS3 and internet ran smoothly.

here is a readout of the interface on show run:

interface Ethernet0/0
ip address dhcp
ip irdp
no ip route-cache
full-duplex


can anyone give me some possibilities as to what it is that's causing the problem? Is there some command I have to enter to force it to pull the ip address?

Also, how do i have port e0/0 and e0/1 talk to each other?

Thank you to anyone who responds.
 
Hello
Try hard coding the IP address on the router instead of using DHCP.Then try the to ping the MODEM.The problem may be a duplex or speed mismatch.After you resolve this problem,you will have to setup NAT for the LAN to WAN communication.
Regards
 
How do you know the router won't grab an ip address? Post a sh run and sh int e0/0. For a 10MBps interface, I would hard code it for 1/2 duplex. Can you not ping the modem?
Also, the two ethernet networks will be able to communicate with eachother because they are directly connected---they know how to get to eachother. You will need NAT like Minue said and also a default route (ip route 0.0.0.0 0.0.0.0 e0/0).

Burt
 
I am using e0/0 as my connection to the modem.

Here is the show run:



version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname JohnRouter
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$A9t5$kOIQBp16kUvuciDC/1FM40
enable password $1$A9t5$kOIQBp16kUvuciDC/1FM40
!
no aaa new-model
ip subnet-zero
no ip routing
no ip cef
!
!
ip dhcp relay information trust-all
!
ip dhcp pool addresses
network 192.168.0.0 255.255.255.248
!
ip dhcp-client network-discovery informs 2 discovers 0
ip dhcp-client default-router distance 255
!
!
!
!
interface Ethernet0/0
ip address dhcp
ip accounting output-packets
no ip route-cache
half-duplex
!
interface Ethernet0/1
no ip address
no ip route-cache
full-duplex
!
no ip http server
ip classless
!
!
!
line con 0
line aux 0
line vty 0 4
password $1$A9t5$kOIQBp16kUvuciDC/1FM40
login
!
!
end

Here is the show interface:

Ethernet0/0 is up, line protocol is down
Hardware is AmdP2, address is 00d0.58b4.4940 (bia 00d0.58b4.4940)
Internet address will be negotiated using DHCP
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
reliability 209/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 00:00:08, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
54 packets output, 13698 bytes, 0 underruns
23 output errors, 0 collisions, 2 interface resets
0 babbles, 0 late collision, 0 deferred
23 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out

Every single time, it just keeps saying "ip address will be negotiated using dhcp", but no matter how many sh run or sh int I do, it ALWAYS says the same thing.

I tried shutting off modem and router, then bringing each up one at a time. At no time did the router ever show an ip address on that interface. It just kept showing: "ip address dhcp" and "ip address will be negotiated using dhcp."

Now I hardcoded an ip address and pinged the ip address that showed up in my windows ipconfig line. It worked, but I pinged the network address 192.168.0.100 which is a private ip.

Also, i tried the half duplex thing, and it STILL says that.

I know I am missing something basic...
 
Now I hardcoded an ip address and pinged the ip address that showed up in my windows ipconfig line. It worked, but I pinged the network address 192.168.0.100 which is a private ip."

That's what it WILL be! The public IP in this case will be on the outgoing modem interface!

Burt
 
Okay, but why isnt that showing up on my e0/0 interface? it literally keeps saying what you see above. In fact, it never shows an assigned ip address...
 
Do I hardcode the 192.168.0.100 ip address then use nat to bridge the connections?
 
Your line protocol is down, so it cannot get an address.
Check your cables...
Also, set the ip add to whatever, then ping google from the router...what happens?

Burt
 
Thank you for your help, everyone.

Okay, I rip. Setup nat to bridge the connections.

when i try to ping google, I get this result:

% Unrecognized host or address, or protocol not running.

Which is a little confusing, here is my sh run:

Building configuration...

Current configuration : 983 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname JohnRouter
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$A9t5$kOIQBp16kUvuciDC/1FM40
enable password $1$A9t5$kOIQBp16kUvuciDC/1FM40
!
no aaa new-model
ip subnet-zero
ip cef
!
!
ip dhcp relay information trust-all
!
ip dhcp pool mypool
network 192.168.0.0 255.255.255.0
default-router 192.168.0.101
lease infinite
!
ip dhcp-client network-discovery informs 2 discovers 0
ip dhcp-client default-router distance 255
!
!
!
!
interface Ethernet0/0
ip address dhcp
ip nat outside
half-duplex
!
interface Ethernet0/1
ip address 192.168.0.1 255.255.255.0
ip nat inside
half-duplex
!
router rip
version 1
network 192.168.0.0
!
ip nat inside source list 1 interface Ethernet0/0 overload
no ip http server
ip classless
!
!
access-list 1 permit 192.168.0.0
banner motd ^Chis is a priva^C
!
line con 0
line aux 0
line vty 0 4
password $1$A9t5$kOIQBp16kUvuciDC/1FM40
login
!
!
end

Its still not pulling an ip using DHCP. The speeds are right, half duplex. The ports are 10 not 100 as that's all this router has. here is sh int e0/0:

Ethernet0/0 is up, line protocol is down
Hardware is AmdP2, address is 00d0.58b4.4940 (bia 00d0.58b4.4940)
Internet address will be negotiated using DHCP
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
reliability 182/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 00:00:02, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
188 packets output, 43572 bytes, 0 underruns
38 output errors, 0 collisions, 4 interface resets
0 babbles, 0 late collision, 0 deferred
38 lost carrier, 0 no carrier

Protocol is down, because I have to unplug it to get online.

Now, when I plug the modem in, line protocol goes up, but it still never shows an ip address. I used nat (as you see above) to bridge the connections, and plugged the other side into my computer. Nothing.

I appreciate all the help. I must be missing something basic.
 
Are you using a straight cable or crossover? Is the modem doing PPPoE? If so, do NOT NAT. The modem will do that for you. Also, you need

ip dhcp pool mypool
import all

I would actually make a vpdn group with a dialer interface and do PPPoE in the router, and also NAT---modem in bridge mode. You will also need

ip name-server x.x.x.x
ip domain-name lookup
or
ip domain lookup

Burt
 
I am using a straight thru, and modem IS doing pppoe (whoops). I added those lines, and now my systems pull an ip address.

I believe your correct, I should use the vpdn command to use the router... one tiny problem:

JohnRouter(config-if)#vpdn enable
^
% Invalid input detected at '^' marker.

You've got to be freaking kidding me... 12.3 Cisco IOS has VPDN commands, but my specific one doesn't?

is there any other way to bridge the connection or dial in?
 
JohnRouter(config-if)#vpdn enable

No---go down a level!

JohnRouter(config)#vpdn enable

Burt
 
okay, whoopsie, thank you. Also, that doesn't work:

JohnRouter(config)#vpdn enable
^
% Invalid input detected at '^' marker.

So, is there another way?

 
The arrow is actually over the p in vpdn enable. means, for some reason, my router doesn't do it. I am not sure why.
 
There may be PPPoE enable or something...I am sure they will have config examples on Cisco's website. I can poke around later...

Burt
 
Thanks. I tried looking up other ways to setup PPPoE on a router, but I keep coming up with VPDN.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top