When debugging network-related Issues, it might be helpful to set the MTU to a static value instead of leaving it on 'auto'. On Distros that utilize NetworkManager, this can easily be done using 'nmcli'.
Here's a simple configuration for a previously unconfigured interface called 'eno1':
[root@server ~]# nmcli connection modify eno1 802-3-ethernet.mtu 1518
[root@server ~]# nmcli connection modify eno1 ipv4.address 192.0.2.5/24
[root@server ~]# nmcli connection modify eno1 ipv4.method manual
[root@server ~]# nmcli connection modify eno1 ipv6.method ignore
[root@server ~]# nmcli connection up eno1
This will set the MTU, a static IP address, and ignore any ipv6 addressing.
Now that the interface is up, check the MTU using the 'ip' command:
[root@server ~]# ip -s -c -h link show eno1 | egrep -i 'mtu'
6: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1518 qdisc mq state UP mode DEFAULT group default qlen 1000
As you can see, the MTU has been applied to the interface once the connection was up and the profile was applied.
Feel free to comment and / or suggest a topic.
Comments
Post a Comment