Project

General

Profile

Actions

Bug #10669

closed

v. 2.4.5-RELEASE-p1 (amd64) non working vlans in xen (xcp-ng)

Added by Petri Nikkonen over 5 years ago. Updated over 5 years ago.

Status:
Not a Bug
Priority:
Normal
Assignee:
-
Category:
Interfaces
Target version:
-
Start date:
06/17/2020
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4.5-p1
Affected Architecture:

Description

With version 2.4.4-RELEASE-p3 (amd64) in xcp-ng (xen) hypervisor the non working vlans could be fixed by adding the following lines to the /etc/inc/interfaces.inc file (following the instructions by: http://think-brick.blogspot.com/2016/02/pfsense-on-xenserver-enable-vlan.html) >>

" // hack for XenServer xn interfaces
if (substr($iface, 0, 2) == "xn")
return true;"

However with version 2.4.5-RELEASE-p1 (amd64) this does not work anymore.
Also if upgraded from 2.4.4-RELEASE-p3 to 2.4.5-RELEASE-p1 this breaks and therefore vlans could not be added after upgrade.

Actions #1

Updated by Jim Pingle over 5 years ago

  • Status changed from New to Not a Bug

After #9548 the test which restricted it before is no longer present. The change suggested on that blog post is no longer necessary on 2.5.0 as there is no testing made except to exclude virtual interfaces like IPsec VTI

Xen was excluded from VLANs years ago because the driver had stability problems with VLANs (See #4103 for example)

Making the change suggested by that blog post on 2.4.5-p1 should work:

diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc
index df8abd937b..84304f78a8 100644
--- a/src/etc/inc/interfaces.inc
+++ b/src/etc/inc/interfaces.inc
@@ -6795,6 +6795,10 @@ function is_jumbo_capable($iface) {
         return true;
     }

+    if (substr($iface, 0, 2) == "xn") {
+        return true;
+    }
+
     return false;
 }

As there is nothing actionable here, I'm closing it out. If the above change doesn't work, make a post on the forum asking for assistance.

Actions

Also available in: Atom PDF