...making Linux just a little more fun!
[ In reference to "A Brief Introduction to IP Cop " in LG#125 ]
jessekemp [kempjw1 at sbcglobal.net]
I have setup IPCop and am seeing that I am taking errors (at about a 50% rate) any Idea how I can adjust the MTU rat which is currently set to 1500?
Ben Okopnik [ben at linuxgazette.net]
On Thu, Jun 07, 2007 at 10:16:13AM -0400, jessekemp wrote:
> I have setup IPCop and am seeing that I am taking errors (at about a > 50% rate) any Idea how I can adjust the MTU rat which is currently > set to 1500?
You can do it with either the 'ifconfig' or the 'ip' commands. To see your current MTU setting, use either the 'ifconfig' or 'ip link list' commands (you need to be root for the latter); to set the new MTU, use one of the following as root:
# Assuming that you want to set eth0 ip link set dev eth0 mtu 1400 ifconfig eth0 mtu 1400If you want to make this a permanent adjustment, you need to set it up in your config files - '/etc/network/interfaces' in Debian, or '/etc/sysconfig/network-scripts/ifcfg-eth0' (or whatever device you're tweaking) in Redhat and such.
-- * Ben Okopnik * Editor-in-Chief, Linux Gazette * http://LinuxGazette.NET *
Jesse Kemp [kempjw1 at sbcglobal.net]
[[[ This was sent as top-posted html. Usual cranky plea applies. ]]]
That worked perfectly. Thanks so much! Another couple of s and I'll have the hang of linux down.
Ben Okopnik [ben at linuxgazette.net]
On Thu, Jun 07, 2007 at 09:45:16PM -0400, Jesse Kemp wrote:
> On 6/7/07 12:08 PM, "Ben Okopnik" <ben@linuxgazette.net> wrote: > > > > ip link set dev eth0 mtu 1400 > > That worked perfectly. Thanks so much! Another couple of s and I'll have > the hang of linux down.
[ top-posting laboriously reversed ]
You're welcome, Jesse. For future reference, please - don't send us HTML and don't top-post. Reading "Asking Questions of The Answer Gang" at http://linuxgazette.net/tag/ask-the-gang.html is also highly recommended.
-- * Ben Okopnik * Editor-in-Chief, Linux Gazette * http://LinuxGazette.NET *