A computer-implemented method for automatically configuring multiple chassis links in a multi-chassis system using a management controller, said method, executed by said management controller, comprising: requesting switch port data from a plurality of server systems (100, 102, 104, 106) and a plurality of switches (210, 220, 310, 320) of the multi-chassis system; receiving the switch port data, the switch port data including internal port MAC addresses and neighbor port MAC addresses of the plurality of server systems (100, 102, 104, 106) and the plurality of switches (210, 220, 310, 320); determining a plurality of match ports and a plurality of corresponding match nodes, wherein each of the plurality of match nodes has a match port whose MAC address matches one of the neighbor port MAC addresses, and wherein each of the plurality of match nodes corresponds to one of the plurality of match ports; and determining peer link ports for a first switch and a second switch of the plurality of switches (210, 220, 310, 320), wherein the peer link ports are a subset of the plurality of match ports, and wherein each peer link port of the peer link ports belongs to one of the first switch and the second switch, and corresponds to a match node of the plurality of match nodes that is the other one of the first switch and the second switch; grouping a plurality of ports of the first switch and the second switch into a plurality of port groups, based upon the switch port data and one or more predetermined criteria; determining a first subset of port groups from the plurality of port groups, wherein a port group in the first subset of port groups having at least one port belonging to the first switch, and at least another port belonging to the second switch; and configuring all ports in each port group of the first subset of port groups as a same member port; wherein the same member port is a Multi-Chassis Link Aggregation Group, MC-LAG, member port; wherein the one or more predetermined criteria comprises: each port in the plurality of port groups has at least one neighbor port MAC address; ports in each port group of the plurality of port groups have the same corresponding match node in the plurality of match nodes; and each port in the plurality of port groups corresponds to a match node in the plurality of match nodes that is neither the first switch nor the second switch. requesting switch port data from a plurality of server systems (100, 102, 104, 106) and a plurality of switches (210, 220, 310, 320) of the multi-chassis system; receiving the switch port data, the switch port data including internal port MAC addresses and neighbor port MAC addresses of the plurality of server systems (100, 102, 104, 106) and the plurality of switches (210, 220, 310, 320); determining a plurality of match ports and a plurality of corresponding match nodes, wherein each of the plurality of match nodes has a match port whose MAC address matches one of the neighbor port MAC addresses, and wherein each of the plurality of match nodes corresponds to one of the plurality of match ports; and determining peer link ports for a first switch and a second switch of the plurality of switches (210, 220, 310, 320), wherein the peer link ports are a subset of the plurality of match ports, and wherein each peer link port of the peer link ports belongs to one of the first switch and the second switch, and corresponds to a match node of the plurality of match nodes that is the other one of the first switch and the second switch; grouping a plurality of ports of the first switch and the second switch into a plurality of port groups, based upon the switch port data and one or more predetermined criteria; determining a first subset of port groups from the plurality of port groups, wherein a port group in the first subset of port groups having at least one port belonging to the first switch, and at least another port belonging to the second switch; and configuring all ports in each port group of the first subset of port groups as a same member port; wherein the same member port is a Multi-Chassis Link Aggregation Group, MC-LAG, member port; wherein the one or more predetermined criteria comprises: each port in the plurality of port groups has at least one neighbor port MAC address; ports in each port group of the plurality of port groups have the same corresponding match node in the plurality of match nodes; and each port in the plurality of port groups corresponds to a match node in the plurality of match nodes that is neither the first switch nor the second switch.