Page 1 of 1
CentOS8 Network
Posted: 2022/01/11 17:45:39
by ronel
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
Re: CentOS8 Network
Posted: 2022/01/11 18:02:15
by BShT
firewall?
Re: CentOS8 Network
Posted: 2022/01/11 18:07:09
by TrevorH
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.
Re: CentOS8 Network
Posted: 2022/01/11 18:10:51
by ronel
how do I configure NTP IP in CentOS8?
Re: CentOS8 Network
Posted: 2022/01/11 18:11:43
by ronel
disabled firewall still the same. Time on the machine is not correct, I want to set NTP
Re: CentOS8 Network
Posted: 2022/01/11 19:10:19
by tunk
Re: CentOS8 Network
Posted: 2022/01/12 11:04:40
by lightman47
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 ... ??
Re: CentOS8 Network
Posted: 2022/01/12 13:43:13
by ronel
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.
Re: CentOS8 Network
Posted: 2022/01/12 13:53:40
by jlehtone
ronel wrote: ↑2022/01/11 17:45:39
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.