Отваливается интернет на Debian 10. За файлы, связанные с интернетом, и их синтаксисы особо не шарю
netstat -r output
:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default 192.168.0.1 0.0.0.0 UG 0 0 0 enp6s0
link-local 0.0.0.0 255.255.0.0 U 0 0 0 enp6s0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 enp6s0
/etc/hosts
127.0.0.1 localhost rave.cat mc.rave.cat
127.0.1.1 ravecat-server
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
/etc/resolv.conf
nameserver 127.0.0.1
nameserver 192.168.0.1
/etc/network/interfaces
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto enp6s0
iface enp6s0 inet static
address 192.168.0.169
netmask 255.255.255.0
network 192.168.0.1
gateway 192.168.0.1
dns-nameservers 192.168.0.1 8.8.8.8 8.8.4.4 1.1.1.1 1.0.0.1
ip route show dev enp6s0
default via 192.168.0.1 onlink
169.254.0.0/16 scope link metric 1000
192.168.0.0/24 proto kernel scope link src 192.168.0.169
ifconfig
enp6s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.169 netmask 255.255.255.0 broadcast 192.168.0.255
ether b8:70:f4:13:f1:78 txqueuelen 1000 (Ethernet)
RX packets 24901856 bytes 1901282133 (1.7 GiB)
RX errors 0 dropped 24 overruns 0 frame 0
TX packets 16488912 bytes 1713225582 (1.5 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1000 (Local Loopback)
RX packets 4509 bytes 446095 (435.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4509 bytes 446095 (435.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ip addr show dev enp6s0
2: enp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:70:f4:13:f1:78 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.169/24 brd 192.168.0.255 scope global enp6s0
valid_lft forever preferred_lft forever
ping -c 1 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
From 192.168.0.169 icmp_seq=1 Destination Host Unreachable
--- 192.168.0.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
ping -c 1 google.com
ping: google.com: Temporary failure in name resolution
- В
dmesg
присутствуют такие строчки:
[59640.040185] device enp6s0 entered promiscuous mode
...
[68396.968034] device enp6s0 left promiscuous mode
После команды /etc/init.d/networking restart
все становится нормально, но это временно. Прошу помочь знающих где косяки и что можно исправить