mellanox(迈络思)网卡关闭网口LLDP操作指导

1、场景介绍:

有些局点环境,需要关闭网卡端口的LLDP功能,他们有从应用层使用LLDP功能,如果网卡端口也开启LLDP会导致冲突异常,所以需要关闭网卡端口LLDP需求。

本次需要关闭的网卡型号是Mellanox(迈络思)25G端口的网卡。

网卡名称:MCX512A-ACUT 

型号:2*25G

厂家:Mellanox

芯片型号:CX5

芯片厂家:Mellanox

2、查看网卡端口的bfd值(也就是确认网卡端口)

使用命令:lspci |grep -i eth

显示内容格式为:    XX:XX.X

3、查看当前网卡端口LLDP是否开启

使用命令:mlxconfig -d 86:00.0 q | grep -i lldp

其中86:00.0为网卡的bfd值

查出来是false、OFF是关闭状态;true、all是开启状态。

4、关闭网卡端口LLDP

LLDP_NB_DCBX_P1=0

LLDP_NB_RX_MODE_P1=0

LLDP_NB_TX_MODE_P1=0

LLDP_NB_DCBX_P2=0

LLDP_NB_RX_MODE_P2=0

LLDP_NB_TX_MODE_P2=0

方式1:

mlxconfig -d 82:00.1 -y s LLDP_NB_DCBX_P1=FALSE LLDP_NB_TX_MODE_P1=0 LLDP_NB_RX_MODE_P1=0 LLDP_NB_DCBX_P2=FALSE LLDP_NB_TX_MODE_P2=0 LLDP_NB_RX_MODE_P2=0

方式2:

mlxconfig -d 82:00.1 -y s LLDP_NB_DCBX_P1=0 LLDP_NB_TX_MODE_P1=0 LLDP_NB_RX_MODE_P1=0 LLDP_NB_DCBX_P2=0 LLDP_NB_TX_MODE_P2=0 LLDP_NB_RX_MODE_P2=0

5、再次检查网卡端口LLDP是否关闭

查询命令:mlxconfig -d 86:00.0 q | grep -i lldp

6、打开网卡端口LLDP

方式1:

mlxconfig -d 82:00.1 -y s LLDP_NB_DCBX_P1=TRUE LLDP_NB_TX_MODE_P1=2 LLDP_NB_RX_MODE_P1=2 LLDP_NB_DCBX_P2=TRUE LLDP_NB_TX_MODE_P2=2 LLDP_NB_RX_MODE_P2=2

方式2:

mlxconfig -d 82:00.1 -y s LLDP_NB_DCBX_P1=1 LLDP_NB_TX_MODE_P1=2 LLDP_NB_RX_MODE_P1=2 LLDP_NB_DCBX_P2=1 LLDP_NB_TX_MODE_P2=2 LLDP_NB_RX_MODE_P2=2

7、各个参数重要参考信息

                LLDP NB CONF:
                    LLDP_NB_DCBX_P1=<False|True>            Enables DCBX (applicable when LLDP_NB_TX_MODE and LLDP_NB_RX_MODE are in ALL mode).
                    LLDP_NB_DCBX_P2=<False|True>
                    LLDP_NB_RX_MODE_P1=<ALL|MANDATORY|OFF>  Enable the internal LLDP client, and define which TLV it will process.
                                                            0x0: OFF - Doesnot listen to incoming LLDP BPDU (incoming LLDP frames will be routed to the host)
                                                            0x1: MANDATORY - Listen to incoming LLDP frames, store only the mandatory LLDP BPDUs (1..3)
                                                            0x2: ALL - Receive and store all incoming LLDP BPDUs
                    LLDP_NB_RX_MODE_P2=<ALL|MANDATORY|OFF>
                    LLDP_NB_TX_MODE_P1=<ALL|MANDATORY|OFF>  Select which LLDP TLV will be generated by the NIC
                                                            0x0: OFF - NIC internal LLDP client will not send LLDP frames
                                                            0x1: MANDATORY - Transmits only mandatory LLDP BPDU (ChassisID, PortID & TTL)
                                                            0x2: ALL - Transmits optional LLDP BPDU if configured
                    LLDP_NB_TX_MODE_P2=<ALL|MANDATORY|OFF>

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值