Networking Forums

Networking Forums > Computer Networking > Linux Networking > pppoe questions

Reply
Thread Tools Display Modes

pppoe questions

 
 
cb
Guest
Posts: n/a

 
      06-26-2004, 03:30 PM
I am preparing to set up a pppoe connection and due to my limited
experience with pppoe I had a few questions. I plan to use Redhat 9.0 or
Fedora c1. I also plan to use the rp-pppoe scripts that are in Redhat.

Lets say that I am using eth0 for my pppoe connection. I understand that
when I run adsl-setup it creates
/etc/sysconfig/network-scripts/ifcfg-ppp0 that uses eth0 physically.

1. What does /etc/sysconfig/network-scripts/ifcfg-eth0 config file have
in it. In other words is it setup for dhcp, static? I assume that the
file needs to exists, but during boot if it is not setup correctly it
will give a fail. If static do you just leave it the IPADDRESS= blank?

2. If I do ifconfig -a command I assume that the ppp0 interface will
have an IP, what will eth0 have?

3. How do you use kernel pppoe? It seems that adsl-* scripts are user
space programs?

 
Reply With Quote
 
 
 
 
Timothy Murphy
Guest
Posts: n/a

 
      06-26-2004, 06:13 PM
cb wrote:

> I am preparing to set up a pppoe connection and due to my limited
> experience with pppoe I had a few questions. I plan to use Redhat 9.0 or
> Fedora c1. I also plan to use the rp-pppoe scripts that are in Redhat.
>
> Lets say that I am using eth0 for my pppoe connection. I understand that
> when I run adsl-setup it creates
> /etc/sysconfig/network-scripts/ifcfg-ppp0 that uses eth0 physically.
>
> 1. What does /etc/sysconfig/network-scripts/ifcfg-eth0 config file have
> in it.


DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
NETMASK=255.0.0.0
TYPE=Ethernet
USERCTL=no
PEERDNS=no

> 2. If I do ifconfig -a command I assume that the ppp0 interface will
> have an IP, what will eth0 have?


eth0 Link encap:Ethernet HWaddr 00:E0:18:98:F7:2B
inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:906 errors:0 dropped:0 overruns:0 frame:0
TX packets:970 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:258235 (252.1 Kb) TX bytes:99126 (96.8 Kb)
Interrupt:5

> 3. How do you use kernel pppoe? It seems that adsl-* scripts are user
> space programs?


Yes. I have
/usr/sbin/adsl-start
in my /etc/rc.d/rc.local

--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
 
Reply With Quote
 
jack
Guest
Posts: n/a

 
      06-26-2004, 06:51 PM
cb wrote:
> I am preparing to set up a pppoe connection and due to my limited
> experience with pppoe I had a few questions. I plan to use Redhat 9.0 or
> Fedora c1. I also plan to use the rp-pppoe scripts that are in Redhat.
>
> Lets say that I am using eth0 for my pppoe connection. I understand that
> when I run adsl-setup it creates
> /etc/sysconfig/network-scripts/ifcfg-ppp0 that uses eth0 physically.


Correct.


> 1. What does /etc/sysconfig/network-scripts/ifcfg-eth0 config file have
> in it. In other words is it setup for dhcp, static? I assume that the
> file needs to exists, but during boot if it is not setup correctly it
> will give a fail. If static do you just leave it the IPADDRESS= blank?


Basically, You needn't configure eth0 for use by pppd as PPPoE device at
all. - The thing is that most distros do some "sanity check" on boot, so
if You have a NIC that is detected on start-up, this check insist on a
proper configuration. Unless You collide with other system settings,
You may enter random values in the eth0 config file.
[N. b. You will still have to initialize the NIC somehow, i. e. load
drivers and such, but only hardware-level. All IP information You pro-
vide for that NIC will never be used, whether You specify some or not.]


> 2. If I do ifconfig -a command I assume that the ppp0 interface will
> have an IP, what will eth0 have?


eth0 will have either the random IP You assigned to it in the config
file, see above, or none at all.


> 3. How do you use kernel pppoe? It seems that adsl-* scripts are user
> space programs?


Those user-level scripts rely on the kernel's ability to handle pppoe.

In former times, when DSL was very new, You only got tarballs that would
compile as kernel modules to handle the connections, and You had to have
specially crafted pppds. Today, all that has become part of the kernel
source. - The thing is that You want to tell the kernel to handle cer-
tain ethernet frames differently.


Cheers, Jack.

--
----------------------------------------------------------------------
My personal reading of the string "MicroSoft" expands to "NanoWeak"...
 
Reply With Quote
 
Jeff Krimmel
Guest
Posts: n/a

 
      06-26-2004, 06:54 PM
On Sat, 26 Jun 2004 15:30:23 +0000, cb wrote:

> I am preparing to set up a pppoe connection and due to my limited
> experience with pppoe I had a few questions. I plan to use Redhat 9.0 or
> Fedora c1. I also plan to use the rp-pppoe scripts that are in Redhat.


[...]

I know this doesn't address your questions, but I have used RedHat 9.0 for
some time now with my DSL connection, and I simply use
"redhat-config-network" to set up and activate my connection when
necessary.

It has worked like a charm, though the same technique did not work for me
with Fedora Core 1 for whatever reason.

Jeff

--
Add an underscore between 'd' and 's' and remove the first three
letters of the alphabet for email.
 
Reply With Quote
 
Allen Kistler
Guest
Posts: n/a

 
      06-26-2004, 07:11 PM
cb wrote:
> I am preparing to set up a pppoe connection and due to my limited
> experience with pppoe I had a few questions. I plan to use Redhat 9.0 or
> Fedora c1. I also plan to use the rp-pppoe scripts that are in Redhat.
>
> Lets say that I am using eth0 for my pppoe connection. I understand that
> when I run adsl-setup it creates
> /etc/sysconfig/network-scripts/ifcfg-ppp0 that uses eth0 physically.
>
> 1. What does /etc/sysconfig/network-scripts/ifcfg-eth0 config file have
> in it. In other words is it setup for dhcp, static? I assume that the
> file needs to exists, but during boot if it is not setup correctly it
> will give a fail. If static do you just leave it the IPADDRESS= blank?


DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none

> 2. If I do ifconfig -a command I assume that the ppp0 interface will
> have an IP, what will eth0 have?


eth0 Link encap:Ethernet HWaddr 00:A0:24:C0:43:C8
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14676 errors:0 dropped:0 overruns:0 frame:0
TX packets:9938 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10263296 (9.7 Mb) TX bytes:793866 (775.2 Kb)
Interrupt:10 Base address:0x23

Note that there's no IP address. You don't need one.

> 3. How do you use kernel pppoe? It seems that adsl-* scripts are user
> space programs?


The best reference I have is
http://csociety-ftp.ecn.purdue.edu/p...les/pppoe.html
although I use rp-pppoe in user space myself.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: PPPoE Steve Winograd [MVP] Windows Networking 1 04-02-2005 06:11 PM
PPPoE and HDOC Donnie Adamson Broadband Hardware 0 02-09-2005 02:03 AM
can't connect MN-700 with my ISP using PPPoE Shay Broadband Hardware 4 08-14-2004 08:11 AM
Re: PPPoE Help me please! jack Linux Networking 23 04-13-2004 09:58 PM
PPPoE available on Home DSL? Tiny Tim Broadband 1 10-15-2003 11:36 AM



1 2 3 4 5 6 7 8 9 10 11