interface enp2s0: ERROR - yes, CentOS 8.4.2105

Issues related to applications and software problems and general support
Post Reply
Windows
Posts: 59
Joined: 2021/06/16 13:20:01

interface enp2s0: ERROR - yes, CentOS 8.4.2105

Post by Windows » 2021/06/16 23:15:05

hello,

today I find this error:

Code: Select all

[root@*** home]# systemctl status network.service
â network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network; generated)
   Active: active (exited) since Wed 2021-06-16 17:58:46 -05; 10min ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 0 (limit: 203206)
   Memory: 0B
   CGroup: /system.slice/network.service

Jun 16 17:58:45 *** systemd[1]: Starting LSB: Bring up/down networking...
Jun 16 17:58:45 *** network[14629]: WARN      : [network] You are using 'network' service provided by 'network-scripts', which are now deprecated.
Jun 16 17:58:45 *** network[14629]: WARN      : [network] 'network-scripts' will be removed in one of the next major releases of RHEL.
Jun 16 17:58:45 *** network[14629]: WARN      : [network] It is advised to switch to 'NetworkManager' instead for network management.
Jun 16 17:58:45 *** network[14629]: Bringing up loopback interface:  [  OK  ]
Jun 16 17:58:45 *** network[14629]: Bringing up interface enp2s0:  ERROR     : [ipv6_set_default_route] Given IPv6 default gateway 'fe80::1' is link-local, but no scope or >
Jun 16 17:58:46 *** network[14629]: [  OK  ]
Jun 16 17:58:46 *** systemd[1]: Started LSB: Bring up/down networking.

[root@*** home]# cat /etc/system-release;
CentOS Linux release 8.4.2105
[root@*** home]#

https://pasteboard.co/K6WlhFP.png

how I can fixed?
why exists ?

(https://bugs.centos.org/view.php?id=7351&nbn=24)

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: interface enp2s0: ERROR - yes, CentOS 8.4.2105

Post by jlehtone » 2021/06/17 06:32:12

The error message looks incomplete:
Given IPv6 default gateway 'fe80::1' is link-local, but no scope or >
"or" what?

The reason why the output is "chopped" is because systemctl uses pager, less and less allows you to "scroll horizontally".
In order to see whole lines you can use:

Code: Select all

systemctl --no-pager -l status network.service
Note: systemctl status shows only some lines of the log. To see more:

Code: Select all

journalctl --no-pager -u network.service

You surely know that link-local IPv6 addresses must contain the interface through which that can be accessed?


PS. Why do you use network.service and not NetworkManager.service?
More importantly, did you set gateway manually? Can't you get that value from DHCP server of the network?

Windows
Posts: 59
Joined: 2021/06/16 13:20:01

Re: interface enp2s0: ERROR - yes, CentOS 8.4.2105

Post by Windows » 2021/06/17 12:00:49

May thanks by your response.

With your instruction now I fix the command and we get COMPLET output:

https://pasteboard.co/K71h3h5.png

Code: Select all

[root@pepsi home]# nmcli dev status
Error: NetworkManager is not running.
[root@pepsi home]# systemctl --no-pager -l status network.service
? network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network; generated)
   Active: active (exited) since Thu 2021-06-17 06:15:00 -05; 15min ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 0 (limit: 203164)
   Memory: 0B
   CGroup: /system.slice/network.service

Jun 17 06:15:00 pepsi systemd[1]: Starting LSB: Bring up/down networking...
Jun 17 06:15:00 pepsi network[18724]: WARN      : [network] You are using 'network' service provided by 'network-scripts', which are now deprecated.
Jun 17 06:15:00 pepsi network[18724]: WARN      : [network] 'network-scripts' will be removed in one of the next major releases of RHEL.
Jun 17 06:15:00 pepsi network[18724]: WARN      : [network] It is advised to switch to 'NetworkManager' instead for network management.
Jun 17 06:15:00 pepsi network[18724]: Bringing up loopback interface:  [  OK  ]
Jun 17 06:15:00 pepsi network[18724]: Bringing up interface enp2s0:  ERROR     : [ipv6_set_default_route] Given IPv6 default gateway 'fe80::1' is link-local, but no scope or gateway device is specified
Jun 17 06:15:00 pepsi network[18724]: [  OK  ]
Jun 17 06:15:00 pepsi systemd[1]: Started LSB: Bring up/down networking.
[root@pepsi home]# journalctl --no-pager -u network.service
-- Logs begin at Thu 2021-06-17 06:06:00 -05, end at Thu 2021-06-17 06:30:35 -05. --
Jun 17 06:15:00 pepsi systemd[1]: Starting LSB: Bring up/down networking...
Jun 17 06:15:00 pepsi network[18724]: WARN      : [network] You are using 'network' service provided by 'network-scripts', which are now deprecated.
Jun 17 06:15:00 pepsi network[18724]: WARN      : [network] 'network-scripts' will be removed in one of the next major releases of RHEL.
Jun 17 06:15:00 pepsi network[18724]: WARN      : [network] It is advised to switch to 'NetworkManager' instead for network management.
Jun 17 06:15:00 pepsi network[18724]: Bringing up loopback interface:  [  OK  ]
Jun 17 06:15:00 pepsi network[18724]: Bringing up interface enp2s0:  ERROR     : [ipv6_set_default_route] Given IPv6 default gateway 'fe80::1' is link-local, but no scope or gateway device is specified
Jun 17 06:15:00 pepsi network[18724]: [  OK  ]
Jun 17 06:15:00 pepsi systemd[1]: Started LSB: Bring up/down networking.
[root@pepsi home]#
>>> You surely know that link-local IPv6 addresses must contain the interface through which that can be accessed?
sorry, my problem is in CentOS 7 all run fine, only with CentOS I have trouble with REBOOT.
>>> PS. Why do you use network.service and not NetworkManager.service?
becouse I install SW and:
""" On systems that run CentOS 8, this software installer will automatically disable the Network Manager service and enable the network.service service. """
>>> More importantly, did you set gateway manually?
Many thanks.

Really the most important files about my problem are:

Code: Select all

/etc/hosts
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-enp2s0
[CODE]?

or only the file[CODE]/etc/sysconfig/network-scripts/ifcfg-enp2s0
?

The code ORIGINAL of this file is:

Code: Select all

DEVICE=enp2s0
ONBOOT=yes
BOOTPROTO=none
IPADDR=My.Ip.Public.Dedicated
PREFIX=32
GATEWAY=Ip.Clients.Of.ISP
DEFROUTE=yes

IPV6INIT=yes
IPV6ADDR=IS.INSECURE.SHOW.HERE?::2/64
IPV6_DEFAULTGW=fe80::1
IPV6_DEFROUTE=yes
then I change

Code: Select all

BOOTPROTO=none
by

Code: Select all

BOOTPROTO=static
>>> Can't you get that value from DHCP server of the network?
what is the command to take this value?

regards

Post Reply