View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Dec 11, 2006 5:46 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
What's the trick to making mtu size changes permanent? I have tried adding a line to my /etc/network/interfaces:
Code:
iface eth0 inet dhcp
mtu 4000
but that didn't do it.

My understanding is that that should work if I use static configs... I think the dhcp is screwing it up. I googled around but didn't find anything that worked.

Thanks in advance, all!

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 11, 2006 6:56 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
See the chunk from my post install fixups in your original thread on this...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 11, 2006 7:03 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
@tjc: I tried to make sense of that and then started googling. I found this:

http://glasnost.beeznest.org/articles/290

Which looks pretty simplistic.

Code:
iface eth0 inet dhcp
    hostname "mymachine"
    name LAN Interface
    pre-up /sbin/ifconfig $IFACE mtu 4000


I'm assuming "mymachine" in my hostname but when I follow it's suggestion and add those lines, I don't get the result at all.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 11, 2006 8:27 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Reading the man pages for the ifup command and the interfaces file is quite helpful.
Code:
man ifup
man 5 interfaces

Try editing your /etc/network/interfaces file and adding an MTU line to the iface eth0 options. Something like this should do it...
Code:
iface eth0 inet static
        address 192.168.1.103
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        mtu 9000

If the "mtu" option doesn't fly with dhcp, I'd probably try to do the ifconfig using up rather than pre-up.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 12, 2006 1:33 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Yeah, I think using it w/ dhcp isn't gonna work. I took your suggestion and went static:
Code:
iface eth0 inet static
address 192.168.0.100
network 192.168.0.0
netmask 255.255.255.0
broadcast       192.168.0.255
gateway 192.168.0.1
mtu     4000

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 12, 2006 7:04 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
I believe that everything after the iface line needs to be indented with a tab (0x09).


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 13, 2006 2:15 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
I always use tabs in config files, thanks for the suggestion. It's working in static mode and I really don't care to figure out dhcp when static works just fine... it's not like the internal IP is going to change anyway.

...can you tell me why transfer speeds from my windows box to my mythtv box are about 1/2 the speed of transfers in the opposite order :)

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu