Procedimento 1:
Acesse seu servidor pfSense via ssh.
Escolha a opção 8 (shell) e execute os comandos:
# ifconfig vlanXX create # ifconfig vlanXX vlan XX vlandev xn0
Onde o XX é o id-tag da vlan. Após isso você será capaz de utilizar vlans em seu pfSense virtualizado no XenServer.
Fonte: https://people.freebsd.org/~arved/vlan/vlan_en.html
Procedimento 2:
Navegue até
Diagnostic > Edit File
Na caixa “path do file to be edited” copie e cole:
/etc/inc/interfaces.inc
Clique em Load
Pressione CTRL+F e localize a função: is_jumbo_capable
/****f* interfaces/is_jumbo_capable
* NAME
* is_jumbo_capable - Test if interface is jumbo frame capable. Useful for determining VLAN capability.
* INPUTS
* $int - string containing interface name
* RESULT
* boolean - true or false
******/
function is_jumbo_capable($iface) {
$iface = trim($iface);
$capable = pfSense_get_interface_addresses($iface);
if (isset($capable['caps']['vlanmtu']))
return true;
// hack for some lagg modes missing vlanmtu, but work fine w/VLANs
if (substr($iface, 0, 4) == "lagg")
return true;
// hack for XenServer xn interfaces
if (substr($iface, 0, 2) == "xn")
return true;
return false;
}
Insira no seu arquivo a parte (// hack for XenServer…) em negrito e salve.
Após isso você poderá criar suas vlans em:
Interfaces > Assign > VLAN
Fonte: http://think-brick.blogspot.com.br/2016/02/pfsense-on-xenserver-enable-vlan.html
Fonte geral: https://eliasmoraispereira.wordpress.com/2016/10/05/pfsense-virtualizacao-com-xenserver-criando-vlans/