Re: changing MTU value of lan card (247 Views)
Reply
Advisor
Posts: 50
Registered: ‎02-03-2003
Message 1 of 7 (247 Views)
Accepted Solution

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 ?
Honored Contributor
Posts: 1,105
Registered: ‎01-20-2003
Message 2 of 7 (247 Views)

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
Posts: 188
Registered: ‎10-02-2000
Message 3 of 7 (247 Views)

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
Posts: 712
Registered: ‎07-29-2003
Message 4 of 7 (247 Views)

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
Posts: 322
Registered: ‎01-14-2001
Message 5 of 7 (247 Views)

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
Posts: 50
Registered: ‎02-03-2003
Message 6 of 7 (247 Views)

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
Posts: 4,030
Registered: ‎06-09-2004
Message 7 of 7 (247 Views)

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!
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.