Networking
Showing results for 
Search instead for 
Do you mean 

changing MTU value of lan card

SOLVED
Go to Solution
Advisor

changing MTU value of lan card

I want to change default MTU value of lan card to different value and it should remain in effect enen after reboot.Which file i need to configure ?
6 REPLIES
Honored Contributor Honored Contributor

Re: changing MTU value of lan card

Hi,

You can change the mtu value using
#lanadmin -M PPA

You should edit the netowrk adapter configuration file in /etc/rc.config.d directory to make change parmanent.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Highlighted
Regular Advisor Regular Advisor

Re: changing MTU value of lan card

HP-UX assumed... ;)

There are 2 steps:

ifconfig lan0 down (You will need to do this via the Console)
lanadmin -M 1400 0 (to change the size to 1400 instead of the 1500 default)
lanadmin -m 0 (to check)
ifconfig lan0 up

Then to make it permanent, you need to do the following:

Create a file with the following in /sbin/init.d/mtu :
**************************************
case $1 in
start_msg)
echo "Setting Network card lan0 MTU to 1400"
;;
'start')
/usr/sbin/lanadmin -M 1400 0
;;
*)
echo "Usage:"
/usr/sbin/lanadmin -?
;;
esac
**************************************

Then create the link

ln -s /sbin/init.d/mtu /sbin/rc2.d/S325MTU_CHANGE

You will need to reboot the server!


Cheers

Carlo
Live fast, die young - enjoy a good looking corpse!
Honored Contributor Honored Contributor

Re: changing MTU value of lan card

Hi,

you can use SAM interface (advanced options for network interface)
but SAM will permit the value to be changed if the hardware supports changes.

Second solution is setting PMTU (path maximum transmission unit) in routing table.
Respected Contributor Respected Contributor

Re: changing MTU value of lan card

Hi,

you can use either SAM or lanadmin

eg

lanadmin -M

Regards

Franky
Don't worry be happy
Advisor

Re: changing MTU value of lan card

i have found the driver for my lan card it is btlan, so i need to add the mtu entry in the /etc/rc.config.d/hpbtlanconf. can u pl. tell me what will be the syntax of the entry in this file for MTU

Honored Contributor Honored Contributor

Re: changing MTU value of lan card

You can get informations from here,
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=542486

We can not configure on /etc/rc.config.d/hpbtlanconf for mtu settings. Try to configure on SAM or with Init script.

You can configuration file informations as,
http://www.open-challenge.nl/scc/scc-web-demo/scc.hpux11i.html#cfg_000032

HTH.
Easy to suggest when don't know about the problem!