About Linux FAQ

Browse More FAQs:

FreeBSD Configure NIC Jumbo Frames

Posted by Vivek Gite [Last updated: February 23, 2008]

Q.Under Linux I can set Jumbo Frames by modifying configuration file. How do I configure FreeBSD network card Jumbo frames on all of my NIC for 1000 Mbps speed and make MTU configuration persistence?

A. You can use standard FreeBSD ifconfig command to set Jumbo Frames i.e. set the Maximum Transport Unit (MTU) frame size above its default of 1500 bytes. The maximum MTU setting for Jumbo Frames is 16110. This value coincides with the maximum Jumbo Frames size of 16128.

Make sure your adapter driver and network infrastructure supports jumbo frames.

FreeBSD command to set MTU (Jumbo Frames)

Login as the root user and use ifconfig command as follows:

WARNING! Using Jumbo Frames at 10 or 100 Mbps may result in poor performance or loss of link.

# ifconfig {interface-name} {ip-address} mtu 9000
# ifconfig em0 10.20.110.2 mtu 9000

To confirm the MTU used between two specific devices. use route command as follows::
# route get {destination-IP-address}
# route get 10.20.110.2

Output:

route get 10.20.110.2
   route to: 10.20.110.2
destination: 10.20.110.0
       mask: 255.255.255.192
  interface: em0
      flags: 
 recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu     expire
       0         0         0         0         0         0      9000   -454924

Make Jumbo Frames Configuration Persistence

Set mtu settings by editing /etc/rc.conf file:
# vi /etc/rc.conf
Modify interface em0 as follows, enter:
ifconfig_em0="inet x.x.x.x netmask y.y.y.y media 1000baseTX mediaopt full-duplex mtu 9000"
Save and close the file. Restart networking:
# /etc/rc.d/netif restart
Please note that you may also need to tune the application / network protocol such as NFS and SMB to take advantage of Jumbo Frames.

Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

Related Other Helpful FAQs:

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , , , , , ,

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.