vlan only eth interface for unraid


Recommended Posts

Hi guys,

 

what's the proper settings of parent eth0 interface when I want to use it in trunk mode but only with tagged vlans ?

There's no option to set it as 'none'. Only automatic and static. With automatic settings unraid is not getting an ip (which is understandable as there's no network configured, nor dhcp).

 

I'm running pfsense in vm with 2 nics passthrough (wan + lan interface configured vlans only, parent interface is not set, this is recommended configuration for the interface with vlans) serving as router/fw for my network (including unraid).

 

Thanks for your input.

Link to comment
  • 2 years later...

Well, there is a way to do that, but I assume you have to edit /boot/config/network.cfg for that.

What I do is the following:
IFNAME[0]="eth0"
PROTOCOL[0]="ipv4"
USE_DHCP[0]="no"
DHCP_KEEPRESOLV="yes"
DNS_SERVER1="192.168.1.1"
USE_DHCP6[0]="no"
DHCP6_KEEPRESOLV="no"
DESCRIPTION[0,1]="eth0.1 - Data VLAN"
VLANID[0,1]="1"
PROTOCOL[0,1]="ipv4"
USE_DHCP[0,1]="yes"
DESCRIPTION[0,2]="eth0.10 - Data VLAN"
VLANID[0,2]="10"
PROTOCOL[0,2]="ipv4"
USE_DHCP[0,2]="no"
IPADDR[0,2]="192.168.10.11"
NETMASK[0,2]="255.255.255.0"
DESCRIPTION[0,3]="eth0.20 - Data VLAN"
VLANID[0,3]="20"
PROTOCOL[0,3]="ipv4"
DESCRIPTION[0,4]="eth0.4094 - Data VLAN"
VLANID[0,4]="4094"
PROTOCOL[0,4]="ipv4"
USE_DHCP[0,4]="no"
IPADDR[0,4]="192.168.255.11"
NETMASK[0,4]="255.255.255.0"
VLANS[0]="5"
SYSNICS="1"

 

However, this results in my date and time to run off after a while, unless I adapt and /etc/rc.d/rc.ntpd manually.

The line in the ntpd_start() procedure that defines what interface to use (ETH=eth0)  is changed to: ETH=eth0.1.

 

This file however gets overwritten each time there is a reboot, so that's a bummer.

 

At least I hope this helps to some of us, as I don't like to see untagged traffic on a link that should behave as a trunk link.

 

I hope this helps at least to some of us hanging out in the fora here 🙂

 

Marc






 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.