Na wstępie pragnę zaznaczyć, że przejrzałem forum i wiem, że temat ten był już kilka razy poruszany. Niestety nie pomogło mi to w rozwiązaniu mojego problemu. Zacznę od początku. Debiana (w wersji testowej) używam od kilku miesięcy i nigdy nie miałem żadnych problemów z internetem. Problem zaczął się gdy po ostatniej aktualizacji oprogramowania (safe-upgrade) i przeładowaniu komputera, straciłem dostęp do internetu. Przejrzałem pliki konfiguracyjne. Plik resolv.conf był wyczyszczony. Zawierał tylko informację:
Kod: Zaznacz cały
# Generated by NetworkManagerKod: Zaznacz cały
nameserver 194.204.152.34
nameserver 217.93.63.164Kod: Zaznacz cały
/etc/init.d/networking restartKod: Zaznacz cały
chmod a-w resolv.confTrochę informacji z mojego systemu:
Kod: Zaznacz cały
root@debian:/# uname -a
Linux debian 2.6.38-2-686 #1 SMP Thu Apr 7 05:24:21 UTC 2011 i686 GNU/LinuxKod: Zaznacz cały
root@debian:/# dpkg --print-architecture
i386
Kod: Zaznacz cały
root@debian:/# ifconfig -a
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:192.168.2.21 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::211:9ff:fe24:668/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6170 errors:0 dropped:0 overruns:0 frame:0
TX packets:5193 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1407690 (1.3 MiB) TX bytes:942018 (919.9 KiB)
Interrupt:23 Base address:0xc000
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:2966 errors:0 dropped:0 overruns:0 frame:0
TX packets:2966 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:221812 (216.6 KiB) TX bytes:221812 (216.6 KiB)
vboxnet0 Link encap:Ethernet HWaddr yy:yy:yy:yy:yy:yy
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Kod: Zaznacz cały
root@debian:/# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.2.21
netmask 255.255.255.0
gateway 192.168.2.1Kod: Zaznacz cały
root@debian:/# dpkg -l | grep network
ii glib-networking 2.28.4-2 network-related giomodules for GLib
ii ifupdown 0.6.10 high level tools to configure network interfaces
ii iproute 20110315-1 networking and traffic control tools
ii iputils-ping 3:20101006-1+b1 Tools to test the reachability of network hosts
ii libnm-glib-vpn1 0.8.4.0-1 network management framework (GLib VPN shared library)
ii libnm-glib2 0.8.4.0-1 network management framework (GLib shared library)
ii libnm-util1 0.8.4.0-1 network management framework (shared library)
ii libqt4-network 4:4.7.2-3 Qt 4 network module
ii libqtscript4-network 0.1.0-3 Qt Script bindings for the Qt 4 Network library
ii libsmokeqtnetwork4-3 4:4.4.5-5 Qt Network SMOKE library
ii libsolidcontrol4 4:4.4.5-9 library for Solid based network management
ii libsolidcontrolifaces4 4:4.4.5-9 library for Solid based network interface management
ii net-tools 1.60-23 The NET-3 networking toolkit
ii netbase 4.45 Basic TCP/IP networking system
ii network-manager 0.8.4.0-1 network management framework daemon
ii network-manager-openvpn 0.8.4-1 network management framework (OpenVPN plugin core)
ii network-manager-pptp 0.8.4-1 network management framework (PPTP plugin core)
ii network-manager-vpnc 0.8.4-1 network management framework (VPNC plugin core)
ii openvpn 2.1.3-4+b1 virtual private network daemon
ii plasma-widget-networkmanagement 0.1+git20110318.941cde9-2 Network Management widget for KDE4 Plasma
ii traceroute 1:2.0.15-1 Traces the route taken by packets over an IPv4/IPv6 network
Kod: Zaznacz cały
root@debian:/# cat /etc/dhcp/dhclient.conf
# Configuration file for /sbin/dhclient, which is included in Debian's
# dhcp3-client package.
#
# This is a sample configuration file for dhclient. See dhclient.conf's
# man page for more information about the syntax of this file
# and a more comprehensive list of the parameters understood by
# dhclient.
#
# Normally, if the DHCP server provides reasonable information and does
# not leave anything out (like the domain name, for example), then
# few changes must be made to this file, if any.
#
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
#send host-name "andare.fugue.com";
#send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
#send dhcp-lease-time 3600;
#supersede domain-name "fugue.com home.vix.com";
#prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers;
#require subnet-mask, domain-name-servers;
#timeout 60;
#retry 60;
#reboot 10;
#select-timeout 5;
#initial-interval 2;
#script "/etc/dhcp3/dhclient-script";
#media "-link0 -link1 -link2", "link0 link1";
#reject 192.33.137.209;
#alias {
# interface "eth0";
# fixed-address 192.5.5.213;
# option subnet-mask 255.255.255.255;
#}
#lease {
# interface "eth0";
# fixed-address 192.33.137.200;
# medium "link0 link1";
# option host-name "andare.swiftmedia.com";
# option subnet-mask 255.255.255.0;
# option broadcast-address 192.33.137.255;
# option routers 192.33.137.250;
# option domain-name-servers 127.0.0.1;
# renew 2 2000/1/12 00:00:01;
# rebind 2 2000/1/12 00:00:01;
# expire 2 2000/1/12 00:00:01;
#}
Zmieniłem atrybuty pliku /etc/resolv.conf poleceniem:
Kod: Zaznacz cały
chattr +i resolv.conf