Can't get IP by DHCP (Wired network)
Dmitry Bond
imperator.bm at gmail.com
Mon Jul 9 21:36:04 UTC 2007
Hello, Derek.
You wrote:
> Clean out /etc/network/interfaces and then do "sudo dbus restart". If it
> isn't then showing a "Wired Network" in the Network Manager menu, try
> quitting and restarting Network Manager.
Yeah, I tried that. Same results. But I tried to use
/etc/init.d/networking restart, because my system didn't recognise the
word 'dbus'.
> In response to someone else, you said "my ISP won't allow me just
> to use the static IP , which i noted from my desktop PC without
> setting the corresponding MAC..." - actually, I'd be a bit surprised if they
> can stop you. Essentially, by manually setting an IP address with
> ifconfig, you should be able to give your NIC the address DHCP would have
> given you - but you also need to set "gateway", your DNS, your subnet mask,
> and possibly all sorts of other settings you get for free from DHCP.
I have 1 external IP bought and a limit up to 3 internal IPs. When my
ISP is giving me the IP (when I connect the desktop to the modem) it
acts like that: "Hmm... Someone from MAC: xxxx (desktop mac)
connected.... What do I have in my database??? Oh yeah, this man
bougth an IP registered to this MAC. I'll give it to him... " and I
get it. Maybe more complicated, but it's what is said by the admins on
the local forums. And I've checked: my outer IP, but wrong MAC = no
internet. Dunno how they do it, really... And for example, if I plug
in a new device with MAC, that is unknown for my ISP, I should phone
my ISP and register this MAC, and they enter it to some database.
Otherwise, no internet :(.
> Run:
> # sudo dhclient eth0
> or
> # sudo dhclient eth1
> (depending on which interface it is) and see if you get an address assigned.
> --
> derek
imperator at imperator-laptop:~$ sudo gedit ../../etc/network/interfaces
imperator at imperator-laptop:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces... [ OK ]
imperator at imperator-laptop:~$ sudo dhclient eth0
There is already a pid file /var/run/dhclient.pid with pid 12883
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:16:36:4d:cf:3a
Sending on LPF/eth0/00:16:36:4d:cf:3a
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
imperator at imperator-laptop:~$
I see that I don't get anything. If I turn my modem OFF (In that mode
it serves as DHCP server itself I bet), then it gives me something
like 192.168.100.11 (the modem is 192.168.100.1). But I expect that
the modem should be on and I get something like 87.237.115.* or
anything else... I'm totally confused with that things! :(
--
Best regards,
Dmitry mailto:Imperator.bm at gmail.com
More information about the ubuntu-users
mailing list