View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 13 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Mar 01, 2009 1:38 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
I'd like to setup R6 to use both static IP addy (which I know I can do in the service menu) AND I'd like to enable jumbo frames (mtu 4000). On R5.5 I would simply edit /etc/network/interfaces to do this. Below is my old R5.5 example. I'd like to know how to do this under R6.

Thanks!

Code:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo eth0
iface lo inet loopback

# iface eth0 inet dhcp
# this is the ONLY virgin line

iface eth0 inet static
address   192.168.1.19
network   192.168.1.0
netmask   255.255.255.0
broadcast   192.168.1.255
gateway   192.168.1.1
mtu   4000

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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 01, 2009 2:00 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
After a bunch of poking around through the net scripts I don't see any support for MTU/MRU settings... A flyspray ticket to support jumbo frames might be in order...


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 01, 2009 2:14 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Thanks for the suggestion. Done.

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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 01, 2009 4:55 pm 
Offline
Site Admin
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
To change the mtu for eth0 edit or create /etc/net/ifaces/eth0/iplink.
Insert the line:
mtu $mtu_you_want_to_use

then restart the network


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 01, 2009 5:16 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
thanks jams - I'll give it a shot.

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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 22, 2009 6:51 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
I did it, then restarted the network, but my mtu size is unchanged:

Code:
# cat /etc/net/ifaces/eth0/iplink
mtu 4000
# chmod 755 /etc/net/ifaces/eth0/iplink

# /etc/rc.d/network restart
:: Stopping Network                                                                     [DONE]
:: Starting Network                                                                     [DONE]

$ ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 01:0A:E2:60:B8:12 
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: ab82::21f:a6ff:be70:b432/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1492  Metric:1
          RX packets:1003 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1032 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:170971 (166.9 Kb)  TX bytes:148700 (145.2 Kb)
          Interrupt:12

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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 22, 2009 3:20 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
graysky wrote:
I did it, then restarted the network, but my mtu size is unchanged


Code:
# /etc/net/scripts/network.init restart
or reboot.

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 22, 2009 4:56 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Code:
# /etc/net/scripts/network.init restart
Computing interface groups: .. 2 interfaces found
Processing /etc/net/vlantab: empty.
Stopping group 1/realphys (1 interfaces)
   Stopping eth0: RTNETLINK answers: No such process
...OK
Stopping group 0/virtual (1 interfaces)
   Stopping lo: .OK
Computing interface groups: .. 2 interfaces found
Starting group 0/virtual (1 interfaces)
   Starting lo: ....OK
Starting group 1/realphys (1 interfaces)
   Starting eth0: .....RTNETLINK answers: No such process
..OK
Processing /etc/net/vlantab: empty.
# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 01:0A:E2:60:B8:12
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: ab82::21f:a6ff:be70:b432/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1492  Metric:1
          RX packets:300 errors:0 dropped:0 overruns:0 frame:0
          TX packets:354 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:119915 (117.1 Kb)  TX bytes:233883 (228.4 Kb)
          Interrupt:172


Unfortunately, no change to mtu. I also rebooted the machine and again, not change.

I gave /etc/net/ifaces/eth0/iplink 755 permissions, but that doesn't seem to matter. Can you guys think of any reason why this wouldn't work. I am 100 % sure that my hardware supports up to 9k jumbo frames. As I said, if I manually do a 'ifconfig eth0 mtu 4000' it does change.

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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 23, 2009 8:15 pm 
Offline
Joined: Sat Aug 19, 2006 11:53 pm
Posts: 39
Location: Monterey, CA USA
I'm not runnin' R6, but I found this on the Arch Forums. Maybe this will help...

In rc.conf after all the other network stuff, add a line that reads this:

Code:
IFCONFIG="mtu 9000"


http://bbs.archlinux.org/viewtopic.php?id=61598

_________________
R5F27 combined backend/frontend
Nvidia 6200 graphics card
Intel P4 1.8, 768Meg PC133, Seagate 300GB & 500GB (PATA) in LVM
Hauppauge PVR150
Iguana Works serial IR transceiver


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 24, 2009 2:47 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
ghede wrote:
I'm not runnin' R6, but I found this on the Arch Forums. Maybe this will help...

In rc.conf after all the other network stuff, add a line that reads this:

Code:
IFCONFIG="mtu 9000"


http://bbs.archlinux.org/viewtopic.php?id=61598


Cool man, I'll give it a try.

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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 25, 2009 1:43 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
...I don't think that'll work w/ R6. Doesn't R6 use some non-arch method to control the NICs?

I added the following line to my /etc/runit/1.local

Code:
/sbin/ifconfig eth0 mtu 4000

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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 25, 2009 2:59 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
R6 uses /etc/net. I've found documentation is difficult to find, but I did find this page in Russian (translated with google). If you search for "mtu" on that page it appears that you need the MAC address of your NIC to configure the MTU.

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 25, 2009 3:08 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Thanks for the info. I'll just keep my one-liner in /etc/runit/1.local for now :)

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


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: Bing [Bot] 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:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu