LINUX.ORG.RU
решено ФорумAdmin

Почему интерфейс в networkd висит в статусе configuring?

 


0

1
> sudo networkctl -a status
● 1: lo
       Link File: /lib/systemd/network/99-default.link
    Network File: n/a
            Type: loopback
           State: carrier (unmanaged)
         Address: 127.0.0.1
                  ::1

● 2: ens3
       Link File: /lib/systemd/network/99-default.link
    Network File: /etc/systemd/network/80-ens3.network
            Type: ether
           State: routable (configuring)
            Path: pci-0000:00:03.0
          Driver: virtio_net
          Vendor: Red Hat, Inc
           Model: Virtio network device
      HW Address: 52:54:00:26:6e:e2
         Address: 192.168.1.12
                  fe80::5054:ff:fe26:6ee2
         Gateway: 192.168.1.1
             DNS: 192.168.1.1
                  fe80::c24a:ff:fe4d:4b18
> cat /etc/systemd/network/80-ens3.network 
[Match]
Name=ens3

[Network]
DHCP=ipv4

[DHCPv4]
UseHostname=false

Как понять, что он пытается сконфигурировать? Предполагаю, что пытается настроить IPv6...

★★
Ответ на: А от anymouze

В том то и дело, что ни на что не ругается:

Sep 22 10:43:50 office kernel: [    5.335769] [TTM] Initializing pool allocator
Sep 22 10:43:50 office kernel: [    5.335779] [TTM] Initializing DMA pool allocator
Sep 22 10:43:50 office kernel: [    5.336424] [drm] fb mappable at 0xFC000000
Sep 22 10:43:50 office kernel: [    5.336426] [drm] vram aper at 0xFC000000
Sep 22 10:43:50 office kernel: [    5.336428] [drm] size 33554432
Sep 22 10:43:50 office kernel: [    5.336429] [drm] fb depth is 24
Sep 22 10:43:50 office kernel: [    5.336430] [drm]    pitch is 3072
Sep 22 10:43:50 office kernel: [    5.336529] fbcon: cirrusdrmfb (fb0) is primary device
Sep 22 10:43:50 office kernel: [    5.808324] Console: switching to colour frame buffer device 128x48
Sep 22 10:43:50 office kernel: [    5.829423] Adding 1949692k swap on /dev/mapper/vg0-swap.  Priority:-1 extents:1 across:1949692k FS
Sep 22 10:43:50 office kernel: [    5.864259] cirrus 0000:00:02.0: fb0: cirrusdrmfb frame buffer device
Sep 22 10:43:50 office kernel: [    6.060334] [drm] Initialized cirrus 1.0.0 20110418 for 0000:00:02.0 on minor 0
Sep 22 10:43:50 office kernel: [    6.289230] EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: (null)
Sep 22 10:43:50 office kernel: [    6.321477] EXT4-fs (dm-7): mounted filesystem with ordered data mode. Opts: (null)
Sep 22 10:43:50 office kernel: [    6.325234] EXT4-fs (dm-5): mounted filesystem with ordered data mode. Opts: (null)
Sep 22 10:43:50 office kernel: [    6.377356] EXT4-fs (dm-6): mounted filesystem with ordered data mode. Opts: (null)
Sep 22 10:43:50 office kernel: [    6.377871] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null)
Sep 22 10:43:50 office kernel: [    6.397282] EXT4-fs (dm-4): mounted filesystem with ordered data mode. Opts: (null)
Sep 22 10:43:50 office kernel: [    6.397728] EXT4-fs (dm-8): mounted filesystem with ordered data mode. Opts: (null)
Sep 22 10:43:50 office systemd[1]: Started D-Bus System Message Bus.
Sep 22 10:43:50 office /usr/sbin/irqbalance: Balancing is ineffective on systems with a single cpu.  Shutting down
Sep 22 10:43:50 office systemd-resolved[448]: Positive Trust Anchors:
Sep 22 10:43:50 office systemd[1]: Reached target System Time Synchronized.
Sep 22 10:43:50 office systemd[1]: apt-daily.timer: Adding 5h 6min 7.937099s random time.
Sep 22 10:43:50 office systemd[1]: Started Daily apt download activities.
Sep 22 10:43:50 office systemd[1]: apt-daily-upgrade.timer: Adding 23min 41.228829s random time.
Sep 22 10:43:50 office systemd[1]: Started Daily apt upgrade and clean activities.
Sep 22 10:43:50 office systemd[1]: Reached target Timers.
Sep 22 10:43:50 office systemd[1]: Started System Logging Service.
Sep 22 10:43:50 office systemd-resolved[448]: . IN DS 19036 8 2 49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5
Sep 22 10:43:50 office kernel: [    6.906495] Netfilter messages via NETLINK v0.30.
Sep 22 10:43:50 office systemd-resolved[448]: . IN DS 20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
Sep 22 10:43:50 office systemd-resolved[448]: Negative trust anchors: 10.in-addr.arpa 16.172.in-addr.arpa 17.172.in-addr.arpa 18.172.in-addr.arpa 19.172.in-addr.arpa 20.172.in-addr.arpa 21.172.in-addr.arpa 22.172.in-addr.arpa 23.172.in-addr.arpa 24.172.in-addr.arpa 25.172.in-addr.arpa 26.172.in-addr.arpa 27.172.in-addr.arpa 28.172.in-addr.arpa 29.172.in-addr.arpa 30.172.in-addr.arpa 31.172.in-addr.arpa 168.192.in-addr.arpa d.f.ip6.arpa corp home internal intranet lan local private test
Sep 22 10:43:50 office systemd[1]: Started Permit User Sessions.
Sep 22 10:43:50 office kernel: [    6.934761] nf_tables: (c) 2007-2009 Patrick McHardy <kaber@trash.net>
Sep 22 10:43:50 office systemd-resolved[448]: Using system hostname 'office'.
Sep 22 10:43:50 office systemd-resolved[448]: Switching to system DNS server 192.168.1.1.
Sep 22 10:43:50 office systemd[1]: Started Login Service.
Sep 22 10:43:50 office systemd[1]: Starting Daily apt upgrade and clean activities...
Sep 22 10:43:50 office systemd[1]: Started Getty on tty1.
Sep 22 10:43:50 office systemd[1]: Reached target Login Prompts.
Sep 22 10:43:50 office systemd[1]: Started OpenBSD Secure Shell server.
Sep 22 10:43:50 office kernel: [    7.037310] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
Sep 22 10:43:50 office systemd[1]: Started Network Name Resolution.
Sep 22 10:43:50 office systemd[1]: Started nftables.
Sep 22 10:43:50 office systemd[1]: Reached target Multi-User System.
Sep 22 10:43:50 office systemd[1]: Reached target Graphical Interface.
Sep 22 10:43:50 office systemd[1]: Starting Update UTMP about System Runlevel Changes...
Sep 22 10:43:50 office systemd[1]: Started Update UTMP about System Runlevel Changes.
Sep 22 10:43:51 office systemd[1]: Started Daily apt upgrade and clean activities.
Sep 22 10:43:51 office systemd[1]: apt-daily-upgrade.timer: Adding 39min 8.637891s random time.
Sep 22 10:43:51 office systemd[1]: Startup finished in 3.758s (kernel) + 4.066s (userspace) = 7.824s.
Sep 22 10:43:51 office systemd[1]: apt-daily-upgrade.timer: Adding 34min 6.348079s random time.
SaBo ★★
() автор топика
Ответ на: А от anymouze
> sudo journalctl -u systemd-networkd.service
-- Logs begin at Sat 2018-09-22 10:43:47 UTC, end at Sat 2018-09-22 10:55:46 UTC. --
сен 22 10:43:48 office systemd-networkd[272]: Enumeration completed
сен 22 10:43:48 office systemd[1]: Started Network Service.
сен 22 10:43:48 office systemd-networkd[272]: ens3: IPv6 disabled for interface: Success
сен 22 10:43:48 office systemd-networkd[272]: ens3: Gained carrier
сен 22 10:43:48 office systemd-networkd[272]: ens3: DHCPv4 address 192.168.1.12/24 via 192.168.1.1
SaBo ★★
() автор топика

Поменял секцию `Network` таким образом:

[Network]
DHCP=ipv4
LinkLocalAddressing=no
IPv6AcceptRA=no

Теперь интерфейс настроен:

> sudo networkctl 
IDX LINK             TYPE               OPERATIONAL SETUP     
  1 lo               loopback           carrier     unmanaged 
  2 ens3             ether              routable    configured

2 links listed.
SaBo ★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.