Linux отключается сетевой интерфейс

Периодически пропадает подключение к интернету. Mint.

Периодически пропадает подключение к интернету на linux mint. На попытку пинга выдет «Network is unreachable». Помагает переподключение к сети. Вот системный лог на момент отваливания сети:

Jun 2 20:30:20 D3041-A1 avahi-daemon[932]: Withdrawing address record for 192.168.0.101 on enp3s0. Jun 2 20:30:20 D3041-A1 avahi-daemon[932]: Leaving mDNS multicast group on interface enp3s0.IPv4 with address 192.168.0.101. Jun 2 20:30:20 D3041-A1 avahi-daemon[932]: Interface enp3s0.IPv4 no longer relevant for mDNS. Jun 2 20:30:21 D3041-A1 ntpd[1071]: Deleting interface #4 enp3s0, 192.168.0.101#123, interface stats: received=497, sent=505, dropped=0, active_time=7199 secs Jun 2 20:30:21 D3041-A1 ntpd[1071]: 193.27.208.100 local addr 192.168.0.101 -> Jun 2 20:30:21 D3041-A1 ntpd[1071]: 31.28.161.68 local addr 192.168.0.101 -> Jun 2 20:30:21 D3041-A1 ntpd[1071]: 62.149.0.30 local addr 192.168.0.101 -> Jun 2 20:30:21 D3041-A1 ntpd[1071]: 193.27.209.211 local addr 192.168.0.101 -> Jun 2 20:30:21 D3041-A1 ntpd[1071]: 134.249.140.99 local addr 192.168.0.101 ->

Это следствие удаления ip-адреса с интерфейса. Смотрите другие логи, если в dmesg чисто, значит проблема не аппаратная. Может быть проблемы с dhcp, что по истечению времени выделеный адрес не удаётся продлить.

Судя из лога, как я понял, сетевой интерфейс просто берет и отваливается. Какого черта?

У меня была подобная проблема с минтом. Решилась, внезапно, перепрошивкой вайфай роутера.

Не утверждаю что у Вас те-же и с тем-же ракурсом, но в копилку знаний.

dmesg пустой. Если проблемы с dhcp, то точно не со стороны роутера. На остальных устройствах все нормально, и на винде на этом же компе тоже. Не подскажите, как обнаружить проблему с dhcp в самой системе?

Встречал сообщения о подобном, было связано с IPv6 в network manager.

Источник

Проблема с падением сетевых интерфейсов на Ubuntu 11.10

Здравствуйте! Есть проблема с периодическим (1-3 раза в сутки) падением сетевых интерфейсов, обращенных в локалку. Машина служит файл-сервером и шлюзом в небольшой локальной сети, Ubuntu desktop 11.10, samba, shorewall, dnsmasq, ifenslave и т.д.:

Linux bgps 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
04:00.0 Ethernet controller: Intel Corporation 82541PI Gigabit Ethernet Controller (rev 05) — eth1 04:01.0 Ethernet controller: Intel Corporation 82541PI Gigabit Ethernet Controller (rev 05) — eth2 05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03) — eth0 (на материнке)

eth0 смотрит наружу, eth1 и eth2 в бондинге (bond0) в локалку. Так вот, периодически с завидным постоянством сначала в down уходит одна, а через некоторое время вторая карта, и сеть остается без файл-сервера и интернета. Вот что сыпется в syslog:

… Oct 24 19:14:07 bgps kernel: [35290.895387] irq 16: nobody cared (try booting with the "irqpoll" option) Oct 24 19:14:07 bgps kernel: [35290.895394] Pid: 0, comm: swapper Tainted: G C 3.0.0-12-generic #20-Ubuntu Oct 24 19:14:07 bgps kernel: [35290.895397] Call Trace: Oct 24 19:14:07 bgps kernel: [35290.895399] [] __report_bad_irq+0x3d/0xe0 Oct 24 19:14:07 bgps kernel: [35290.895410] [] note_interrupt+0x135/0x180 Oct 24 19:14:07 bgps kernel: [35290.895415] [] handle_irq_event_percpu+0xa9/0x220 Oct 24 19:14:07 bgps kernel: [35290.895419] [] handle_irq_event+0x4e/0x80 Oct 24 19:14:07 bgps kernel: [35290.895423] [] handle_fasteoi_irq+0x64/0xf0 Oct 24 19:14:07 bgps kernel: [35290.895427] [] handle_irq+0x22/0x40 Oct 24 19:14:07 bgps kernel: [35290.895431] [] do_IRQ+0x5a/0xe0 Oct 24 19:14:07 bgps kernel: [35290.895435] [] common_interrupt+0x13/0x13 Oct 24 19:14:07 bgps kernel: [35290.895437] [] ? intel_idle+0xcb/0x120 Oct 24 19:14:07 bgps kernel: [35290.895446] [] ? intel_idle+0xad/0x120 Oct 24 19:14:07 bgps kernel: [35290.895451] [] cpuidle_idle_call+0xa2/0x1d0 Oct 24 19:14:07 bgps kernel: [35290.895456] [] cpu_idle+0xab/0x100 Oct 24 19:14:07 bgps kernel: [35290.895462] [] rest_init+0x72/0x74 Oct 24 19:14:07 bgps kernel: [35290.895466] [] start_kernel+0x3d4/0x3df Oct 24 19:14:07 bgps kernel: [35290.895471] [] x86_64_start_reservations+0x132/0x136 Oct 24 19:14:07 bgps kernel: [35290.895476] [] ? early_idt_handlers+0x140/0x140 Oct 24 19:14:07 bgps kernel: [35290.895481] [] x86_64_start_kernel+0xcd/0xdc Oct 24 19:14:07 bgps kernel: [35290.895483] handlers: Oct 24 19:14:07 bgps kernel: [35290.895506] [] e1000_intr Oct 24 19:14:07 bgps kernel: [35290.895509] Disabling IRQ #16 … Oct 24 19:15:18 bgps kernel: [35362.161750] ------------[ cut here ]------------ Oct 24 19:15:18 bgps kernel: [35362.161760] WARNING: at /build/buildd/linux-3.0.0/net/sched/sch_generic.c:255 dev_watchdog+0x25a/0x270() Oct 24 19:15:18 bgps kernel: [35362.161763] Hardware name: System Product Name Oct 24 19:15:18 bgps kernel: [35362.161765] NETDEV WATCHDOG: eth1 (e1000): transmit queue 0 timed out Oct 24 19:15:18 bgps kernel: [35362.161767] Modules linked in: bnep rfcomm bluetooth act_police cls_flow cls_fw cls_u32 sch_tbf sch_prio sch_htb sch_hfsc sch_ingress sch_sfq xt_time xt_connlimit xt_realm xt_addrtype iptable_raw xt_comment xt_recent xt_policy ipt_ULOG ipt_REJECT ipt_REDIRECT ipt_NETMAP ipt_MASQUERADE ipt_ECN ipt_ecn ipt_CLUSTERIP ipt_ah xt_set ip_set nf_nat_tftp nf_nat_snmp_basic nf_conntrack_snmp nf_nat_sip nf_nat_pptp nf_nat_proto_gre nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda ts_kmp nf_conntrack_amanda nf_conntrack_sane nf_conntrack_tftp nf_conntrack_sip nf_conntrack_proto_sctp nf_conntrack_pptp nf_conntrack_proto_gre nf_conntrack_netlink nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp xt_TPROXY nf_tproxy_core ip6_tables nf_defrag_ipv6 xt_tcpmss xt_pkttype xt_physdev xt_owner xt_NFQUEUE xt_NFLOG nfnetlink_log xt_multiport xt_mark xt_mac xt_limit xt_length xt_iprange xt_helper xt_hashlimit xt_DSCP xt_dscp xt_dccp xt_conntrack xt_connmark Oct 24 19:15:18 bgps kernel: xt_CLASSIFY xt_AUDIT ipt_LOG xt_tcpudp xt_state iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack iptable_mangle nfnetlink iptable_filter ip_tables x_tables parport_pc ppdev bonding binfmt_misc snd_hda_codec_hdmi snd_hda_codec_realtek usbhid hid eeepc_wmi asus_wmi sparse_keymap snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq psmouse snd_timer snd_seq_device i915 serio_raw snd drm_kms_helper wmi drm i2c_algo_bit video soundcore snd_page_alloc mei(C) lp parport raid456 async_pq async_xor raid10 xor async_memcpy async_raid6_recov e1000 ahci libahci xhci_hcd r8169 raid6_pq async_tx raid1 raid0 multipath linear Oct 24 19:15:18 bgps kernel: [35362.161887] Pid: 0, comm: kworker/0:0 Tainted: G C 3.0.0-12-generic #20-Ubuntu Oct 24 19:15:18 bgps kernel: [35362.161890] Call Trace: Oct 24 19:15:18 bgps kernel: [35362.161892] [] warn_slowpath_common+0x7f/0xc0 Oct 24 19:15:18 bgps kernel: [35362.161902] [] warn_slowpath_fmt+0x46/0x50 Oct 24 19:15:18 bgps kernel: [35362.161910] [] dev_watchdog+0x25a/0x270 Oct 24 19:15:18 bgps kernel: [35362.161915] [] ? native_sched_clock+0x13/0x60 Oct 24 19:15:18 bgps kernel: [35362.161920] [] ? __queue_work+0x320/0x320 Oct 24 19:15:18 bgps kernel: [35362.161924] [] ? qdisc_reset+0x50/0x50 Oct 24 19:15:18 bgps kernel: [35362.161927] [] ? qdisc_reset+0x50/0x50 Oct 24 19:15:18 bgps kernel: [35362.161932] [] call_timer_fn+0x46/0x160 Oct 24 19:15:18 bgps kernel: [35362.161935] [] ? qdisc_reset+0x50/0x50 Oct 24 19:15:18 bgps kernel: [35362.161938] [] run_timer_softirq+0x132/0x2a0 Oct 24 19:15:18 bgps kernel: [35362.161943] [] ? lapic_next_event+0x1d/0x30 Oct 24 19:15:18 bgps kernel: [35362.161947] [] __do_softirq+0xa8/0x210 Oct 24 19:15:18 bgps kernel: [35362.161952] [] ? tick_program_event+0x1f/0x30 Oct 24 19:15:18 bgps kernel: [35362.161956] [] call_softirq+0x1c/0x30 Oct 24 19:15:18 bgps kernel: [35362.161960] [] do_softirq+0x65/0xa0 Oct 24 19:15:18 bgps kernel: [35362.161963] [] irq_exit+0x8e/0xb0 Oct 24 19:15:18 bgps kernel: [35362.161967] [] smp_apic_timer_interrupt+0x6e/0x99 Oct 24 19:15:18 bgps kernel: [35362.161971] [] apic_timer_interrupt+0x13/0x20 Oct 24 19:15:18 bgps kernel: [35362.161973] [] ? intel_idle+0xcb/0x120 Oct 24 19:15:18 bgps kernel: [35362.161982] [] ? intel_idle+0xad/0x120 Oct 24 19:15:18 bgps kernel: [35362.161987] [] cpuidle_idle_call+0xa2/0x1d0 Oct 24 19:15:18 bgps kernel: [35362.161992] [] cpu_idle+0xab/0x100 Oct 24 19:15:18 bgps kernel: [35362.161996] [] start_secondary+0xd9/0xdb Oct 24 19:15:18 bgps kernel: [35362.161999] ---[ end trace 8b1848cfe680f7c8 ]--- Oct 24 19:15:18 bgps kernel: [35362.273731] bonding: bond0: link status down for interface eth1, disabling it in 200 ms. Oct 24 19:15:18 bgps kernel: [35362.473689] bonding: bond0: link status definitely down for interface eth1, disabling it Oct 24 19:15:18 bgps kernel: [35362.473696] bonding: bond0: making interface eth2 the new active one. … Oct 24 23:15:45 bgps kernel: [49786.062390] irq 17: nobody cared (try booting with the "irqpoll" option) Oct 24 23:15:45 bgps kernel: [49786.062397] Pid: 0, comm: swapper Tainted: G WC 3.0.0-12-generic #20-Ubuntu Oct 24 23:15:45 bgps kernel: [49786.062400] Call Trace: Oct 24 23:15:45 bgps kernel: [49786.062402] [] __report_bad_irq+0x3d/0xe0 Oct 24 23:15:45 bgps kernel: [49786.062414] [] note_interrupt+0x135/0x180 Oct 24 23:15:45 bgps kernel: [49786.062418] [] handle_irq_event_percpu+0xa9/0x220 Oct 24 23:15:45 bgps kernel: [49786.062422] [] handle_irq_event+0x4e/0x80 Oct 24 23:15:45 bgps kernel: [49786.062426] [] handle_fasteoi_irq+0x64/0xf0 Oct 24 23:15:45 bgps kernel: [49786.062430] [] handle_irq+0x22/0x40 Oct 24 23:15:45 bgps kernel: [49786.062434] [] do_IRQ+0x5a/0xe0 Oct 24 23:15:45 bgps kernel: [49786.062438] [] common_interrupt+0x13/0x13 Oct 24 23:15:45 bgps kernel: [49786.062440] [] ? poll_idle+0x41/0x80 Oct 24 23:15:45 bgps kernel: [49786.062448] [] ? poll_idle+0x13/0x80 Oct 24 23:15:45 bgps kernel: [49786.062451] [] cpuidle_idle_call+0xa2/0x1d0 Oct 24 23:15:45 bgps kernel: [49786.062457] [] cpu_idle+0xab/0x100 Oct 24 23:15:45 bgps kernel: [49786.062462] [] rest_init+0x72/0x74 Oct 24 23:15:45 bgps kernel: [49786.062466] [] start_kernel+0x3d4/0x3df Oct 24 23:15:45 bgps kernel: [49786.062471] [] x86_64_start_reservations+0x132/0x136 Oct 24 23:15:45 bgps kernel: [49786.062476] [] ? early_idt_handlers+0x140/0x140 Oct 24 23:15:45 bgps kernel: [49786.062481] [] x86_64_start_kernel+0xcd/0xdc Oct 24 23:15:45 bgps kernel: [49786.062483] handlers: Oct 24 23:15:45 bgps kernel: [49786.062506] [] e1000_intr Oct 24 23:15:45 bgps kernel: [49786.062509] Disabling IRQ #17 Oct 24 23:17:01 bgps CRON[5856]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Oct 24 23:17:13 bgps kernel: [49874.070647] bonding: bond0: link status down for interface eth2, disabling it in 200 ms. Oct 24 23:17:13 bgps kernel: [49874.270611] bonding: bond0: link status definitely down for interface eth2, disabling it Oct 24 23:17:13 bgps kernel: [49874.270964] bonding: bond0: now running without any active interface ! … 
~$ cat /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet static address ***.***.***.*** netmask ***.***.***.*** gateway ***.***.***.*** auto bond0 iface bond0 inet static address 10.0.0.1 netmask 255.0.0.0 bond_mode balance-tlb bond_miimon 100 bond_downdelay 200 bond_updelay 200 slaves eth1 eth2 

Скажите как быть? Мониторить скриптом интерфейсы и перезапускать сеть при падении проблему не решит.

Читайте также:  Linux если переменная пустая

Источник

Оцените статью
Adblock
detector