IPv6 works but not IPv4

I just installed a Tumbleweed server and during install I added IPv6.

After the server was install I used network manager to set up an IPv4 address, but no matter what I do, I get “Network Unreachable”.

Command used to add IPv4 address:
nmcli con mod ens18 +ipv4.addresses “xxx.xxx.xxx.xxx/xx”

From another server where the IPv4 is working, it seems that the new server is missing this line:
route4 default via xxx.xxx.xxx.xxx metric 100

@nsordk Hi and welcome to the Forum :smile:

You need to add the gateway as well…

nmcli connection modify <connection_name> ipv4.addresses <ip_address>/<subnet_mask> ipv4.gateway <new_gateway_ip>

Or just go and edit the file manually in /etc/NetworkManager/system-connections/

1 Like

@malcolmlewis thank you so much.

I thought I had already did that, but I might have done something wrong the first time. Everything works now.

1 Like