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
by
>>> Can't you get that value from DHCP server of the network?
what is the command to take this value?
regards