PVE cannot access the Internet after installing openwrt

xminghk

New Member
Nov 19, 2024
9
0
1
20250103.jpg
Bridgee ports in PVE: enp2s0.100 (add this), Network Card-Properties-Advanced-VLANN ID value set to 100 so that you can access the Internet. If you don’t set it this way, you can’t access the Internet at all.
 

Attachments

  • 2025010301.jpg
    2025010301.jpg
    331.5 KB · Views: 7
Last edited:
As I understand you have two NIC on your Proxmox and you virtualise the openwrt on it?

If thats you're architecture then create one Bridge for WAN (vmbr1) where you add the NIC-Port to your Cablemodem as member. The second Bridge would be your LAN(vmbr0) with the other NIC Port as Member.

On the Openwrt VM add two NetworkDevice one to vmbr1(WAN) the other to vmbr0 (LAN)

In your actual config you specified the VLAN100 by adding it after the dot on the Interfacename on the vmbr0

Does this help?
 
As I understand you have two NIC on your Proxmox and you virtualise the openwrt on it?

If thats you're architecture then create one Bridge for WAN (vmbr1) where you add the NIC-Port to your Cablemodem as member. The second Bridge would be your LAN(vmbr0) with the other NIC Port as Member.

On the Openwrt VM add two NetworkDevice one to vmbr1(WAN) the other to vmbr0 (LAN)

In your actual config you specified the VLAN100 by adding it after the dot on the Interfacename on the vmbr0

Does this help?
Thanks for your reply, I tried it but it doesn't work.
 
Could you post a screenshot of your proxmox Host Networkconfig or the output of

Code:
cat /etc/network/interfaces

Have you setted up the VLAN100 on your openwrt? With my proposed Setup you MUST not use VLAN on your OpenWRT Config
 
Change enp2s0.100 on vmbr0 to enp2s0
I cannot access the Internet after changing enp2s0.100 on vmbr0 to enp2s0. It used to be enp2s0 by default, but I could not access the Internet. Later, someone taught me to add a parameter at the end, which should be the same as the VLAN ID value parameter on the network card, so that I can access the Internet.
 
.... Wait you marked your VM-Bridge (vmbr0) as VLAN-Aware do you realy need that? I had sometimes trouble with untagged Traffic on such Setups... if you don't need VLAN on that Bridge disable it and reboot your proxmox.

If you need VLANs on that Bridge you must purchase a Switch which handle the VLAN Tagging.

Other Possibility is changing from LinuxBridge to ovs.
 
Last edited:
.... Wait you marked your VM-Bridge (vmbr0) as VLAN-Aware do you realy need that? I had sometimes trouble with untagged Traffic on such Setups... if you don't need VLAN on that Bridge disable it and reboot your proxmox.

If you need VLANs on that Bridge you must purchase a Switch which handle the VLAN Tagging.

Other Possibility is changing from LinuxBridge to ovs.
Hello, I cannot access the Internet after marking VM-Bridge (vmbr0) as VLAN-Aware. Thank you!
 
When you are on your setup with VLAN 100 tagged on Proxmox and your what IP do you get on your PC?

The vmbr0 should not be marked as VLAN aware. Have you rebooted or reloaded the Networking Service after changing the Bridge settings?

So to explain what I understand... Openwrt and Proxmox egress Traffic on vmbr0 without VLAN-Tag... as your first Screenshot of /etc/network/interfaces show that you have marked vmbr0 as VLAN-aware.
To put all traffic through your enp2s0 NIC Port to your switch it must be specified without Tag... when you add it on the bridge with enp2s0.100 you Tag all egress/ingress Traffic to VLAN100.

So if you want to work without tagged Traffic set vmbr0 not as VLAN aware, add enp2s0 as Member (not .100), reboot the pve (Network changes should apply then) delete the VLAN Setting on your NIC (reboot also resolves some mess with vlan tags). And it should work.

Could you provide some Infos about your Switch? Provide the Hardwaresettings of the openwrt VM.
 
When you are on your setup with VLAN 100 tagged on Proxmox and your what IP do you get on your PC?

The vmbr0 should not be marked as VLAN aware. Have you rebooted or reloaded the Networking Service after changing the Bridge settings?

So to explain what I understand... Openwrt and Proxmox egress Traffic on vmbr0 without VLAN-Tag... as your first Screenshot of /etc/network/interfaces show that you have marked vmbr0 as VLAN-aware.
To put all traffic through your enp2s0 NIC Port to your switch it must be specified without Tag... when you add it on the bridge with enp2s0.100 you Tag all egress/ingress Traffic to VLAN100.

So if you want to work without tagged Traffic set vmbr0 not as VLAN aware, add enp2s0 as Member (not .100), reboot the pve (Network changes should apply then) delete the VLAN Setting on your NIC (reboot also resolves some mess with vlan tags). And it should work.

Could you provide some Infos about your Switch? Provide the Hardwaresettings of the openwrt VM.
It should have nothing to do with the openwrt vm hardware settings
 
So go for ovs bridge. You'd find tutorials in the offical pve wiki. That might help overcome your issues with untagged Packets
OK, I'll look for the relevant tutorials then. Thank you for your enthusiastic answer. I really appreciate it!
 

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!