I have a modem that distributes Wi-Fi, and there is a laptop with ubuntu 14.04.

Then there are 3 situations:

1 - I connect to the Internet via Wi-Fi, Skype works for me, I download torrents, I can google, but other than that I cannot go to any other site, I write an error DNS_PROBE_FINISHED_BAD_CONFIG.

2 - turn off Wi-Fi, connect to the router through the wire, as a result, there is no Internet at all, error ERR_NETWORK_CHANGED.

3 - I connect to the router via Wi-Fi and insert the cord, as a result, the Internet works.

I want the first and second methods to work too, tell me what the problem is, I suspect that something with the dns settings on the computer ...

It is worth adding that from the phone I connect via Wi-Fi and the Internet works on it.

**Включен и вай-фай и шнур:** ~$ ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 28:d2:44:41:5d:80 brd ff:ff:ff:ff:ff:ff inet 192.168.1.2/24 brd 192.168.1.255 scope global eth1 valid_lft forever preferred_lft forever inet6 fe80::2ad2:44ff:fe41:5d80/64 scope link valid_lft forever preferred_lft forever 3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 0c:8b:fd:7d:27:74 brd ff:ff:ff:ff:ff:ff inet 192.168.1.4/24 brd 192.168.1.255 scope global wlan0 valid_lft forever preferred_lft forever inet6 fe80::e8b:fdff:fe7d:2774/64 scope link valid_lft forever preferred_lft forever ~$ ip r default via 192.168.1.1 dev wlan0 proto static 169.254.0.0/16 dev eth1 scope link metric 1000 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.2 192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.4 metric 9 ~$ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.1.1 search domain.name **только вай-фай:** ~$ ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000 link/ether 28:d2:44:41:5d:80 brd ff:ff:ff:ff:ff:ff inet 192.168.1.2/24 brd 192.168.1.255 scope global eth1 valid_lft forever preferred_lft forever inet6 fe80::2ad2:44ff:fe41:5d80/64 scope link valid_lft forever preferred_lft forever 3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 0c:8b:fd:7d:27:74 brd ff:ff:ff:ff:ff:ff inet 192.168.1.4/24 brd 192.168.1.255 scope global wlan0 valid_lft forever preferred_lft forever inet6 fe80::e8b:fdff:fe7d:2774/64 scope link valid_lft forever preferred_lft forever ~$ ip r default via 192.168.1.1 dev wlan0 proto static 169.254.0.0/16 dev eth1 scope link metric 1000 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.2 192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.4 metric 9 ~$ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.1.1 search domain.name **только шнур:** ~$ ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 28:d2:44:41:5d:80 brd ff:ff:ff:ff:ff:ff inet 192.168.1.2/24 brd 192.168.1.255 scope global eth1 valid_lft forever preferred_lft forever inet6 fe80::2ad2:44ff:fe41:5d80/64 scope link valid_lft forever preferred_lft forever 3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN group default qlen 1000 link/ether 0c:8b:fd:7d:27:74 brd ff:ff:ff:ff:ff:ff ~$ ip r 169.254.0.0/16 dev eth1 scope link metric 1000 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.2 ~$ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN ~$ cat /etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback auto dsl-provider iface dsl-provider inet ppp pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf provider dsl-provider #auto eth1 #iface eth1 inet manual auto eth1 iface eth1 inet static address 192.168.1.2 netmask 255.255.255.0 geteway ххххххххххх nameserver ххххххххххх nameserver ххххххххххх 
  • What do you have in /etc/network/interfaces ? - check1st
  • the same thing all 3 times, and the same as when the Internet was turned off completely. I added to the end of the question what the console displays - fortunado

1 answer 1

Try changing the contents of /etc/network/interfaces like this:

 auto lo iface lo inet loopback auto eth1 iface eth1 inet dhcp auto wlan0 iface wlan0 inet dhcp 

After that, apply the changes:

 service networking restart 
  • nothing has changed ... so I rebooted the interferences: ifdown eth0 ifup eth0 - fortunado
  • one
    @fortunado, now I will add the answer - check1st
  • one
    @fortunado, you do not have an eth0 interface. judging by the configuration, only eth1 (wire) and wlan0 (wifi). - check1st
  • and what does it mean ?, I remember that when I just bought a computer, it only worked on the wire or only on Wi-Fi. Last year I used it in the mode of this and that, and now only wi-fi is needed, and the problem ... and yes, I did service networking restart - fortunado
  • more precisely so sudo /etc/init.d/networking restart - fortunado