I have server with two NIC. One is for intranet (ens160) and second is for access to internet (ens192). I tried to set this configuration through netplan and tried several combinations, unfortunately I have a problem with incoming connection from intranet e.g. I am not able to connect by ssh to the server.
This is my netplan configuration
network:
ethernets:
ens160:
addresses:
- 10.133.30.61/24
nameservers:
addresses:
- 10.133.24.222
search: []
routes:
- to: 10.133.30.0/24
via: 10.133.30.1
ens192:
dhcp4: true
version: 2
Internet works, I can ping another servers in intranet, but as I said, I am not able to connect to this server.
However if I change netplan configuration to this, ping/ssh works, but internet doesn't
network:
ethernets:
ens160:
addresses:
- 10.133.30.61/24
nameservers:
addresses:
- 10.133.24.222
search: []
routes:
- to: default
via: 10.133.30.1
ens192:
dhcp4: true
version: 2
Could someone help me, how to solve this problem?