Difference between revisions of "Proxmox-Vyos-Linux Bridge-DHCP-VLANS"

From ppwiki
Jump to navigation Jump to search
Line 43: Line 43:
 
[[file:prox3.png]]
 
[[file:prox3.png]]
  
Do step 1 to 6 to create vmbr2 this time change the Bridge ports "eno2"
+
Do step 1 to 6 to create vmbr2 this time change the Bridge ports to "eno2"
  
  

Revision as of 00:28, 28 November 2020

I wanted to make this tutorial for two reasons. The first most important reason is because it took me five days to resolve a problem DHCP/PXE boot issue i was having in my network. This will maybe help others that are having the same issue I had or trying to get the same setup that I have. The second reason is I am moving from ESXI 6.7 to Proxmox. I will not be mirgrating my VN's from ESXI to Proxmox but will have a fresh install with the same VM"s I had in my ESXI environment.

Goal

The goal here is not to list all the VM"s in my environment but to setup two(2) Proxmox servers not in a cluster environment but independent servers and make VM's on both servers and on different VLAN's talk to each other. The most important part that took me five(5) days to resolve is, I wanted for VM's on server 1 to be able to get DHCP and PXE boot from a DHCP/PXE VM on server1 and server2 and VM's on server 2 to also be able to get DHCP and PXE boot from DHCP/PXE VM on server1 and server2.

Prerequisites

- Two(2) Proxmox servers (prox1 and prox2 in my case) running Proxmox 6.2

- At least 3 NIC's per server (eno1, eno2, eno3 and eno4 in my case)

- 2 switches. One 1GB switch for management and one 10GB switch to connect both prox1 and prox2

  • Physical connections


Prox1.png

Setup and Configuration

Create Linux Bridges

Just think of Linux Bridge like a physical switch By default, vmbr0 will already exist since Proxmox create vmbr0 during the installation process and my vmbr0 is connect to eno3 ( NIC #3). We are going to create vmbr1 and vmbr2.

vmbr1 will be the switch where all the VM's will be connected to and vmbr2 will be the switch that connects prox1 and prox2.

On prox1

1- login to your prox1 node by typing https://your_ip_addres:8006

2- Click on your prox1 node and click on "network"

3- Click on "Create Linux Bridge"

4- check the box that says "VLAN aware"

5- enter the Bridge ports (in my case eno1)

6- click on ok

Your configuration should look like the image below.

Prox3.png

Do step 1 to 6 to create vmbr2 this time change the Bridge ports to "eno2"


Prox4.png

On vmbr1 will will have four(4) different networks for each VLAN.

- 10.192.16.0/22  vlan-id = 20
- 10.192.32.0/22  vlan-id = 30
- 10.192.48.0/22  vlan-id = 40
- 10.192.64.0/22  vlan-id = 50

And on vmbr2 we will have 1 network

- 10.192.80.0/22  vlan-id = 99

Prox2.png

On prox2