Last active
March 30, 2023 13:33
-
-
Save pvalkone/9568061 to your computer and use it in GitHub Desktop.
How to set up LACP link aggregation with a HP 1810-8G v2 switch and FreeBSD 10.0-RELEASE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set up LACP on the switch | |
------------------------- | |
1) Log into the switch management interface (by default at http://192.168.2.10/). | |
2) Navigate to Trunks > Trunk Configuration | |
3) Set up a new trunk by giving it a name, choosing "LACP Active" mode and the ports you'd like to aggregate. Click "Apply". | |
FreeBSD setup | |
------------- | |
See: http://www.freebsd.org/doc/handbook/network-aggregation.html | |
1) Bring up the individual interfaces and create the lagg(4) interface. Then bring it up with the IP address 10.0.1.250/24: | |
# ifconfig igb0 up | |
# ifconfig igb1 up | |
# ifconfig lagg0 create | |
# ifconfig lagg0 up laggproto lacp laggport igb0 laggport igb1 10.0.1.250/24 | |
2) Verify the status of the interfaces: | |
# ifconfig | |
igb0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 | |
options=403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO> | |
ether bc:5f:f4:fd:aa:6b | |
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> | |
media: Ethernet autoselect (1000baseT <full-duplex>) | |
status: active | |
igb1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 | |
options=403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO> | |
ether bc:5f:f4:fd:aa:6b | |
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> | |
media: Ethernet autoselect (1000baseT <full-duplex>) | |
status: active | |
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> | |
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 | |
options=403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO> | |
ether bc:5f:f4:fd:aa:6b | |
inet 10.0.1.250 netmask 0xffffff00 broadcast 10.0.1.255 | |
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> | |
media: Ethernet autoselect | |
status: active | |
laggproto lacp lagghash l2,l3,l4 | |
laggport: igb1 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING> | |
laggport: igb0 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING> | |
3) To configure the virtual interface at boot time, add the following to /etc/rc.conf: | |
# cat << EOF >> /etc/rc.conf | |
ifconfig_igb0="up" | |
ifconfig_igb1="up" | |
cloned_interfaces="lagg0" | |
ifconfig_lagg0="laggproto lacp laggport igb0 laggport igb1 10.0.1.250/24" | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment