Cannot get IP from new router

Asked by Michael Van Vlack

I just put a Belkin wireless router into my home network replacing a no name wired router that assigned DHCP addresses fine. I cannot get an IP address via DHCP on my Ubuntu Linux box that is wired to the router although all the widows machines work wired or wireless. The router's logs show the mac address of my nic and show a DCHP discover,Offer and Ack for 192.168.2.6, but the Linux machine does not show the ip when i do a ifconfig. If i do ifdown/up I see Discovers but it says no offers received and times out. I have 2 nics in the box and see the same whichever one I connect the cable to. The router shows the mac of whichever nic I use and tries to give it 192.168.2.6 but my Linux machine does not get it.I updated the router firmware have rebooted both router and Linux machine numerous times and no luck. Any advice would be appreciated.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-nettool Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Luky Winarto (luckyborneo) said :
#1

Hello Michael Van Vlack,

You have 2 NIC on your Ubuntu Box.
I assume like this one:
eth1 - NIC 1
eth2 - NIC 2

So, if your NIC 1 is already connected to the router, try to disabled NIC 2 by running this command:
sudo ifconfig eth2 down

Then, try to have ip address from DHCP server on NIC 1 by running this command:
sudo dhclient eth1

If something goes wrong, I mean if your Ubuntu box didn't get any ip address from router, would you mind to copy the output of the last command above?

Thank you....

Revision history for this message
Name Withheld (4815162342-deactivatedaccount) said :
#2

Ok I am not sure that I am following you but I will try to help, tell me what you meant if this doesn't help.

It is possible that the router does not support Linux, but that doesn't mean you can't use it anyway.

You can try to see if there are drivers available for your particular model for linux systems, but you said you already updated alot of stuff.

K so this is what you need to do, get ndisgtk and you may need ndiswrapper you can download these or if you still have your ubuntu disk you can get them in [diskdrive]\pool\main\n (if you can't get them by directly installing them from the disk then refer to this post:https://answers.launchpad.net/ubuntu/+source/ndisgtk/+question/147461 )

once you have that installed you can open it and put in the .inf file for your router, this can usually be found on your installation disk that came with your router, and if there is more than one of them of course see which one works, but try the Windows XP first.

Revision history for this message
Michael Van Vlack (mikevvlack) said :
#3

this is the result of dhclient

Listening on LPF/ETH1/00:50:fe:62:6c:45

Sending on LPF/ETH1/00:50:fe:62:6c:45

Sending on Socket/Fallback

DHCPDISCOVER on ETH1 to 255.255.255.255 port 67 in interval 7 <--------- 6
times

           " " " "
NO DHCPOFFERS received

No Working Leases in Persistent Database - Sleeping

I know this means that eth1 is not seeing an offer but the router logs show it
receives a Discover band makes an offer. Question is why is the router seeing
the DHCP from the computer but eth1 on the computer does not show any
communication from the router?

----- Original Message ----
From: Luky Winarto <email address hidden>
To: <email address hidden>
Sent: Sun, April 24, 2011 1:23:50 PM
Subject: Re: [Question #154085]: Cannot get IP from new router

Your question #154085 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/154085

    Status: Open => Needs information

Luky Winarto requested for more information:
Hello Michael Van Vlack,

You have 2 NIC on your Ubuntu Box.
I assume like this one:
eth1 - NIC 1
eth2 - NIC 2

So, if your NIC 1 is already connected to the router, try to disabled NIC 2 by
running this command:
sudo ifconfig eth2 down

Then, try to have ip address from DHCP server on NIC 1 by running this command:
sudo dhclient eth1

If something goes wrong, I mean if your Ubuntu box didn't get any ip
address from router, would you mind to copy the output of the last
command above?

Thank you....

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/154085

You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Luky Winarto (luckyborneo) said :
#4

Hmmm... how about to give static ip address on eth1. Then ping your router. Remember, you should give the ip address that is the same subnetmask with your router.

For example:
If your router ip address is 192.168.2.1 with netmask 255.255.255.0
then your eth1 ip address is 192.168.2.10 with netmask 255.255.255.0

Command:
sudo ifconfig eth1 192.168.2.10 netmask 255.255.255.0
ping 192.168.2.1 -c 10

Option 'c' is count to 10.
Please give it a try...

Revision history for this message
Michael Van Vlack (mikevvlack) said :
#5

I tried to static in an ip in the correct subnet and no I cannot ping the router or any of the other machines in that subnet. Just in case something had happened to my ethernet cable although unlikely I connected the cable to a laptop running windows and that works fine, then connected back to the linux machine and still no ip.

--- On Sun, 4/24/11, Luky Winarto <email address hidden> wrote:

> From: Luky Winarto <email address hidden>
> Subject: Re: [Question #154085]: Cannot get IP from new router
> To: <email address hidden>
> Date: Sunday, April 24, 2011, 2:29 PM
> Your question #154085 on Ubuntu
> changed:
> https://answers.launchpad.net/ubuntu/+question/154085
>
> Status: Open => Needs information
>
> Luky Winarto requested for more information:
> Hmmm... how about to give static ip address on eth1. Then
> ping your
> router. Remember, you should give the ip address that is
> the same
> subnetmask with your router.
>
> For example:
> If your router ip address is 192.168.2.1 with netmask
> 255.255.255.0
> then your eth1 ip address is 192.168.2.10 with netmask
> 255.255.255.0
>
> Command:
> sudo ifconfig eth1 192.168.2.10 netmask 255.255.255.0
> ping 192.168.2.1 -c 10
>
> Option 'c' is count to 10.
> Please give it a try...
>
> --
> To answer this request for more information, you can either
> reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/154085
>
> You received this question notification because you are a
> direct
> subscriber of the question.
>

Revision history for this message
Luky Winarto (luckyborneo) said :
#6

Hmmm... that's weird.
Please give me the output of these commands:
sudo lshw | grep Ethernet
cat /etc/network/intefaces

Thank you... I'm really sorry for my late reply..

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#8

Are you still experiencing this problem?

If so, please reply with the results of the two commands that Luky Winarto asked you to run on May 3rd. (Or with an explanation of why you are unable to run those commands and/or a request for help in how to run them.)

Revision history for this message
Michael Van Vlack (mikevvlack) said :
#9

sorry that I have not been able to get back to this. here is the output of the
commands you asked for.

root@mikevv-desktop:/home/mikevv# sudo lshw | grep Ethernet
description: Ethernet interface
product: nForce2 Ethernet Controller
description: Ethernet interface
root@mikevv-desktop:/home/mikevv# cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth2
#iface eth2 inet dhcp

auto ath0
#iface ath0 inet dhcp

auto wlan0
#iface wlan0 inet dhcp

iface eth1 inet dhcp
address 192.168.61.20
netmask 255.255.255.0
gateway 192.168.61.1

iface eth0 inet dhcp
address 192.168.61.22
netmask 255.255.255.0
gateway 192.168.61.1

auto eth1

----- Original Message ----
From: Luky Winarto <email address hidden>
To: <email address hidden>
Sent: Tue, May 3, 2011 8:15:56 AM
Subject: Re: [Question #154085]: Cannot get IP from new router

Your question #154085 on gnome-nettool in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/gnome-nettool/+question/154085

    Status: Open => Needs information

Luky Winarto requested more information:
Hmmm... that's weird.
Please give me the output of these commands:
sudo lshw | grep Ethernet
cat /etc/network/intefaces

Thank you... I'm really sorry for my late reply..

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+source/gnome-nettool/+question/154085

You received this question notification because you asked the question.

Revision history for this message
Michael Van Vlack (mikevvlack) said :
#10

here are the results.

root@mikevv-desktop:/home/mikevv# sudo lshw | grep Ethernet
description: Ethernet interface
product: nForce2 Ethernet Controller
description: Ethernet interface
root@mikevv-desktop:/home/mikevv# cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth2
#iface eth2 inet dhcp

auto ath0
#iface ath0 inet dhcp

auto wlan0
#iface wlan0 inet dhcp

iface eth1 inet dhcp
address 192.168.61.20
netmask 255.255.255.0
gateway 192.168.61.1

iface eth0 inet dhcp
address 192.168.61.22
netmask 255.255.255.0
gateway 192.168.61.1

auto eth1

----- Original Message ----
From: Eliah Kagan <email address hidden>
To: <email address hidden>
Sent: Sat, May 21, 2011 11:11:12 AM
Subject: Re: [Question #154085]: Cannot get IP from new router

Your question #154085 on gnome-nettool in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/gnome-nettool/+question/154085

Eliah Kagan posted a new comment:
Are you still experiencing this problem?

If so, please reply with the results of the two commands that Luky
Winarto asked you to run on May 3rd. (Or with an explanation of why you
are unable to run those commands and/or a request for help in how to run
them.)

--
You received this question notification because you asked the question.

Revision history for this message
Luky Winarto (luckyborneo) said :
#11

I'm really sorry about my late reply.

This is your problem.

iface eth1 inet dhcp
address 192.168.61.20
netmask 255.255.255.0
gateway 192.168.61.1

iface eth0 inet dhcp
address 192.168.61.22
netmask 255.255.255.0
gateway 192.168.61.1

If you want to use static ip address, you should change like this:
iface eth1 inet static
address 192.168.61.20
netmask 255.255.255.0
gateway 192.168.61.1

Then from your eth1, ping to your router ip address.

Can you help with this problem?

Provide an answer of your own, or ask Michael Van Vlack for more information if necessary.

To post a message you must log in.