NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
bobby_neal
Nov 27, 2018Aspirant
M4300-x Switch to Switch LACP LAG
New to Netgear. Just looking for a point in the right direction for setting up a Lag between 2 Netgear switches with LACP, using CLI. Unfortunatly I only know CISCO, so I'm reaching out.
- Nov 27, 2018
Hi,
Thank you for using NETGEAR M4300 great series of switches.
You will find the CLI commands for LAGs and LACP in the CLI Manual starting page 491. You can find all the technical documentation in M4300 support pages, for instance here.
The CLI command is called port-channel, like at Cisco. There are 128 LAGs that are provisioned already in your M4300 switch: lag 1; lag 2; lag 3 etc. LACP is enabled by default, a command is needed to "remove" LACP and consider the LAG static instead. The LAGs can be called by their LAG name (lag 1; lag 2; lag 3; etc.) or by their slot/interface number: the <<lag 1>> unit/slot/interface number is 0/13/1, for instance. The unit is "0" because this is a virtual interface and the slot number is 13 for LAGs. Let's say you want to add Port-1 and Port-2 to <<lag 1>>, it means you want to add physical interfaces 1/0/1 and 1/0/2 from your Unit-1 switch to the virtual interface 0/13/1. Let's say you want to name this <<lag 1>> as TestLAG in your switch. Follow the logic:
(M4300-12X12F) >en
(M4300-12X12F) #config
(M4300-12X12F) (Config)#port-channel ?
adminmode Enable/Disable the port-channel's administrative Mode.
linktrap Enable/Disable Link Up/Down traps for this port.
load-balance Configures port-channel load balance.
name Configure a name for the interface port-channel.
system Configure port channel system priority (LAG).(M4300-12X12F) (Config)#port-channel name lag 1 TestLAG
-or -:
(M4300-12X12F) (Config)#port-channel name 0/13/1 TestLAG
(M4300-12X12F) (Config)#port-channel load-balance ?
1 Src MAC, VLAN, EType, incoming port
2 Dest MAC, VLAN, EType, incoming port
3 Src/Dest MAC, VLAN, EType, incoming port
4 Src IP and Src TCP/UDP Port fields
5 Dest IP and Dest TCP/UDP Port fields
6 Src/Dest IP and TCP/UDP Port fields
7 Enhanced hashing mode- the default is 3 Src/Dest MAC, VLAN, Ethertype and incoming port - you should select the mode based on your peering device (the same mode should be selected on both ends). For instance:
(M4300-12X12F) (Config)#port-channel load-balance 6 0/13/1
(M4300-12X12F) (Config)#interface 1/0/1-1/0/2(M4300-12X12F) (Interface 1/0/1-1/0/2)#addport lag 1
1/0/1 interface is part of a port-channel.
1/0/2 interface is part of a port-channel.(M4300-12X12F) (Interface 1/0/1-1/0/2)#exit
-or -:
(M4300-12X12F) (Interface 1/0/1-1/0/2)#addport 0/13/1
1/0/1 interface is part of a port-channel.
1/0/2 interface is part of a port-channel.
(M4300-12X12F) (Interface 1/0/1-1/0/2)#exit(M4300-12X12F) (Config)#exit
(M4300-12X12F) #show port-channel ?
<lag-intf-num> Enter LAG interface number.
<unit/slot/port> Enter permissible interface in unit/slot/port format.
all Enter 'all' for all interfaces.
brief Display port-channel static capability and summary
information for the device.
system Display port-channel system priority.(M4300-12X12F) #show port-channel all
Log. Channel Admin Mbr Device/ Port Port
Intf Name Min Link Mode Type Ports Timeout Speed Active
------- --------------- ---- ------ ------ ---- ------- ------------- --------- -------
lag 1 TestLAG 1 Down En. Dyn. 1/0/1 actor/long 10G Full False
partner/long
1/0/2 actor/long 10G Full False
partner/long
lag 2 ch2 1 Down En. Dyn.
lag 3 ch3 1 Down En. Dyn.
lag 4 ch4 1 Down En. Dyn.
lag 5 ch5 1 Down En. Dyn.
lag 6 ch6 1 Down En. Dyn.
lag 7 ch7 1 Down En. Dyn.
lag 8 ch8 1 Down En. Dyn.
lag 9 ch9 1 Down En. Dyn.
lag 10 ch10 1 Down En. Dyn.
lag 11 ch11 1 Down En. Dyn.
lag 12 ch12 1 Down En. Dyn.
lag 13 ch13 1 Down En. Dyn.
lag 14 ch14 1 Down En. Dyn.
lag 15 ch15 1 Down En. Dyn.
--More-- or (q)uitHope this helps, please share your thoughts about M4300 series when you can!
Regards,
schumaku
Nov 27, 2018Guru - Experienced User
Click one in the Web UI and check the config generated. Things are very similar. 8-)
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!