Can't find gateway

Latest response

I have just installed Redhat 7.7 on a Virtualbox.

I edited ifcfg-enp0s3 to add my network info:

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=enp0s3
UUID=xxxx
DEVICE=enp0s3
ONBOOT=yes
BROADCAST=x.x.x.255
IPADDR=x.x.x.198
NETMASK=255.255.255.0
GATEWAY=x.x.x.209

I then issued service network restart

I can ping my local device x.x.x.198, but I can not ping the gateway.

Any suggestions on how to proceed would be greatly appreciated.

Responses

Hey you are providing only host id (x.x.x.209: here 209 is host id| x.x.x.255 is host id) and subnet mask is hoping to get ans? No one can determine if your device is on same logical network or not using that information (best of my knwledge). Please make sure both x.x.x (last octate ca be anything from 1 to 254) value is same as your netmask is 255.255.255.0

They are all 192.9.200. The values are fine, the windows pc connects to the network fine. I'm not an admin, I'm assuming there's some other file I need to edit or some other setting I need to add as I've never set up a network on Redhat before. Or, there's an issue because of Virtualbox?