Create Linux Bridge

subhasmita das

New Member
May 24, 2023
29
0
1
Hello,

I am new and trying to use proxmox, but I need a tutorial or help to create a Linux bridge for the vm but when i give IPV4 address and bridge ports its not creata linux bridge
Help please me?
1685954221686.png
1685954254606.png



Thanks
 
It appears to me that enp9s0 already has the IP address 172.9.79.242 assigned? as you are accessing the GUI interface on that IP?
 
Hi,
please post the output of cat /etc/network/interfaces. It seems like you assigned an IP to the interface itself, while trying to attach it to a bridge as bridge port (apart from being the same IP address as you already have for your host).
 
i go to the /etc/network/interfaces.d/*
and its comming something like this
1685964378624.png




and then i add the network and NAT setting its something look like this
1685964482424.png
Hi,
please post the output of cat /etc/network/interfaces. It seems like you assigned an IP to the interface itself, while trying to attach it to a bridge as bridge port (apart from being the same IP address as you already have for your host).

could you please help me to relosved the issue


1685978876992.png
 
Hi,
please post the output of cat /etc/network/interfaces. It seems like you assigned an IP to the interface itself, while trying to attach it to a bridge as bridge port (apart from being the same IP address as you already have for your host).
1685980975416.png
 
1685981108853.png
could help me to what i put in ipv4 and gateway bridge port i didint understand it could help me to creat linux bridge
 
There are several things to adapt here. First of all, what is your goal here? Do you want a bridged network setup or a NAT setup?

For a bridged setup do not configure the IP and gateway (as well as the route which you don't need as this will be the default given by the gateway) on the interface itself. You want to do that on the bridge. See for example the bridged setup in our docs https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_default_configuration_using_a_bridge.

On the other hand, if your goal is to create a setup with the VMs being behind a NAT, you will have to setup the IP address and default gateway on the interface, but don't attach it to the bridge. The bridge will get a static IP address from a different private subnet (e.g.10.10.10.1/24) and you will setup the iptables rules to rewrite the source IP to the one on the interface for packets leaving that interface after routing. The example config can be found here https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_network_masquerading.
 

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!