ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Eugene Prokopiev <enp@itx.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Работа сети при загрузке в systemd
Date: Thu, 10 Oct 2019 11:23:05 +0300
Message-ID: <CANM4RugH-WtyPpboUZ-+nCcgZffmwnLJoPaiyacz1HEgD998Hg@mail.gmail.com> (raw)
In-Reply-To: <CAA8E9_upGQuKGHUr4aF55XRJ4f3VaA6hNkKcNBgU7JedMX6f9w@mail.gmail.com>

Правильное решение в современных линуксах - использовать систему
управления сетью, которая нормально относится к появлению сетевых
интерфейсов из ниоткуда. Мне вполне подходит systemd-networkd, но в
etcnet вроде тоже возможно что-то подобное -
https://www.altlinux.org/Etcnet#Интеграция_с_systemd

чт, 10 окт. 2019 г. в 10:41, Yuri Khachaturyan <yukh@yukh.ru>:
>
> Описанная мной проблема проявляется через раз на одном конкретном сервере (vmware) - иногда успевает определить карту, иногда нет.
> Как временное решение - прописал ifup на нужные интерфейсы в /etc/rc.d/rc.local, но ведь это же неправильное решение...
>
> чт, 10 окт. 2019 г. в 10:05, Eugene Prokopiev <enp@itx.ru>:
>>
>> Не знаю, как уговорить network стартовать позже или переконфигурить
>> вновь появившийся сетевой интерфейс - но systemd-networkd именно
>> последнее и делает
>>
>> чт, 19 сент. 2019 г. в 17:27, Yuri Khachaturyan <yukh@yukh.ru>:
>> >
>> > Добрый день!
>> >
>> > Заметил странную проблему:
>> >
>> > Использую виртуальную машину на Vmware.
>> > Экспериментировал с p8, p9-server-rc1 и p9 обноленным из p8. Везде ситуация одинаковая.
>> >
>> > При загрузке сеть поднимается через раз. Приходится из консоли говорить ifup ens33 && ifup ens34.
>> >
>> > По выдержке из лога понимаю, что сеть пытается подняться до того момента, когда еще система нашла сетевую карту:
>> >
>> >
>> > Sep 19 17:18:46 ca.vid.ru network[1011]: Starting group 1/realphys (2 interfaces)
>> > Sep 19 17:18:46 ca.vid.ru network[1011]:         Starting ens33: Cannot find device "ens33"
>> > Sep 19 17:18:46 ca.vid.ru network[1011]: .Cannot find device "ens33"
>> > Sep 19 17:18:46 ca.vid.ru kernel: hub 2-2:1.0: USB hub found
>> > Sep 19 17:18:46 ca.vid.ru kernel: hub 2-2:1.0: 7 ports detected
>> > Sep 19 17:18:46 ca.vid.ru polkitd[1006]: Loading rules from directory /etc/polkit-1/rules.d
>> > Sep 19 17:18:46 ca.vid.ru polkitd[1006]: Loading rules from directory /usr/share/polkit-1/rules.d
>> > Sep 19 17:18:46 ca.vid.ru kernel: e1000 0000:02:02.0 eth1: (PCI:66MHz:32-bit) 00:0c:29:13:c5:5a
>> > Sep 19 17:18:46 ca.vid.ru kernel: e1000 0000:02:02.0 eth1: Intel(R) PRO/1000 Network Connection
>> > Sep 19 17:18:46 ca.vid.ru polkitd[1006]: Finished loading, compiling and executing 1 rules
>> > Sep 19 17:18:46 ca.vid.ru systemd-udevd[925]: Using default interface naming scheme 'v240'.
>> > Sep 19 17:18:46 ca.vid.ru systemd[1]: Started Authorization Manager.
>> > Sep 19 17:18:46 ca.vid.ru audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=polkit comm="systemd" exe="/lib/systemd/systemd" hostnam>
>> > Sep 19 17:18:46 ca.vid.ru polkitd[1006]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
>> > Sep 19 17:18:46 ca.vid.ru systemd-udevd[921]: Using default interface naming scheme 'v240'.
>> > Sep 19 17:18:46 ca.vid.ru systemd-udevd[925]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
>> > Sep 19 17:18:46 ca.vid.ru kernel: e1000 0000:02:02.0 ens34: renamed from eth1
>> > Sep 19 17:18:46 ca.vid.ru systemd-udevd[921]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
>> > Sep 19 17:18:46 ca.vid.ru kernel: e1000 0000:02:01.0 ens33: renamed from eth0
>> > Sep 19 17:18:46 ca.vid.ru network[1011]: ..OK
>> >
>> > --
>> > С уважением,
>> > Хачатурян Юрий (yukh@yukh.ru)
>> > _______________________________________________
>> > community mailing list
>> > community@lists.altlinux.org
>> > https://lists.altlinux.org/mailman/listinfo/community
>>
>>
>>
>> --
>> WBR,
>> Eugene Prokopiev
>> _______________________________________________
>> community mailing list
>> community@lists.altlinux.org
>> https://lists.altlinux.org/mailman/listinfo/community
>
>
>
> --
> С уважением,
> Хачатурян Юрий (yukh@yukh.ru)
> _______________________________________________
> community mailing list
> community@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community



-- 
WBR,
Eugene Prokopiev

  parent reply	other threads:[~2019-10-10  8:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-10  7:05 ` Eugene Prokopiev
2019-10-10  8:23     ` Eugene Prokopiev [this message]
2019-10-10 14:38         ` Eugene Prokopiev
2019-10-10 15:25             ` Eugene Prokopiev
2019-10-10 18:50       ` Sergey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANM4RugH-WtyPpboUZ-+nCcgZffmwnLJoPaiyacz1HEgD998Hg@mail.gmail.com \
    --to=enp@itx.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git