Hey,
My setup at home is almost identical. APU with aggr interface and a couple of
VLANs:
https://github.com/liv-io/ansible-playbooks-example/blob/master/bsd/host_vars/fw01.example.com.yml
# cat /etc/hostname.em{1,2,3}
up
# cat /etc/hostname.aggr0
trunkport em1 trunkport em2 trunkport em3 lacpmode active lacptimeout slow
description "i_data"
up
# cat /etc/hostname.vlan11
inet 10.1.1.2 255.255.255.0 NONE vnetid 11 vlandev aggr0 description "v_base"
up
# cat /etc/hostname.carp11
inet 10.1.1.1 255.255.255.0 NONE vhid 1 carpdev vlan11 advskew 10 pass
"<password>" description "v_base"
# ifconfig aggr0
aggr0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
lladdr
description: i_data
index 11 priority 0 llprio 7
trunk: trunkproto lacp
trunk id: [(8000,,000B,0000,0000),
(8000,,0006,0000,0000)]
em1 lacp actor system pri 0x8000 mac, key 0xb, port pri 0x8000
number 0x2
em1 lacp actor state
activity,aggregation,sync,collecting,distributing
em1 lacp partner system pri 0x8000 mac, key 0x6, port pri
0x8000 number 0x12e
em1 lacp partner state
activity,aggregation,sync,collecting,distributing
em1 port active,collecting,distributing
em2 lacp actor system pri 0x8000 mac, key 0xb, port pri 0x8000
number 0x3
em2 lacp actor state
activity,aggregation,sync,collecting,distributing
em2 lacp partner system pri 0x8000 mac, key 0x6, port pri
0x8000 number 0x130
em2 lacp partner state
activity,aggregation,sync,collecting,distributing
em2 port active,collecting,distributing
em3 lacp actor system pri 0x8000 mac, key 0xb, port pri 0x8000
number 0x4
em3 lacp actor state
activity,aggregation,sync,collecting,distributing
em3 lacp partner system pri 0x8000 mac, key 0x6, port pri
0x8000 number 0x12f
em3 lacp partner state
activity,aggregation,sync,collecting,distributing
em3 port active,collecting,distributing
groups: aggr
media: Ethernet autoselect
status: active
It works well for me and I never had issues. I currently use a HP switch, but it
also works with Cisco.
Maybe some leftovers from the LACP config? I never encountered the "no carrier
status" issue though.
Let me know if I can extract any config for you.
HTH,
Livio
On 2020-12-12 16:44, Daniel Jakots wrote:
Hi,
I've been using a LACP trunk on my apu (with the three em(4)). On
top of which I have some vlans. I've been doing that for years and it's
working fine.
I thought about using aggr(4) instead (for no real reason). But the
aggr interface stays in "status: no carrier".
What I did is, I replaced my hostname.trunk0
trunkproto lacp trunkport em0 trunkport em1 trunkport em2
up
with a hostname.aggr0
trunkport em0 trunkport em1 trunkport em2
up
(and changing the parent in my hostname.vlan*). To apply the new
configuration, I just reboot.
My trunk0 which works is
trunk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:0d:b9:43:9f:fc
index 7 priority 0 llprio 3
trunk: trunkproto lacp
trunk id: [(8000,00:0d:b9:43:9f:fc,403C,0000,0000),
(0080,00:00:00:00:00:00,0000,0000,0000)]
em2 lacp actor system pri 0x8000 mac 00:0d:b9:43:9f:fc, key
0x403c, port pri 0x8000 number 0x3
em2 lacp actor state
activity,aggregation,sync,collecting,distributing,defaulted
em2 lacp partner system pri 0x80 mac 00:00:00:00:00:00, key
0x0, port pri 0x80 number 0x0
em2 lacp partner state aggregation,sync,collecting,distributing
em2 port active,collecting,distributing
em1 lacp actor system pri 0x8000 mac 00:0d:b9:43:9f:fc, key
0x403c, port pri 0x8000 number 0x2
em1 lacp actor state
activity,aggregation,sync,collecting,distributing,defaulted
em1 lacp partner system pri 0x80 mac 00:00:00:00:00:00, key
0x0, port pri 0x80 number 0x0
em1 lacp partner state aggregation,sync,collecting,distributing
em1 port active,collecting,distributing
em0 lacp actor system pri 0x8000 mac 00:0d:b9:43:9f:fc, key
0x403c, port pri 0x8000 number 0x1
em0 lacp actor state
activity,aggregation,sync,collecting,distributing,defaulted
em0 lacp partner system pri 0x80 mac 00:00:00:00:00:00, key
0x0, port pri 0x80 number 0x0
em0 lacp partner state aggregation,sync,collecting,distributing
em0 port active,collecting,distributing
groups: trunk
media: Ethernet autoselect
status: active
And the aggr0 which doesn't come up is:
aggr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:0d:b9:43:9f:fc
index 6 priority 0 llprio 7
trunk: trunkproto lacp
trunk id: [(8000,00:0d:b9:43:9f:fc,0006,0000,0000),
(0000,00:00:00:00:00:00,0000,0000,0000)]
em0 lacp actor system pri 0x8000 mac 00:0d:b9:43:9f:fc, key
0x6, port pri 0x8000 number 0x1
em0 lacp actor state activity,aggregation,defaulted
em0 lacp partner system pri 0x0 mac 00:00:00:00:00:00, key
0x0, port pri 0x0 number 0x0
em0 lacp partner state activity,aggregation,sync
em0 port
em1 lacp actor system pri 0x8000 mac 00:0d:b9:43:9f:fc, key
0x6, port pri 0x8000 number 0x2
em1 lacp actor state activity,aggregation,defaulted
em1 lacp partner system pri 0x0 mac 00:00:00:00:00:00, key
0x0, port pri 0x0 number 0x0
em1 lacp partner state activity,aggregation,sync
em1 port
em2 lacp actor system pri 0x8000 mac 00:0d:b9:43:9f:fc, key
0x6, port pri 0x8000 number 0x3
em2 lacp actor state activity,aggregation,defaulted
em2 lacp partner system pri 0x0 mac 00:00:00:00:00:00, key
0x0, port pri 0x0 number 0x0
em2 lacp partner state activity,aggregation,sync
em2 port
groups: aggr
media: Ethernet autoselect
status: no carrier
The only different thing I could see is the key (0x403c with trunk(4),
0x6 with aggr(4)) but I don't see how I could change it to try if it
matters.
Initially I thought the random lladdr from aggr(4) could be a problem
so I set it in the hostname.aggr0 file but it didn't help.
I don't see anything on the switch side I could change, and the log I
have is merely the ports going up or down when I reboot.
Any idea why aggr(4) stays in no carrier status?
Cheers,
Daniel