ProxMox

georgelza

Expert Member
Joined
Sep 13, 2004
Messages
1,032
Reaction score
75
Location
Johannesburg/Alberton
hi all

Serious noob here wrt Proxmox. Need some assistance.

I have my proxmox host deployed, with physical ip of 172.16.10.61 - vlan0 (primary management interface).
I also have vlan30 (172.16.30.11 / vmotion) and vlan40 (172.16.40.11 / storage).
For now all of this is via a 2.5GbE Cat6 connection, vlan40 will be moving onto dedicated 10GbE sfp+ link eventually.
I need to configure these networks etc on the proxmox...
then want to create a simple ubuntu vm... as a tested before looking at deploying a 3 way K3s or K8s cluster.
More proxmox hosts to be added creating/expanding into a cluster.
G
 
Hi Georgelza,

To allow vlans to work you will need to update your /etc/network/interfaces to something like the below, changing the physical nic names to match your own. In the example below there are two vlans 10+30 present on the VMBR0 and one (40) present on the VMBR1 which would represent your 10Gb SFP+ NIC once connected.

If the host (hypervisor) does not need to access the vlan network then there is no need to add them below as the vlan tag can be applied inside the VM under Hardware > Network > Tag.

auto vmbr0
iface vmbr0 inet static
bridge-ports eno1
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094

auto vmbr0.10
iface vmbr0.10 inet static
address 172.16.10.61
gateway 172.16.10.x

auto vmbr0.30
iface vmbr0.10 inet static
address 172.16.30.11

auto vmbr1
iface vmbr1 inet static
bridge-ports eno2
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094

auto vmbr1.40
iface vmbr0.40 inet static
address 172.16.40.11/24
 
how would i define a static route... aka all traffic to go through to 172.16.40.0 network must go out via the fiber port, aka gateway 172.16.40.1
and for 172.16.10.0 172.16.30.0 it uses the default gateway, or network specific...
G
 
how would i define a static route... aka all traffic to go through to 172.16.40.0 network must go out via the fiber port, aka gateway 172.16.40.1
and for 172.16.10.0 172.16.30.0 it uses the default gateway, or network specific...
G
All devices on the 172.16.40.X subnet should be reachable without adding a static route with the above config as you have added a local IP 172.16.40.11/24 to the vlan sub-interface and there would be a dynamic entry in the routing table.

If you do what do specify a static route, this can be done like any other Debian host.

ip route add 10.x.x.0/24 via 10.x.x.1 dev ethx
 
Top
Sign up to the MyBroadband newsletter