LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Could not bring up more than one PPP interface on CentOS-5.9 at a time (https://www.linuxquestions.org/questions/linux-server-73/could-not-bring-up-more-than-one-ppp-interface-on-centos-5-9-at-a-time-4175484511/)

sekarlinux 11-13-2013 11:36 PM

Could not bring up more than one PPP interface on CentOS-5.9 at a time
 
Hi Friends,

I have 4 DSL lines are connected to server with different ethernet ports.

PPP0 config :

USERCTL=yes
BOOTPROTO=dialup
NAME=DSLppp0
DEVICE=ppp0
TYPE=xDSL
ONBOOT=no
PIDFILE=/var/run/pppoe-adsl-0.pid
FIREWALL=NONE
PING=.
PPPOE_TIMEOUT=80
LCP_FAILURE=3
LCP_INTERVAL=20
CLAMPMSS=1412
CONNECT_POLL=6
CONNECT_TIMEOUT=60
DEFROUTE=no
SYNCHRONOUS=no
ETH=eth1
PROVIDER=DSLppp0
USER="XXXXXXXXXXXX"
PEERDNS=no
DEMAND=no
IPV6INIT=no
IPV6_AUTOCONF=no

PPP1 Config :

USERCTL=yes
BOOTPROTO=dialup
NAME=DSLppp1
DEVICE=ppp1
TYPE=xDSL
ONBOOT=no
PIDFILE=/var/run/pppoe-adsl-1.pid
FIREWALL=NONE
PING=.
PPPOE_TIMEOUT=80
LCP_FAILURE=3
LCP_INTERVAL=20
CLAMPMSS=1412
CONNECT_POLL=6
CONNECT_TIMEOUT=60
DEFROUTE=no
SYNCHRONOUS=no
ETH=eth2
PROVIDER=DSLppp1
USER="XXXXXXXXXXXXXX"
PEERDNS=no
DEMAND=no
IPV6INIT=no
IPV6_AUTOCONF=no

Iam able to bring up one at a time but i could not bring up both interfaces together. When i connect second interface using ifup ifcfg-ppp1 then we got the message modem got hangup . But if i shutdwn ppp0 then start ppp1 then it is working.
Nov 13 22:30:54 localhost pppd[28619]: pppd 2.4.4 started by root, uid 0
Nov 13 22:30:54 localhost pppd[28619]: Using interface ppp0
Nov 13 22:30:54 localhost pppd[28619]: Connect: ppp0 <--> /dev/pts/2
Nov 13 22:30:54 localhost pppoe[28622]: PPP session is 3977
Nov 13 22:30:55 localhost pppd[28619]: CHAP authentication succeeded
Nov 13 22:30:55 localhost pppd[28619]: CHAP authentication succeeded
Nov 13 22:30:55 localhost pppd[28619]: local IP address X.X.X.X
Nov 13 22:30:55 localhost pppd[28619]: remote IP address X.X.X.X
Nov 13 22:31:04 localhost pppd[28720]: pppd 2.4.4 started by root, uid 0
Nov 13 22:31:04 localhost pppd[28720]: Using interface ppp1
Nov 13 22:31:04 localhost pppd[28720]: Connect: ppp1 <--> /dev/pts/3
Nov 13 22:31:35 localhost pppd[28720]: LCP: timeout sending Config-Requests
Nov 13 22:31:35 localhost pppd[28720]: Connection terminated.
Nov 13 22:31:35 localhost pppd[28720]: Modem hangup
Nov 13 22:31:39 localhost pppoe[28723]: Timeout waiting for PADO packets
Nov 13 22:31:39 localhost pppd[28720]: Exit.
Nov 13 22:31:39 localhost adsl-connect: ADSL connection lost; attempting re-connection.
Nov 13 22:31:44 localhost pppd[28847]: pppd 2.4.4 started by root, uid 0
Nov 13 22:31:44 localhost pppd[28847]: Using interface ppp1
Nov 13 22:31:44 localhost pppd[28847]: Connect: ppp1 <--> /dev/pts/3

Is there any PPPoE session management for each line separately?

How do i bringup all the interfaces at a time?

Please let me know if we want correct the configuration parameters.

smallpond 11-15-2013 08:18 AM

I suspect it's a routing issue. In the normal use case for ppp it's the only network connection to a box, so it gets the default route. When you get a packet on the second ppp how does the network stack know where to send the response? Unless you have set up different routes it is being returned on the wrong port so you end up with a timeout.

Andre.Smit 11-16-2013 09:24 PM

Agree with post above. Are you trying to set up a router using linux? If the intention is to run a server, it will make your setup very complex. Default routes, services bindings etc will be a challenge.

If you want to setup a router, install something like OpenWRT and look at their documentation...


All times are GMT -5. The time now is 11:53 PM.