public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Setting default MTU for rp-pppoe
@ 2005-08-06 16:03 Ryan Viljoen
  2005-08-06 16:20 ` Paul Kain
  2005-08-06 19:52 ` James Hiscock
  0 siblings, 2 replies; 11+ messages in thread
From: Ryan Viljoen @ 2005-08-06 16:03 UTC (permalink / raw
  To: gentoo-user

Hi

Could anyone tell me how I go about setting the default MTU of my
pppoe connection. I am using rp-pppoe to bring it up. It currently
sets it to 1432 and I need it to be 1352.

Thanks 
Rav 

-- 
"When you play a Microsoft CD backwards you can hear demonic Voices...
that's nothing - when you play it forward it installs Windows"

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Setting default MTU for rp-pppoe
  2005-08-06 16:03 [gentoo-user] Setting default MTU for rp-pppoe Ryan Viljoen
@ 2005-08-06 16:20 ` Paul Kain
  2005-08-06 18:21   ` Ryan Viljoen
  2005-08-06 19:52 ` James Hiscock
  1 sibling, 1 reply; 11+ messages in thread
From: Paul Kain @ 2005-08-06 16:20 UTC (permalink / raw
  To: gentoo-user

/sbin/ifconfig ppp0 mtu 1352

or 1392 whatever tickles your fancy

If you wish your mtu to be set when booting up do the following :

cd /etc/ppp/

fire up vim or your favourite editor and edit pppoe.conf

go all the way to the bottom and add this line

mtu="1352"


save. 

On 8/6/05, Ryan Viljoen <ravilj@gmail.com> wrote:
> Hi
> 
> Could anyone tell me how I go about setting the default MTU of my
> pppoe connection. I am using rp-pppoe to bring it up. It currently
> sets it to 1432 and I need it to be 1352.
> 
> Thanks
> Rav
> 
> --
> "When you play a Microsoft CD backwards you can hear demonic Voices...
> that's nothing - when you play it forward it installs Windows"
> 
> --
> gentoo-user@gentoo.org mailing list
> 
>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Setting default MTU for rp-pppoe
  2005-08-06 16:20 ` Paul Kain
@ 2005-08-06 18:21   ` Ryan Viljoen
  2005-08-06 19:49     ` Paul Kain
  0 siblings, 1 reply; 11+ messages in thread
From: Ryan Viljoen @ 2005-08-06 18:21 UTC (permalink / raw
  To: gentoo-user

Tried that it doesnt work I am afraid. 

As you can see no change in the mtu...
ppp0      Link encap:Point-to-Point Protocol
          inet addr:196.2.100.119  P-t-P:196.30.31.100  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1432  Metric:1
          RX packets:316 errors:0 dropped:0 overruns:0 frame:0
          TX packets:287 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:43856 (42.8 Kb)  TX bytes:37356 (36.4 Kb)

ifconfig ppp0 mtu 1352 works however but I want it to set the ppp0 mtu
to 1352 as default when the connection comes up.


On 8/6/05, Paul Kain <paul.kain@gmail.com> wrote:
> /sbin/ifconfig ppp0 mtu 1352
> 
> or 1392 whatever tickles your fancy
> 
> If you wish your mtu to be set when booting up do the following :
> 
> cd /etc/ppp/
> 
> fire up vim or your favourite editor and edit pppoe.conf
> 
> go all the way to the bottom and add this line
> 
> mtu="1352"
> 
> 
> save.
> 
> On 8/6/05, Ryan Viljoen <ravilj@gmail.com> wrote:
> > Hi
> >
> > Could anyone tell me how I go about setting the default MTU of my
> > pppoe connection. I am using rp-pppoe to bring it up. It currently
> > sets it to 1432 and I need it to be 1352.
> >
> > Thanks
> > Rav
> >
> > --
> > "When you play a Microsoft CD backwards you can hear demonic Voices...
> > that's nothing - when you play it forward it installs Windows"
> >
> > --
> > gentoo-user@gentoo.org mailing list
> >
> >
> 
> --
> gentoo-user@gentoo.org mailing list
> 
> 


-- 
"When you play a Microsoft CD backwards you can hear demonic Voices...
that's nothing - when you play it forward it installs Windows"

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Setting default MTU for rp-pppoe
  2005-08-06 18:21   ` Ryan Viljoen
@ 2005-08-06 19:49     ` Paul Kain
  0 siblings, 0 replies; 11+ messages in thread
From: Paul Kain @ 2005-08-06 19:49 UTC (permalink / raw
  To: gentoo-user

ok, so then try this

nano /etc/conf.d/local.start

and add 

ifconfig ppp0 mtu 1352

on a new line



On 8/6/05, Ryan Viljoen <ravilj@gmail.com> wrote:
> Tried that it doesnt work I am afraid.
> 
> As you can see no change in the mtu...
> ppp0      Link encap:Point-to-Point Protocol
>           inet addr:196.2.100.119  P-t-P:196.30.31.100  Mask:255.255.255.255
>           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1432  Metric:1
>           RX packets:316 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:287 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:3
>           RX bytes:43856 (42.8 Kb)  TX bytes:37356 (36.4 Kb)
> 
> ifconfig ppp0 mtu 1352 works however but I want it to set the ppp0 mtu
> to 1352 as default when the connection comes up.
> 
> 
> On 8/6/05, Paul Kain <paul.kain@gmail.com> wrote:
> > /sbin/ifconfig ppp0 mtu 1352
> >
> > or 1392 whatever tickles your fancy
> >
> > If you wish your mtu to be set when booting up do the following :
> >
> > cd /etc/ppp/
> >
> > fire up vim or your favourite editor and edit pppoe.conf
> >
> > go all the way to the bottom and add this line
> >
> > mtu="1352"
> >
> >
> > save.
> >
> > On 8/6/05, Ryan Viljoen <ravilj@gmail.com> wrote:
> > > Hi
> > >
> > > Could anyone tell me how I go about setting the default MTU of my
> > > pppoe connection. I am using rp-pppoe to bring it up. It currently
> > > sets it to 1432 and I need it to be 1352.
> > >
> > > Thanks
> > > Rav
> > >
> > > --
> > > "When you play a Microsoft CD backwards you can hear demonic Voices...
> > > that's nothing - when you play it forward it installs Windows"
> > >
> > > --
> > > gentoo-user@gentoo.org mailing list
> > >
> > >
> >
> > --
> > gentoo-user@gentoo.org mailing list
> >
> >
> 
> 
> --
> "When you play a Microsoft CD backwards you can hear demonic Voices...
> that's nothing - when you play it forward it installs Windows"
> 
> --
> gentoo-user@gentoo.org mailing list
> 
>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Setting default MTU for rp-pppoe
  2005-08-06 16:03 [gentoo-user] Setting default MTU for rp-pppoe Ryan Viljoen
  2005-08-06 16:20 ` Paul Kain
@ 2005-08-06 19:52 ` James Hiscock
  2005-08-06 20:45   ` Ryan Viljoen
  1 sibling, 1 reply; 11+ messages in thread
From: James Hiscock @ 2005-08-06 19:52 UTC (permalink / raw
  To: gentoo-user

> Could anyone tell me how I go about setting the default MTU of my
> pppoe connection. I am using rp-pppoe to bring it up. It currently
> sets it to 1432 and I need it to be 1352.

It's buried in the rp-pppoe config file (can't remember what the name
of the option is, but if you look for 1432, that should help).
rp-pppoe will always override the MTU you set elsewhere...

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Setting default MTU for rp-pppoe
  2005-08-06 19:52 ` James Hiscock
@ 2005-08-06 20:45   ` Ryan Viljoen
  2005-08-06 20:46     ` Ryan Viljoen
  2005-08-06 21:44     ` James Hiscock
  0 siblings, 2 replies; 11+ messages in thread
From: Ryan Viljoen @ 2005-08-06 20:45 UTC (permalink / raw
  To: gentoo-user

Yeah I was hoping it wouldnt come to adding it in there paul. Looks
like I am going to.

James I grep'd all the files in /etc/ppp/ for 1432 with out any success.

On 8/6/05, James Hiscock <boxroot@gmail.com> wrote:
> > Could anyone tell me how I go about setting the default MTU of my
> > pppoe connection. I am using rp-pppoe to bring it up. It currently
> > sets it to 1432 and I need it to be 1352.
> 
> It's buried in the rp-pppoe config file (can't remember what the name
> of the option is, but if you look for 1432, that should help).
> rp-pppoe will always override the MTU you set elsewhere...
> 
> --
> gentoo-user@gentoo.org mailing list
> 
> 


-- 
"When you play a Microsoft CD backwards you can hear demonic Voices...
that's nothing - when you play it forward it installs Windows"

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Setting default MTU for rp-pppoe
  2005-08-06 20:45   ` Ryan Viljoen
@ 2005-08-06 20:46     ` Ryan Viljoen
  2005-08-06 21:44     ` James Hiscock
  1 sibling, 0 replies; 11+ messages in thread
From: Ryan Viljoen @ 2005-08-06 20:46 UTC (permalink / raw
  To: gentoo-user

> Yeah I was hoping it wouldnt come to adding it in there paul. Looks
> like I am going to.
The only problem with this is that if the connection drops than the
MTU will return to 1432.

-- 
"When you play a Microsoft CD backwards you can hear demonic Voices...
that's nothing - when you play it forward it installs Windows"

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Setting default MTU for rp-pppoe
  2005-08-06 20:45   ` Ryan Viljoen
  2005-08-06 20:46     ` Ryan Viljoen
@ 2005-08-06 21:44     ` James Hiscock
  2005-08-07 10:38       ` Ryan Viljoen
  1 sibling, 1 reply; 11+ messages in thread
From: James Hiscock @ 2005-08-06 21:44 UTC (permalink / raw
  To: gentoo-user

> James I grep'd all the files in /etc/ppp/ for 1432 with out any success.

Sorry -- it's been a long time since I've fiddled with rp-pppoe. The
setting's actually buried and hard-coded in /usr/sbin/adsl-connect...
around line 223 (PPP_STD_OPTIONS)...

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Setting default MTU for rp-pppoe
  2005-08-06 21:44     ` James Hiscock
@ 2005-08-07 10:38       ` Ryan Viljoen
  2005-08-08 12:15         ` Ryan Viljoen
  0 siblings, 1 reply; 11+ messages in thread
From: Ryan Viljoen @ 2005-08-07 10:38 UTC (permalink / raw
  To: gentoo-user

Perfect thanks James. That worked perfectly... Hmmm never throught to
look in the connect scripts.

Cheers
Rav

On 8/6/05, James Hiscock <boxroot@gmail.com> wrote:
> > James I grep'd all the files in /etc/ppp/ for 1432 with out any success.
> 
> Sorry -- it's been a long time since I've fiddled with rp-pppoe. The
> setting's actually buried and hard-coded in /usr/sbin/adsl-connect...
> around line 223 (PPP_STD_OPTIONS)...
> 
> --
> gentoo-user@gentoo.org mailing list
> 
> 


-- 
"When you play a Microsoft CD backwards you can hear demonic Voices...
that's nothing - when you play it forward it installs Windows"

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Setting default MTU for rp-pppoe
  2005-08-07 10:38       ` Ryan Viljoen
@ 2005-08-08 12:15         ` Ryan Viljoen
  2005-08-08 12:20           ` Paul Kain
  0 siblings, 1 reply; 11+ messages in thread
From: Ryan Viljoen @ 2005-08-08 12:15 UTC (permalink / raw
  To: gentoo-user

Found an easier way to do it instead of editting the adsl-connect
script, for future reference.
In /etc/ppp/pppoe.conf there is the following line: PPPD_EXTRA=""
(round line 136) you can list any extra arguments here that you would
like to pass to pppd, like:
PPPD_EXTRA="mtu 1352 mru 1352 logfd 1" to set the MTU and logging or
whatever. Instead of having to edit the script file. It also overrides
the defaults. :P

-- 
"When you play a Microsoft CD backwards you can hear demonic Voices...
that's nothing - when you play it forward it installs Windows"

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Setting default MTU for rp-pppoe
  2005-08-08 12:15         ` Ryan Viljoen
@ 2005-08-08 12:20           ` Paul Kain
  0 siblings, 0 replies; 11+ messages in thread
From: Paul Kain @ 2005-08-08 12:20 UTC (permalink / raw
  To: gentoo-user

thanks man

I'll use that



On 8/8/05, Ryan Viljoen <ravilj@gmail.com> wrote:
> Found an easier way to do it instead of editting the adsl-connect
> script, for future reference.
> In /etc/ppp/pppoe.conf there is the following line: PPPD_EXTRA=""
> (round line 136) you can list any extra arguments here that you would
> like to pass to pppd, like:
> PPPD_EXTRA="mtu 1352 mru 1352 logfd 1" to set the MTU and logging or
> whatever. Instead of having to edit the script file. It also overrides
> the defaults. :P
> 
> --
> "When you play a Microsoft CD backwards you can hear demonic Voices...
> that's nothing - when you play it forward it installs Windows"
> 
> --
> gentoo-user@gentoo.org mailing list
> 
>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-08-08 12:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-06 16:03 [gentoo-user] Setting default MTU for rp-pppoe Ryan Viljoen
2005-08-06 16:20 ` Paul Kain
2005-08-06 18:21   ` Ryan Viljoen
2005-08-06 19:49     ` Paul Kain
2005-08-06 19:52 ` James Hiscock
2005-08-06 20:45   ` Ryan Viljoen
2005-08-06 20:46     ` Ryan Viljoen
2005-08-06 21:44     ` James Hiscock
2005-08-07 10:38       ` Ryan Viljoen
2005-08-08 12:15         ` Ryan Viljoen
2005-08-08 12:20           ` Paul Kain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox