Can't get IP by DHCP (Wired network)
Derek Broughton
news at pointerstop.ca
Mon Jul 9 21:00:22 UTC 2007
Bondarenko Dmitry wrote:
>> If you expect NetworkManager to handle eth1, remove it
>> from /etc/network/interfaces
> I've removed everything, but the 'lo' interface in this file. It
> didn't help me. As soon as I set the manual configuration in the
> network manager and set the dhcp on the wired network and enable it,
You can't do that. "manual configuration" in network manager is just a way
of editing /etc/network/interfaces.
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.
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.
Run:
# sudo dhclient eth0
or
# sudo dhclient eth1
(depending on which interface it is) and see if you get an address assigned.
--
derek
More information about the ubuntu-users
mailing list