Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

It's an apartment house's network and the connection worked fine for two days until yesterday. Problems are same plugging in directly with network cable or using a switch.

If I boot with windows, then the computer connects to the network automatically and everything works. I ran ipconfig and put the same IP, Netmask, Gateway into linux connection settings and had to add a free dns IP and now I've got internet in ubuntu as well, but automatical connection with dhcp doesn't work anymore

Edit: concerning Mohammed's comment: I reckon linux optains dhcp settings, as connection is established, but something goes wrong and internet and ping doesn't work. Network seems to have some fault as if it works pages doesn't load from first time sometimes and you have to reload. Same pc running with windows connects to dhcp, I ve got other devices: nexus 4, ipad and other windows pc which connect to network, only ubuntu has this issue, that I must set the ip settings manually

Edit: here is my ifconfig, eth0 has working manual settings, wifi has faulty automatic:

 eth0      Link encap:Ethernet  HWaddr 00:1e:8c:96:6d:f4  
      inet addr:10.0.3.92  Bcast:10.0.255.255  Mask:255.255.0.0
      inet6 addr: fe80::21e:8cff:fe96:6df4/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      RX packets:58264 errors:0 dropped:0 overruns:0 frame:0
      TX packets:38696 errors:0 dropped:0 overruns:0 carrier:4
      collisions:0 txqueuelen:1000 
      RX bytes:17918222 (17.9 MB)  TX bytes:6479348 (6.4 MB)

lo        Link encap:Local Loopback  
      inet addr:127.0.0.1  Mask:255.0.0.0
      inet6 addr: ::1/128 Scope:Host
      UP LOOPBACK RUNNING  MTU:16436  Metric:1
      RX packets:12668 errors:0 dropped:0 overruns:0 frame:0
      TX packets:12668 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0 
      RX bytes:949325 (949.3 KB)  TX bytes:949325 (949.3 KB)

wlan0     Link encap:Ethernet  HWaddr 00:1d:e0:69:77:bd  
      inet addr:10.0.1.145  Bcast:10.0.255.255  Mask:255.255.0.0
      inet6 addr: fe80::21d:e0ff:fe69:77bd/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      RX packets:10675 errors:0 dropped:0 overruns:0 frame:0
      TX packets:1336 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:1108136 (1.1 MB)  TX bytes:214623 (214.6 KB)

this is how it looks under windows (wifi is first):
Drahtlos-LAN-Adapter Drahtlosnetzwerkverbindung:

Verbindungsspezifisches DNS-Suffix: devario
Verbindungslokale IPv6-Adresse . : fe80::adda:6f7b:5524:da7b%17
IPv4-Adresse . . . . . . . . . . : 10.0.4.93
Subnetzmaske . . . . . . . . . . : 255.255.0.0
Standardgateway . . . . . . . . . : 10.0.0.2

Ethernet-Adapter LAN-Verbindung:

Verbindungsspezifisches DNS-Suffix: devario
Verbindungslokale IPv6-Adresse . : fe80::191a:8c17:f2b4:5e0%10
IPv4-Adresse . . . . . . . . . . : 10.0.3.92
Subnetzmaske . . . . . . . . . . : 255.255.0.0
Standardgateway . . . . . . . . . : 10.0.0.2

routing table:

route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.0.0.2        0.0.0.0         UG    0      0        0 eth0
10.0.0.0        *               255.255.0.0     U     1      0        0 eth0
10.0.0.0        *               255.255.0.0     U     2      0        0 wlan0
link-local      *               255.255.0.0     U     1000   0        0 eth0
share|improve this question
    
Your question pretty unclear. From what I understood is that windows is obtaining IP via DHCP successfully while Ubuntu failed to do so?? and you're trying to assign the same issued (for windows) on your ubuntu manually along with a public DNS?? Well, If possible could you please edit your question and make it more clear. –  AzkerM Jan 20 at 11:40
    
can you post the output of you ifconfig and also routing table? –  AzkerM Jan 20 at 12:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.