afeasfaerw23231233
October 6th, 2009, 04:27 PM
I have the following line in my /etc/network/interfaces
auto eth0
iface eth0 inet dhcp
mtu 1400
But every time it boot up ifconfig always shows mtu = 1500.
I have to change it to 1400 manually by
sudo ifconfig eth0 mtu 1400
Would anyone please tell me why adding mtu 1400 in my /etc/network/interfaces doesn't work?
EDIT: Even though I run
sudo /etc/init.d/networking restart
it has no effect on the mtu.
It shows the following (my wireless is off)
sudo /etc/init.d/networking restart
* Reconfiguring network interfaces... There is already a pid file /var/run/dhclient.eth0.pid with pid 3256
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:03:0d:af:c3:b5
Sending on LPF/eth0/00:03:0d:af:c3:b5
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.123.1 port 67
* Reloading /etc/samba/smb.conf smbd only
...done.
ioctl[SIOCGIFFLAGS]: No such device
Could not get interface 'wlan0' flags
ioctl[SIOCSIWPMKSA]: No such device
ioctl[SIOCSIWMODE]: No such device
Could not configure driver to use managed mode
ioctl[SIOCGIWRANGE]: No such device
ioctl[SIOCGIFINDEX]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWAP]: No such device
ioctl[SIOCGIFFLAGS]: No such device
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
SIOCSIFADDR: No such device
wlan0: ERROR while getting interface flags: No such device
wlan0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up wlan0.
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:03:0d:af:c3:b5
Sending on LPF/eth0/00:03:0d:af:c3:b5
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPOFFER of 192.168.123.9 from 192.168.123.1
DHCPREQUEST of 192.168.123.9 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.123.9 from 192.168.123.1
* Reloading /etc/samba/smb.conf smbd only
...done.
bound to 192.168.123.9 -- renewal in 478913 seconds.
* if-up.d/mountnfs[eth0]: waiting for interface wlan0 before doing NFS mounts
[ OK ]
auto eth0
iface eth0 inet dhcp
mtu 1400
But every time it boot up ifconfig always shows mtu = 1500.
I have to change it to 1400 manually by
sudo ifconfig eth0 mtu 1400
Would anyone please tell me why adding mtu 1400 in my /etc/network/interfaces doesn't work?
EDIT: Even though I run
sudo /etc/init.d/networking restart
it has no effect on the mtu.
It shows the following (my wireless is off)
sudo /etc/init.d/networking restart
* Reconfiguring network interfaces... There is already a pid file /var/run/dhclient.eth0.pid with pid 3256
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:03:0d:af:c3:b5
Sending on LPF/eth0/00:03:0d:af:c3:b5
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.123.1 port 67
* Reloading /etc/samba/smb.conf smbd only
...done.
ioctl[SIOCGIFFLAGS]: No such device
Could not get interface 'wlan0' flags
ioctl[SIOCSIWPMKSA]: No such device
ioctl[SIOCSIWMODE]: No such device
Could not configure driver to use managed mode
ioctl[SIOCGIWRANGE]: No such device
ioctl[SIOCGIFINDEX]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWAP]: No such device
ioctl[SIOCGIFFLAGS]: No such device
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
SIOCSIFADDR: No such device
wlan0: ERROR while getting interface flags: No such device
wlan0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up wlan0.
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:03:0d:af:c3:b5
Sending on LPF/eth0/00:03:0d:af:c3:b5
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPOFFER of 192.168.123.9 from 192.168.123.1
DHCPREQUEST of 192.168.123.9 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.123.9 from 192.168.123.1
* Reloading /etc/samba/smb.conf smbd only
...done.
bound to 192.168.123.9 -- renewal in 478913 seconds.
* if-up.d/mountnfs[eth0]: waiting for interface wlan0 before doing NFS mounts
[ OK ]