LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Need Help with pppoe thru a router (https://www.linuxquestions.org/questions/linux-networking-3/need-help-with-pppoe-thru-a-router-472794/)

gtbutler 08-10-2006 09:02 PM

Need Help with pppoe thru a router
 
I am trying to set up pppoe to run on Slackware 10.2 and am having no luck at all. I have tried to find all of the documentation about setting up ppp for dsl. I have found quite a bit but have not been able to solve my problem.

I can ping my router from the Linux system, which has a Windows PC direct wired and a laptop with wireless.

The following is the output from "ifconfig".

eth0 Link encap:Ethernet HWaddr 00:02:96:02:A4:AE
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:176 errors:0 dropped:0 overruns:0 frame:0
TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:29019 (28.3 Kb) TX bytes:1980 (1.9 Kb)
Interrupt:9 Base address:0xbc00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:23 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2184 (2.1 Kb) TX bytes:2184 (2.1 Kb)

The following is the output from the route command.

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

I tried to remove one of the Destinations 192.168.1.0 with the route -del command and I could not.

Any direction help or pointers to documentation which will help will be greatly appreciated.

I have been through several books about networking tcp/ip but I guess I don't understand the concept to well.

Thanks Gary:Pengy:

pljvaldez 08-11-2006 03:19 PM

What make/model of router are you using? Some routers have a web interface that will let you setup the pppoe connection on them. Then you just have to setup your linux box to take dhcp with the router as the gateway.

gtbutler 08-12-2006 09:29 PM

I am not sure what you have told me but I will continue to research.

I have an Airlink+ which uses pppoe to connect to the internet.
I was hoping not to post debug info but maybe it would help. I am trying to run rp-pppoe and the following is part of the debug output.

I hope somebody can help me because I am lost.

* The following section shows the pppd command we will invoke
pppd invocation
/usr/bin/setsid /usr/sbin/pppd pty '/usr/sbin/pppoe -p /var/run/pppoe.conf-pppoe.pid.pppoe -I eth0 -T 80 -U -m 1412 ' noipdefault noauth default-asyncmap defaultroute hide-password nodetach mtu 1492 mru 1492 noaccomp nodeflate nopcomp novj novjccomp user gtbutler@pacbell.net lcp-echo-interval 20 lcp-echo-failure 3 debug
---------------------------------------------*

Extract from /var/log/messages
Jun 25 11:28:34 Vera pppd[2642]: Using interface ppp0
Jun 25 11:28:34 Vera pppd[2642]: Connect: ppp0 <--> /dev/pts/0
Jun 25 11:29:05 Vera pppd[2642]: Connection terminated.
Jun 25 11:29:05 Vera pppd[2642]: Modem hangup
Jun 25 11:29:09 Vera pppd[2642]: Exit.

I am not sure what the following means.

* The following section is a dump of the packets
* sent and received by rp-pppoe. If you don't see
* any output, it's an Ethernet driver problem. If you only
* see three PADI packets and nothing else, check your cables
* and modem. Make sure the modem lights flash when you try
* to connect. Check that your Ethernet card is in
* half-duplex, 10Mb/s mode. If all else fails,
* try using pppoe-sniff.
rp-pppoe debugging dump
rp-pppoe-3.8
18:36:23.650 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
SourceAddr 00:02:96:02:a4:ae DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 01 03 00 04 e4 18 00 00 ............

18:36:28.641 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
SourceAddr 00:02:96:02:a4:ae DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 01 03 00 04 e4 18 00 00 ............

18:36:38.641 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
SourceAddr 00:02:96:02:a4:ae DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 01 03 00 04 e4 18 00 00 ............* The following section is a dump of the packets
* sent and received by rp-pppoe. If you don't see
* any output, it's an Ethernet driver problem. If you only
* see three PADI packets and nothing else, check your cables
* and modem. Make sure the modem lights flash when you try
* to connect. Check that your Ethernet card is in
* half-duplex, 10Mb/s mode. If all else fails,
* try using pppoe-sniff.
rp-pppoe debugging dump
rp-pppoe-3.8
18:36:23.650 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
SourceAddr 00:02:96:02:a4:ae DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 01 03 00 04 e4 18 00 00 ............

18:36:28.641 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
SourceAddr 00:02:96:02:a4:ae DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 01 03 00 04 e4 18 00 00 ............

18:36:38.641 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
SourceAddr 00:02:96:02:a4:ae DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 01 03 00 04 e4 18 00 00 ............* The following section is a dump of the packets
* sent and received by rp-pppoe. If you don't see
* any output, it's an Ethernet driver problem. If you only
* see three PADI packets and nothing else, check your cables
* and modem. Make sure the modem lights flash when you try
* to connect. Check that your Ethernet card is in
* half-duplex, 10Mb/s mode. If all else fails,
* try using pppoe-sniff.
rp-pppoe debugging dump
rp-pppoe-3.8
18:36:23.650 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
SourceAddr 00:02:96:02:a4:ae DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 01 03 00 04 e4 18 00 00 ............

18:36:28.641 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
SourceAddr 00:02:96:02:a4:ae DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 01 03 00 04 e4 18 00 00 ............

18:36:38.641 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
SourceAddr 00:02:96:02:a4:ae DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 01 03 00 04 e4 18 00 00 ............

pljvaldez 08-14-2006 12:03 PM

What model of Airlink+? Here's a link to the manual for an airlink+ wireless router.

Anyway, if you look at chapter 3, it tells you how to setup the system via a web browser. What you do is have the wireless router do all the PPPoE stuff, enable a DHCP server, and then your linux box is just a regular DHCP client. In other words, you don't have to do any PPPoE on the linux box.

Obviously, I just guessed as to what model you have of router since you didn't tell me. But many routers can be setup like this and it enables all your clients to just be DHCP clients. All the configuration for cable modem, DSL, or whatever is done on the router itself.

gtbutler 08-15-2006 08:52 PM

Much Thanks. I have come to the conclusion that I need DHCP running. This was not pointed out in any of the documentation that I read. I have been using an old version of Linux and just recently updated to this version which allows me to use tcp/ip to connect thru to my dsl line.

Thanks again.

Gary


All times are GMT -5. The time now is 09:36 PM.