My VM don't have internet

issa2020

Active Member
Sep 9, 2020
85
4
28
Hello,

i got an issue

so i change my FAI, and i change on the file :

nano /etc/network/interfaces my gateaway to the new gateway so i got this :

Bash:
auto lo
iface lo inet loopback

iface enp2s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.1.10/24
        gateway 192.168.1.1
        bridge_ports enp2s0
        bridge_stp off
        bridge_fd 0

ok so now i reboot my proxmox

and i can ping and resolv google with shell PROXMOX :

Bash:
root@proxmox:~# ping google.fr
PING google.fr (142.250.74.227) 56(84) bytes of data.
64 bytes from par10s40-in-f3.1e100.net (142.250.74.227): icmp_seq=1 ttl=114 time=15.9 ms
64 bytes from par10s40-in-f3.1e100.net (142.250.74.227): icmp_seq=2 ttl=114 time=14.9 ms
64 bytes from par10s40-in-f3.1e100.net (142.250.74.227): icmp_seq=3 ttl=114 time=14.4 ms
64 bytes from par10s40-in-f3.1e100.net (142.250.74.227): icmp_seq=4 ttl=114 time=14.4 ms
^C
--- google.fr ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 7ms
rtt min/avg/max/mdev = 14.366/14.884/15.851/0.604 ms
root@proxmox:~# nslookup google.fr
Server:         1.1.1.1
Address:        1.1.1.1#53

Non-authoritative answer:
Name:   google.fr
Address: 142.250.75.227
Name:   google.fr
Address: 2a00:1450:4007:811::2003


Ok so on proxmox i got this :

1640114170065.png



and the DNS :

1640114217218.png



ok so now on my VM machine is a debian :
i got this hardware :
1640114280756.png

and my /etc/network/interfaces is this :

1640114311872.png

and i can't connect on ping google and nslookup not working

can u know how to fix this problem please ?

i can't understnad why my vm can 't connect to the network

thanks all

Edit :
i got more information

on my vm, i can ping my gateway :

but not ip from internet :
1640115209600.png
 
Last edited:
Your VM got a enabled firewall. Did you changed the firewall rules to match your new IPs?
 
This? https://forum.proxmox.com/threads/no-vm-ct-dns-resolving-on-fresh-install.101480/#post-437966

Every VM or CT that i try have no DNS resolution, i can ping and connect to IP but not to domains, i tried almost everything, changing host dns, changing vm dns, use a dns server that is in my lan, disable firewalls, disable IPv6 a even try another gateway from different ISP.
same problem and no solution

so the last way is to reinstall from scratch and not understand what's happening in proxmox :/
 
can you show your routes, addresses and links on the host and the guest?
Code:
ip route show
ip addr show
ip link show
 
can you show your routes, addresses and links on the host and the guest?
Code:
ip route show
ip addr show
ip link show

HOST:
Code:
root@servertest:~# ip route show
default via 192.168.1.1 dev vmbr0 proto kernel onlink
192.168.1.0/24 dev vmbr0 proto kernel scope link src 192.168.1.81


root@servertest:~# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp6s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr0 state UP group default qlen 1000
    link/ether 00:26:9e:3d:08:e0 brd ff:ff:ff:ff:ff:ff
3: enp6s0f1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:26:9e:3d:08:e1 brd ff:ff:ff:ff:ff:ff
4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:26:9e:3d:08:e0 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.81/24 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::226:9eff:fe3d:8e0/64 scope link
       valid_lft forever preferred_lft forever


root@servertest:~# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp6s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr0 state UP mode DEFAULT group default qlen 1000
    link/ether 00:26:9e:3d:08:e0 brd ff:ff:ff:ff:ff:ff
3: enp6s0f1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:26:9e:3d:08:e1 brd ff:ff:ff:ff:ff:ff
4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether 00:26:9e:3d:08:e0 brd ff:ff:ff:ff:ff:ff

Debian 11 GUEST CT:
Code:
root@CTtest:~# ip route show
default via 192.168.1.1 dev eth0
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.94


root@CTtest:~# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0@if5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether b2:4e:c0:fe:97:f4 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 192.168.1.94/24 brd 192.168.1.255 scope global dynamic eth0
       valid_lft 28692sec preferred_lft 28692sec
    inet6 fe80::b04e:c0ff:fefe:97f4/64 scope link
       valid_lft forever preferred_lft forever


root@CTtest:~# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0@if5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether b2:4e:c0:fe:97:f4 brd ff:ff:ff:ff:ff:ff link-netnsid 0

Out of the box fresh install of proxmox and i dont touch anything inseide CT, default config with DHCP.