Re: [Hampshire] ifconfig eth0 1500

Top Page

Reply to this message
Author: Simon Capstick
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] ifconfig eth0 1500
Jon Fautley wrote:
> Simon Capstick wrote:
>> OK, I managed to omit the mtu setting on the following ifconfig command...
>>
>> simon-desktop:/home/simon# ifconfig eth0 1500
>>
>> Expecting to get a complaint about an invalid setting I instead set the
>> IP address to 0.0.5.220.
> [snip]
>> Obviously it was easy to put back but I would love to know why/if this
>> is defined behaviour.
>
> Yeah, that's normal. You're trying to set the IP to "1500", which when
> converted internally comes out as the weird IP you saw.
>
> If you want to set the MTU:
>
> ifconfig eth0 mtu 1500
>
> Cheers,
>
> /j
>


That makes sense when I think about it, since 5*256 + 220 = 1500.

Thanks,

Simon