使用ethtool工具设置
# ethtool ethX //查询ethX网口基本设置
# ethtool –h //显示ethtool的命令帮助(help)
# ethtool –i ethX //查询ethX网口的相关信息
# ethtool –d ethX //查询ethX网口注册性信息
# ethtool –r ethX //重置ethX网口到自适应模式
# ethtool –S ethX //查询ethX网口收发包统计
# ethtool –s ethX [speed 10|100|1000]\ //设置网口速率10/100/1000M
[duplex half|full]\ //设置网口半/全双工
[autoneg on|off]\ //设置网口是否自协商
[port tp|aui|bnc|mii]\ //设置网口类型
设置方法
本文参考https://blog.csdn.net/zhangxuechao_/article/details/52566736?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_title~default-0.control&spm=1001.2101.3001.4242