Running 2 PPPoE connections connecting to the same PPPoE server. - BSD

This is a discussion on Running 2 PPPoE connections connecting to the same PPPoE server. - BSD ; -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi I've two ADSL connections from the same ISP. I'm currently using Ubuntu Linux (Dapper/AMD64) to distribute internet traffic from those two ADSL connections in my small network. This works fine with no problems. ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: Running 2 PPPoE connections connecting to the same PPPoE server.

  1. Running 2 PPPoE connections connecting to the same PPPoE server.

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Hi

    I've two ADSL connections from the same ISP. I'm currently using Ubuntu
    Linux (Dapper/AMD64) to distribute internet traffic from those two ADSL
    connections in my small network. This works fine with no problems. I use
    load balancing[1] available in Linux Advanced Routing & Traffic Control
    HOWTO. To connect to my ISP, I've to initiate PPPoE connection from server.

    Now, I've a FreeBSD (7.0-RELEASE-BETA3/AMD64) box, on which I'm thinking to
    transfer this setup. When I dial 1st PPPoE connection, it succeeds. When I
    dial 2nd PPPoE connection, it terminates with following error:

    - ---->8---->8----
    ppp[1583]: tun1: Warning: iface add: ioctl(SIOCAIFADDR, x.x.x.x -> a.a.a.a):
    File exists
    ppp[1583]: tun1: Error: ipcp_InterfaceUp: unable to set ip address
    - ----8<----8<----

    The error is probably due to same gateway (a.a.a.a) assigned to both PPPoE
    connections by the PPPoE server. Am I correct ?

    And is there any other way, I can have this configuration ?

    References:
    [1] - http://lartc.org/howto/lartc.rpdb.mu...ks.html#AEN298

    TIA
    - --
    Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/
    ·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.6 (GNU/Linux)

    iD8DBQFHRvkOHy+EEHYuXnQRAk+oAKDhCR9/K9MoRkNqLgBT6MkkIla26wCeNovw
    iGqCTZKV3axX1xqHt30iciA=
    =jx44
    -----END PGP SIGNATURE-----

  2. Re: Running 2 PPPoE connections connecting to the same PPPoE server.

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Ashish Shukla आशीष शुक्ल wrote:
    > Hi
    >
    > I've two ADSL connections from the same ISP. I'm currently using Ubuntu
    > Linux (Dapper/AMD64) to distribute internet traffic from those two ADSL
    > connections in my small network. This works fine with no problems. I use
    > load balancing[1] available in Linux Advanced Routing & Traffic Control
    > HOWTO. To connect to my ISP, I've to initiate PPPoE connection from server.
    >
    > Now, I've a FreeBSD (7.0-RELEASE-BETA3/AMD64) box, on which I'm thinking to
    > transfer this setup. When I dial 1st PPPoE connection, it succeeds. When I
    > dial 2nd PPPoE connection, it terminates with following error:
    >
    > ---->8---->8----
    > ppp[1583]: tun1: Warning: iface add: ioctl(SIOCAIFADDR, x.x.x.x -> a.a.a.a):
    > File exists
    > ppp[1583]: tun1: Error: ipcp_InterfaceUp: unable to set ip address
    > ----8<----8<----
    >
    > The error is probably due to same gateway (a.a.a.a) assigned to both PPPoE
    > connections by the PPPoE server. Am I correct ?
    >
    > And is there any other way, I can have this configuration ?
    >
    > References:
    > [1] - http://lartc.org/howto/lartc.rpdb.mu...ks.html#AEN298
    >
    > TIA

    Hello,
    This can be changed in the ppp conf, I would think that making two
    seperate conf files and loading each one, then using routed to route the
    two together. Bit ugly but would work. Reading the docs i'm sure you can
    have two seperate nets working as one, but how pppd works is you need to
    compile in some netgraph modules and redo the conf so it tends to listen
    on a ethernet card rather a modem com port. Think you know this

    Hope this helps some.
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.4-svn0 (GNU/Linux)
    Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

    iD8DBQFHXevPyMQ6IBehNNMRAp+DAJ9e7RKeWH09/q4QrrzZD6LzVoFbEwCfdkuv
    i+tJeecVnRyJ8ZHDeHiBCpQ=
    =dquF
    -----END PGP SIGNATURE-----

  3. Re: Running 2 PPPoE connections connecting to the same PPPoE server.

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    chris petrik wrote:
    > -----BEGIN PGP SIGNED MESSAGE-----
    > Hash: SHA1
    >
    > Ashish Shukla आशीष शुक्ल wrote:


    [...]

    >> ---->8---->8----
    >> ppp[1583]: tun1: Warning: iface add: ioctl(SIOCAIFADDR, x.x.x.x ->
    >> a.a.a.a): File exists
    >> ppp[1583]: tun1: Error: ipcp_InterfaceUp: unable to set ip address
    >> ----8<----8<----
    >>
    >> The error is probably due to same gateway (a.a.a.a) assigned to both
    >> PPPoE connections by the PPPoE server. Am I correct ?
    >>
    >> And is there any other way, I can have this configuration ?
    >>
    >> References:
    >> [1] - http://lartc.org/howto/lartc.rpdb.mu...ks.html#AEN298
    >>
    >> TIA

    > Hello,
    > This can be changed in the ppp conf, I would think that making two
    > seperate conf files and loading each one, then using routed to route the
    > two together. Bit ugly but would work. Reading the docs i'm sure you can
    > have two seperate nets working as one, but how pppd works is you need to
    > compile in some netgraph modules and redo the conf so it tends to listen
    > on a ethernet card rather a modem com port. Think you know this


    Thanks for the reply, but tell me one thing. If I'm not able to up my 2nd
    PPPoE interface (which will be tun1) which means no 2nd route, then what'll
    be the use of using routed.

    I've already mentioned this why I'm not able to dial another pppoe
    connection, because gateway assinged to me in both PPPoE connection is
    same.

    >
    > Hope this helps some.


    Thanks
    - --
    Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/
    ·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.6 (GNU/Linux)

    iD8DBQFHX4m9Hy+EEHYuXnQRAgrBAJ9iwPAAtwa0gzBmcttyev ra6pjfnACgsVRL
    Q9yxA2ovkArDghRCjXxRKjM=
    =fCat
    -----END PGP SIGNATURE-----

  4. Re: Running 2 PPPoE connections connecting to the same PPPoE server.

    Ashish Shukla आशीष शुक्ल wrote:

    [snip]
    >>> ---->8---->8----
    >>> ppp[1583]: tun1: Warning: iface add: ioctl(SIOCAIFADDR, x.x.x.x ->
    >>> a.a.a.a): File exists
    >>> ppp[1583]: tun1: Error: ipcp_InterfaceUp: unable to set ip address
    >>> ----8<----8<----
    >>>
    >>> The error is probably due to same gateway (a.a.a.a) assigned to both
    >>> PPPoE connections by the PPPoE server. Am I correct ?
    >>>
    >>> And is there any other way, I can have this configuration ?
    >>>
    >>> References:
    >>> [1] - http://lartc.org/howto/lartc.rpdb.mu...ks.html#AEN298
    >>>
    >>> TIA

    >> Hello,
    >> This can be changed in the ppp conf, I would think that making two
    >> seperate conf files and loading each one, then using routed to route the
    >> two together. Bit ugly but would work. Reading the docs i'm sure you can
    >> have two seperate nets working as one, but how pppd works is you need to
    >> compile in some netgraph modules and redo the conf so it tends to listen
    >> on a ethernet card rather a modem com port. Think you know this

    >
    > Thanks for the reply, but tell me one thing. If I'm not able to up my 2nd
    > PPPoE interface (which will be tun1) which means no 2nd route, then
    > what'll be the use of using routed.


    routed is for RIP traffic with LAN/WAN routers. If you're not exchanging RIP
    you don't need it.

    > I've already mentioned this why I'm not able to dial another pppoe
    > connection, because gateway assinged to me in both PPPoE connection is
    > same.
    >

    [snip]

    I don't have any recent direct experience with it but you may want to
    investigate mpd. IIRC it was the preferred solution with regard to the
    multiple interface PPPoE route. YMMV. See /usr/ports/net either mpd4 or
    mpd5.

    -Jason


  5. Re: Running 2 PPPoE connections connecting to the same PPPoE server.

    On Wed, 12 Dec 2007 08:40:08 +0000, Jason Bourne wrote:

    [snipped]

    > I don't have any recent direct experience with it but you may want to
    > investigate mpd. IIRC it was the preferred solution with regard to the
    > multiple interface PPPoE route. YMMV. See /usr/ports/net either mpd4 or
    > mpd5.


    Tried mpd, but its also not able to add a route via same gateway for
    second connection. But I find a hack. And that will be so simple, provided
    one has knows how PPP works, and routing via gateway works.

    In PPP, there is no need of ARP, since both endpoints know about each
    other at the time of PPP connection negotiation. And in routing via
    gateway, no packet is send every to gateway's IP address, instead
    packets are sent to its link-layer address. So, if one is able to change
    IP address of the remote endpoint of the next PPP connection, OS will be
    happy to add a route for that PPP connection also, and changing IP address
    of remote endpoint of the PPP connection doesn't had any effect on PPP
    connection, since that IP address is never going to be used in destination
    packets (unless one really wants to send packets destined to the gateway).

    So after mpd is running with 2 PPPoE connections (ng0 and ng1), with ng0
    assigned an IPv4 address but ng1 is not, since OS doesn't allow adding
    2 routes via same gateway, so ng1 is simply idle. So what I did is
    manually set parameters of ng1 with 'ifconfig', and set IP address
    of 'remote endpoint' to a another IP of ISPs network. And this worked
    fine.

    Now all I need to do is to load-balance over these connections.

    >
    > -Jason


    I hope my above reasoning is correct, in case its not please point me
    where I'm wrong.

    Thanks for the points. TIA for any corrections.
    --
    Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/
    ·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --


+ Reply to Thread