Centos 7 VM Network not working

lps90

Member
May 21, 2020
211
10
23
Proxmox 7
Centos 7 VM
OVH Dedicated server

Hi guys
I just installed a Centos 7 vm, added a static ip and deactivated centos firewall.
I still cant ping the public network (ping 8.8.8.8 / ping google.com).
Anyone can tell me what could be the problem?

Regards
 
hi,

I just installed a Centos 7 vm, added a static ip and deactivated centos firewall.
I still cant ping the public network (ping 8.8.8.8 / ping google.com).

from the VM:
* can you ping your PVE's address?
* can you ping your router/gateway?

how is your network in the VM set up? please show us the network configuration and the VM configuration (qm config VMID from PVE)

and also your PVE's network configuration (/etc/network/interfaces)
 
hi,



from the VM:
* can you ping your PVE's address?
* can you ping your router/gateway?

how is your network in the VM set up? please show us the network configuration and the VM configuration (qm config VMID from PVE)

and also your PVE's network configuration (/etc/network/interfaces)
Hi, i recently switched from bridged network to routed network. My interfaces file at host is:

Code:
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto enp8s0
iface enp8s0 inet static
        address 157.90.xxx.27
        netmask 255.255.255.255
        pointopoint 157.90.xxx.1
        gateway 157.90.xxx.1
auto vmbr0
iface vmbr0 inet static
        address 157.90.xxx.27
        netmask 255.255.255.255
        bridge_ports none
        bridge_stp off
        bridge_fd 0
        up ip route add 157.90.xxx.5/32 dev vmbr0
        up ip route add 157.90.xxx.6/32 dev vmbr0
        up ip route add 157.90.xxx.7/32 dev vmbr0
        up ip route add 157.90.xxx.8/32 dev vmbr0
        up ip route add 157.90.xxx.9/32 dev vmbr0
        up ip route add 157.90.xxx.10/32 dev vmbr0

#       address 157.90.xxx.27/32
#       gateway 157.90.xxx.1
#       bridge-ports enp8s0
#       bridge-stp off
#       bridge-fd 1
#       pointopoint 157.90.xxx.1
#       bridge_hello 2
#       bridge_maxage 12

auto vmbr1
iface vmbr1 inet static
        address 157.90.xxx.129/29
        bridge-ports none
        bridge-stp off
        bridge-fd 0
#Subnet-route

I can ping host machine but i can't ping gateway ip from hetzner.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!