Celeb Glow
news | March 19, 2026

Netplan config with Gateway outside subnet

I'm having trouble with some routing. I cannot get to 192.168.1.1 Below is the config. I have tried with onlink and without. Not sure what onlink does really. There are a few switches this machine goes through before it would hit the router. is there something i'm missing? ip route show shows that it has added the routes correctly.

Thanks!

Netplan config

network: renderer: networkd ethernets: enp7s0: addresses: - 192.168.0.172/24 routes: - to: 0.0.0.0/0 via: 192.168.1.1 nameservers: addresses: - 192.168.1.1
version: 2
1

1 Answer

You have listed as your default gateway an address, 192.168.1.1, which is not part of the configured local network, 192.168.0.172/24. Either the gateway for your default route should be on the 192.168.0.0 network, or you need to provide information about what the intermediate router is that lets you get to 192.168.1.1.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy