You are not logged in.

#1 2012-11-10 23:04:35

saalty
Member
Registered: 2012-04-06
Posts: 90

[Solved] MTU settings lost with wifi connection

Hi

After reboot the

ip link show | grep mtu

shows me

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN mode DEFAULT 
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT qlen 1000

But after a few second if I ran again this command it's show me

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN mode DEFAULT 
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 576 qdisc mq state UP mode DORMANT qlen 1000

I cannot ran anything except Tilda, but mtu is changing from 1500 to 576

My /etc/rc.local is

#!/bin/bash
#
# /etc/rc.local: Local multi-user start-up script.
#
ip link set wlan0 mtu 1500

Why it's change without any reason?

Last edited by saalty (2012-11-11 09:17:26)

Offline

#2 2012-11-11 02:17:20

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [Solved] MTU settings lost with wifi connection

Are you using dhcp? If so, dhcpd will helpfully adjust your MTU to what the network claims it wants. However, this can cause problems in various cases. (It stopped me accessing aur from home, for example.) If you would rather it not do this, comment the line in /etc/dhcpd.conf like so:

#option interface_mtu

CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2012-11-11 09:16:49

saalty
Member
Registered: 2012-04-06
Posts: 90

Re: [Solved] MTU settings lost with wifi connection

Thank you, it's solved smile

Offline

Board footer

Powered by FluxBB