Slackware Devs: Please add no-MTU setting for DHCP in rc.inet1
Those of us who are unfortunate enough to rely on Comcast for broadband speed over 6Mbit have to deal with their nonsense policies from time to time. Well, one of those policies seems to be that they want to set our MTU to 576 bytes; breaking many network connections due to its ridiculously low size.
Code:
[root@maximus]$ /etc/rc.d/rc.inet1 eth0_restart I see two possible solutions for this problem by slightly altering rc.inet1: 1) Move the if [ ! "${MTU[$i]}" = "" ]; stanza all the way down, right before the else in else if [ "$DEBUG_ETH_UP" = "yes" ]. This way my user-defined setting will override the DHCP issued MTU, not the other way around as it currently stands. 2) Add [ "${DHCP_KEEPMTU[$i]}" = "yes" ] && DHCP_OPTIONS="$DHCP_OPTIONS -C mtu" to the list of DHCP option checks, much like you do for $DHCP_KEEPRESOLV. Option #1 is 'cleaner' in that it doesn't require an extra variable, such as $DHCP_KEEPMTU, to achieve the desired effect. However, option #2 is more inline with how we currently tweak DHCP. P.S. A google for "comcast mtu 576" brings up many hits so it is not a problem with my configuration nor does it appear to be localized to my area. |
maybe you can fix it also commenting an option in /etc/dhcpcd.conf: there was a few day ago, another user having a similar problem, it can be this fixes also your (the MTU remains at the default of 1500).
|
Thanks. I put back the original rc.inet1 and commented out #option interface_mtu in /etc/dhcpcd.conf as you suggested. But I wonder if it would still be prudent to add a $DHCP_KEEPMTU variable that one can set from rc.inet1.conf? If not, then I would propose that $DHCP_KEEPRESOLV be removed and instead this functionality be delegated to the dhcpcd.conf file just like MTU.
|
Quote:
|
All times are GMT -5. The time now is 12:03 AM. |