Hi.
I've got my proxmox server with 2 VM: ubuntu 20 and ubuntu 22. They are all in the same NAT vmbr1. Ubuntu 20 have network connection and i can update system
P.S. I can connect to ubuntu 22 server via ssh in NAT and via ssh from my PC in another city!
Info.
Debian, PROXMOX
cat /etc/network/interfaces
Ubuntu 20
sudo cat /etc/netplan/00-installer-config.yaml
Ubuntu 22
sudo cat /etc/netplan/00-default.yaml
I've got my proxmox server with 2 VM: ubuntu 20 and ubuntu 22. They are all in the same NAT vmbr1. Ubuntu 20 have network connection and i can update system
sudo apt update
. But ubuntu 22 can't connect to ubuntu servers and download data. What could be the problem?P.S. I can connect to ubuntu 22 server via ssh in NAT and via ssh from my PC in another city!
Info.
Debian, PROXMOX
cat /etc/network/interfaces
Bash:
auto lo
iface lo inet loopback
auto enp5s0
iface enp5s0 inet manual
#Ethernet
auto vmbr0
iface vmbr0 inet static
address my_ip_address/26
gateway my_gateway
bridge-ports enp5s0
bridge-stp off
bridge-fd 0
#External Bridge
auto vmbr1
iface vmbr1 inet static
address 192.168.1.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
#NAT
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE
Ubuntu 20
sudo cat /etc/netplan/00-installer-config.yaml
Bash:
network:
ethernets:
ens18:
addresses:
- 192.168.1.2/24
gateway4: 192.168.1.1
nameservers:
addresses:
- 8.8.8.8
optional: true
version: 2
renderer: networkd
Ubuntu 22
sudo cat /etc/netplan/00-default.yaml
Bash:
network:
ethernets:
ens18:
addresses:
- 192.168.1.33/24
nameservers:
addresses:
- 8.8.8.8
search:
- 8.8.8.8
routes:
- to: default
via: 192.168.1.1
optional: true #
version: 2
renderer: networkd #