CentOS8 Network

Issues related to configuring your network
Post Reply
ronel
Posts: 20
Joined: 2021/09/27 18:24:17

CentOS8 Network

Post by ronel » 2022/01/11 17:45:39

I have a CentOS 8 machine. I configured static IP in /etc/sysconfig/network-scripts/ifcfg-eno1 and restarted the network manager using "sudo systemctl restart NetworkManager"
I can ping the gateway from that machine but can't ping any other device on LAN and can't even reach this CentOS8 machine from LAN.

Here is my network config

TYPE=Ethernet

PROXY_METHOD=none

BROWSER ONLY=no
BOOTPROTO=static

DEFROUTE=yes
IPV4_FAILURE_FATAL=no

IPV6INIT=yes

IPV6 AUTOCONF=yes
IPV6_DEFROUTE=yes

IPV6 FAILURE FATAL=no

NAME=eno1

UUID=4fa1de25-dbbc-46e5-89b3-8165120554af

DEVICE=enol

ONBOOT=yes

IPADDR=192.168.1.10

PREFIX=24

GATEWAY=192.168.1.1

BShT
Posts: 583
Joined: 2019/10/09 12:31:40

Re: CentOS8 Network

Post by BShT » 2022/01/11 18:02:15

firewall?

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS8 Network

Post by TrevorH » 2022/01/11 18:07:09

I can ping the gateway from that machine but can't ping any other device on LAN and can't even reach this CentOS8 machine from LAN.
The gateway is not used for any hosts within 192.168.1.0/24 as they can be reached directly from the machine without needing to go via the gateway ip.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ronel
Posts: 20
Joined: 2021/09/27 18:24:17

Re: CentOS8 Network

Post by ronel » 2022/01/11 18:10:51

how do I configure NTP IP in CentOS8?

ronel
Posts: 20
Joined: 2021/09/27 18:24:17

Re: CentOS8 Network

Post by ronel » 2022/01/11 18:11:43

disabled firewall still the same. Time on the machine is not correct, I want to set NTP

tunk
Posts: 1204
Joined: 2017/02/22 15:08:17

Re: CentOS8 Network

Post by tunk » 2022/01/11 19:10:19

I think C8 uses chronyd, and not ntpd:
https://access.redhat.com/documentation ... m-settings

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: CentOS8 Network

Post by lightman47 » 2022/01/12 11:04:40

but can't ping any other device on LAN and can't even reach this CentOS8 machine from LAN
Are you trying with their IP address, or their name? If name, then your DNS server has an issue. If address is not working then ??? - perhaps duplicate addresses ... ??

ronel
Posts: 20
Joined: 2021/09/27 18:24:17

Re: CentOS8 Network

Post by ronel » 2022/01/12 13:43:13

No Duplicate address, it is a static Network. I'm pinging the IP. DNS server has no issues everything working fine other than this machine.

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

Re: CentOS8 Network

Post by jlehtone » 2022/01/12 13:53:40

ronel wrote:
2022/01/11 17:45:39

Code: Select all

NAME=eno1
DEVICE=enol
Is that 'l' a typo?

Doesn't your gateway offer DHCP? It is really much more convenient to configure a network centrally at DHCP server than manually in individual machines.

What is between this machine and all the other machines of same subnet (including the gateway)?

If you do listen traffic with 'tcpdump' in multiple machines and attempt ping (both others in this machine and this machine from others), does that show ARP/ICMP traffic?


I would rather use 'nmcli' than edit any /etc/sysconfig/network-scripts/ifcfg-* -file directly. The nmcli does some syntax checking.

Post Reply