I am trying to set a static ip address on an ubuntu server 22. It is a fresh install.
The issue I am having is I cannot access the server from a different subnet. I have tried everything I can think of. I normally am not this silly with basic networking but I am not use to the new style of netplan.
Here is my config.
# This is the network config written by 'subiquity'
network:
ethernets:
ens18:
addresses:
- 192.168.1.80/22
nameservers:
addresses:
- 192.168.1.1
search:
- internal. .co
routes:
- to: default
via: 192.168.1.1
version: 2
My DHCP scope is 192.168.3.0/24. My servers live on 192.168.1.0/24.
My subnet is /22.
When I ping from 192.168.3.100 I get no response and cannot SSH.
When I ping from 192.168.1.10 I get a response.
My ubuntu server 192.168.1.80 can ping google.
What am I missing?
Thank you
Edit:
I have included the screenshot of ifconfig ens18
ifconfig
My desktop is on IP 192.168.3.113.
My physical host is on IP 192.168.1.10
My windows server is on IP 192.168.1.20
This Ubuntu Server is on IP 192.168.1.80
My desktop can ping the physical server and windows server but not the ubuntu server.
My physical server can ping the windows server, my desktop, and the ubuntu server.
The ubuntu server can ping google, the physical server but not my desktop.