[SOLVED] Wrong default gateway, cannot ping to VM bridge network

hthuong09

Member
Sep 9, 2018
2
0
6
Hello,

I'm trying to install pfSense on Proxmox, but I'm facing a problem with routing.
First, this is my network "diagram",

i.imgur.com/pcpUZYo.png

Proxmox network configurations

i.imgur.com/wzIRXZ9.png

Routing on machine:
i.imgur.com/afAY584.png

For some reason I cannot ping to host (10.0.1.50) to guest (pfSense/10.0.1.1). As well as set default gateway to pfsense/10.0.1.1

I guess this is a routing problem. Could you guys please look into this? Thanks.

P/S: I'm sorry I could not post links just yet.
 
can you post the content of /etc/network/interfaces?
i have a somewhat similar setup at home and the screenshots look good (except the routing, the default gateway should be 10.0.1.1, are you sure you rebooted your host after setting the ips/gateways?)
also your screenshot says that proxmox does not have an ip on vmbr0, but it has one configured, not sure which one is correct and which is wrong
 
I'm not sure what went wrong, but after I changed the setting again and reboot, default gateway changed to 10.0.1.1. But if default gateway is 10.0.1.1, I can no longer connect to the internet.
Below are my interfaces file at the moment
Code:
auto lo
iface lo inet loopback

iface enp0s31f6 inet manual

iface enp1s0 inet manual

auto vmbr0
iface vmbr0 inet static
    address  192.168.1.20
    netmask  255.255.255.0
    gateway  192.168.1.1
    bridge_ports enp0s31f6
    bridge_stp off
    bridge_fd 0

auto vmbr1
iface vmbr1 inet static
    address  10.0.1.50
    netmask  255.255.255.0
    bridge_ports enp1s0
    bridge_stp off
    bridge_fd 0
 

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!