以下配置属于临时配置,重启后失效,具体建议在bios或者固件中解决。
#查看网卡私有属性
ethtool --show-priv-flags ethx
#配置属性,关闭网卡时链路断开
ethtool --set-priv-flags ethx link-down-on-close on
#配置属性,关闭固件中的lldp功能,使操作系统可以收到lldp的包
ethtool --set-priv-flags ethx disable-fw-lldp on
以下配置属于临时配置,重启后失效,具体建议在bios或者固件中解决。
#查看网卡私有属性
ethtool --show-priv-flags ethx
#配置属性,关闭网卡时链路断开
ethtool --set-priv-flags ethx link-down-on-close on
#配置属性,关闭固件中的lldp功能,使操作系统可以收到lldp的包
ethtool --set-priv-flags ethx disable-fw-lldp on