具体步骤如下:
- 使用systemd机制创建服务,在脚本中执行"ifconfig mgbe2_0 down mtu 9000 up"
- 重启系统
- 在R38.4.0看到报错如下,在R39.2.0上没有该报错
方便给一下具体修改吗?R38.4.0的我们有量产产品,升级到R39.2.0可能比较复杂。
Do you have full text log to share?
Also, what is the design of mgbe2_0 here? SFP?
You could try a different method to set mtu.
See if error goes away when:
sudo systemctl disable --now <your-mtu-service>.service
sudo reboot
Then you could try 1 or 2.
nmcli -f NAME,DEVICE connection show
# Then use name that = mgbe2_0. On my Thor it is mgbe2_0.
sudo nmcli connection modify mgbe2_0 802-3-ethernet.mtu 9000
or
network:
version: 2
ethernets:
mgbe2_0:
mtu: 9000