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/
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --

.



Relevant Pages

  • Re: VPN and remote gateway
    ... > It seems you use the wrong route add command. ... > when the VPN connection is established. ... > | using the remote network as my gateway. ...
    (microsoft.public.windows.server.sbs)
  • Re: 1 NIC Windows 2003 Domain; 1 Wireless NIC to Internet - Cant get both working
    ... >and also needs to use a Wireless NIC to connect to the Internet ... Each connection can specify a default gateway, ... and ittue the command 'route print' when both are ...
    (microsoft.public.windowsxp.network_web)
  • Re: 1 NIC Windows 2003 Domain; 1 Wireless NIC to Internet - Cant get both working
    ... >and also needs to use a Wireless NIC to connect to the Internet ... Each connection can specify a default gateway, ... and ittue the command 'route print' when both are ...
    (microsoft.public.windows.server.sbs)
  • Re: configuring Multiple network cards
    ... Are the boxes at eth1 supposed to send password and file data out to the ... if you set the IP address of eth0 as the default gateway ... eth1 will send all packets there first. ... gw GW route packets via a gateway. ...
    (comp.os.linux.networking)
  • freebsd-net Digest, Vol 290, Issue 2
    ... Send freebsd-net mailing list submissions to ... Closing connection from an accept_filter ... %route add 10.0.0.0/8 192.168.3.1 ... add net 10.0.0.0: gateway 192.168.3.1 ...
    (freebsd-net)

Loading