Mellanox SN2410 How to see running-config and configure "new" port according to running-config

Hi,

I would like to ask how do i see running config and configure “new” port according to the running-config output.

I have Mellanox SN2410 and below is the running config output. I would to configure port 9-12 the same setting, also port 11 and 12 will configure with vlan 712

MLAG protocol

protocol mlag

Interface Ethernet configuration

interface mlag-port-channel 1-8

interface port-channel 1

interface ethernet 1/1-1/8 mtu 9216 force

interface mlag-port-channel 1-8 mtu 9216 force

lines 1-23

interface ethernet 1/1 mlag-channel-group 1 mode active

interface ethernet 1/2 mlag-channel-group 2 mode active

interface ethernet 1/3 mlag-channel-group 3 mode active

interface ethernet 1/4 mlag-channel-group 4 mode active

interface ethernet 1/5-1/8 switchport mode hybrid

interface ethernet 1/55-1/56 channel-group 1 mode active

interface mlag-port-channel 1 switchport mode hybrid

interface mlag-port-channel 2 switchport mode hybrid

interface mlag-port-channel 3 switchport mode hybrid

interface mlag-port-channel 4 switchport mode hybrid

interface mlag-port-channel 1-8 no shutdown

LAG configuration

lacp

interface mlag-port-channel 1-8 lacp-individual enable force

interface ethernet 1/1-1/4 lacp port-priority 10

interface ethernet 1/1-1/4 lacp rate fast

VLAN configuration

lines 24-46

vlan 712

vlan 4000

interface ethernet 1/5-1/8 switchport access vlan 712

interface ethernet 1/5-1/8 switchport hybrid allowed-vlan all

interface mlag-port-channel 1 switchport access vlan 712

interface mlag-port-channel 1 switchport hybrid allowed-vlan all

interface mlag-port-channel 2 switchport access vlan 712

interface mlag-port-channel 2 switchport hybrid allowed-vlan all

interface mlag-port-channel 3 switchport access vlan 712

interface mlag-port-channel 3 switchport hybrid allowed-vlan all

interface mlag-port-channel 4 switchport access vlan 712

interface mlag-port-channel 4 switchport hybrid allowed-vlan all

vlan 712 name “iSCSI Storage”

STP configuration

interface ethernet 1/1-1/8 spanning-tree bpdufilter enable

interface ethernet 1/1-1/8 spanning-tree port type edge

interface ethernet 1/1-1/8 spanning-tree bpduguard enable

L3 configuration

lines 47-69

ip routing vrf default

interface vlan 4000

interface vlan 4000 ip address 10.10.10.2/24 primary

Thanks & Regards,

Jayden

Hi Jayden,

The following lines should work:

interface mlag-port-channel 9-12

interface ethernet 1/9 mlag-channel-group 9 mode active

interface ethernet 1/10 mlag-channel-group 10 mode active

interface ethernet 1/11 mlag-channel-group 11 mode active

interface ethernet 1/12 mlag-channel-group 12 mode active

interface mlag-port-channel 9-12 switchport mode hybrid allowed-vlan all

interface mlag-port-channel 9-12 lacp-individual enable force

interface mlag-port-channel 9-10 switchport mode hybrid

interface mlag-port-channel 11-12 switchport access vlan 712

interface mlag-port-channel 9-12 mtu 9216 force

interface mlag-port-channel 9-12 spanning-tree bpdufilter enable

interface mlag-port-channel 9-12 spanning-tree port type edge

interface mlag-port-channel 9-12 spanning-tree bpduguard enable

interface mlag-port-channel 9-12 no shutdown

I noticed that you have configured mlag-port-channels but there is no IPL configured. For more information please see the following link for configuring mlag on Mellanox switches:

https://community.mellanox.com/s/article/how-to-configure-mlag-on-mellanox-switches

Just for reference please find the below link on configuring the different port types (access/hybrid/trunk) and add vlans to those ports:

https://community.mellanox.com/s/article/howto-configure-switch-port-types-with-mlnx-os

Thanks,

Kevin