Page 1 of 1

Centos 7.7 1908: failed to bring up/down networking

Posted: 2020/03/11 07:14:59
by jeshnavarro
Hi all,

can u help me here pls?
Unable to ping outside 8.8.8.8 or google.com but can ping 127.0.0.1


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
IPV6_ADDR_GEN_MODE=stable privacy
NAME=enp0s31f6
UUID=7708d5b8-a9a2-4396-9258d-f405717cb56c
DEVICE=enp0s31f6
ONBOOT=yes
IPV6_PRIVACY=no
IPADDR=192.168.88.6
PREFIX=24
GATEWAY=192.168.88.1
DNS=8.8.8.8


status network.service
img]https://i.ibb.co/hCHcFCW/89321543-62378 ... 0912-n.jpg[/img]

Re: Centos 7.7 1908: failed to bring up/down networking

Posted: 2020/03/11 11:05:02
by tunk
Can you ping the gateway?

Re: Centos 7.7 1908: failed to bring up/down networking

Posted: 2020/03/11 11:46:12
by jlehtone
How about

Code: Select all

systemctl status NetworkManager.service
The NM is the default, not the network.service. You config does not tell NM to keep its hands off this connection, and therefore network.service assumes that NM will handle everything.

To create connection "lan" on device "enp0s31f6" with NM:

Code: Select all

sudo nmcli con add type ethernet con-name lan ifname enp0s31f6 ip4 192.168.88.6 gw4 192.168.88.1 ipv4.dns 8.8.8.8
PS. Why do you config ipv4 manually? Doesn't your router offer DHCP?

Re: Centos 7.7 1908: failed to bring up/down networking

Posted: 2020/03/12 04:47:04
by afewgoodman
Hi,

I think you don't use name of script, ifcfg-eth1, suffix should be matched with "DEVICE" on your script as like ifcfg-enp0s31f6.

BR.