This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Configuring LAN interface to use VLAN on LAGG Not Working

NIC, network controllers, compatibility questions, WOL, wake on lan
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
tuaris
experienced User
experienced User
Posts: 85
Joined: 19 Jul 2012 21:31
Contact:
Status: Offline

Configuring LAN interface to use VLAN on LAGG Not Working

Post by tuaris »

Configuring the LAN interface to use a VLAN with the parent device as a LAGG results in networking not being setup correctly. Example:

Setup lagg0 using two physical devices bge0 and bge1.
Image

Create a vlan0 device for network A and vlan1 device for network B. Both using the newly created lagg0 device as the parent.
Image

Set the LAN interface to use the newly created vlan0 device.
Image

The above config results in an incorrectly configured system at boot time.

Code: Select all

# ifconfig
bge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
	ether 00:21:5e:4d:61:98
	hwaddr 00:21:5e:4d:61:98
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: Ethernet autoselect
bge1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE>
	ether 00:21:5e:4d:61:99
	hwaddr 00:21:5e:4d:61:99
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: Ethernet autoselect
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128 
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 
	inet 127.0.0.1 netmask 0xff000000 
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
	groups: lo 
vlan0: flags=8003<UP,BROADCAST,MULTICAST> metric 0 mtu 1500
	ether 00:00:00:00:00:00
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	vlan: 0 vlanpcp: 0 parent interface: <none>
	groups: vlan 
vlan1: flags=8002<BROADCAST,MULTICAST> metric 0 mtu 1500
	ether 00:00:00:00:00:00
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	vlan: 0 vlanpcp: 0 parent interface: <none>
	groups: vlan 

Code: Select all

# cat /etc/rc.conf
...
ifconfig_vlan0="inet 192.168.0.241/24 vlan 1 vlandev lagg0"
defaultrouter="192.168.0.100"
netwait_enable="YES"
netwait_ip="192.168.0.100"
netwait_if="vlan0"
cloned_interfaces="vlan0 vlan1"
...

octave
experienced User
experienced User
Posts: 123
Joined: 30 Sep 2013 12:37
Status: Offline

Re: Configuring LAN interface to use VLAN on LAGG Not Working

Post by octave »

hi

just a question ==> is your switch accepted vlan and be managed ?
Project
Cluster Pfsense (end)
Cluster ESXI /Hyperv (standby)
Cluster NAS/SAN (in project)
---
2x Dell Poweredge C6100
2x SuperMicro X8dth-i (NAS/SAN Build) ISCSI

User avatar
tuaris
experienced User
experienced User
Posts: 85
Joined: 19 Jul 2012 21:31
Contact:
Status: Offline

Re: Configuring LAN interface to use VLAN on LAGG Not Working

Post by tuaris »

Yes, this is a layer 3 managed switch.

Post Reply

Return to “LAN , Network controllers”