Join us now. It is free, and it takes less than 1 minute to register.
Register now
Subscribe to our daily newsletter. It is free, and it comes with many benefits.


+ Reply to Thread
Results 1 to 2 of 2

Thread: Multiple PPPOE connections on linux

  1. #1

    Red face Multiple PPPOE connections on linux

    Heya fellow dsl users...

    I am a real linux n00b so plz go easy on me....

    I have linux debian installed with two NIC`s (eth0, eth1).

    I have managed to successfully establish pppoe connection on eth1 to my (defaulted) marconi dsl router. I can browse internet through my linux bux amma 10 10. No problems.

    What i would like to do is have two pppoe connections ppp0 and ppp1 connected to my dsl router using different users and passwords.

    What i did was is to create another dsl-provider file (called dsl-provider2)under /etc/ppp/peers/ and uncomment the #default connection part, and set the seconds username in there. I then proceeded to update my pap-secrets file with that 2nd user and password. I then executed:

    pppd call dsl-provider2

    My if config looks like this:

    eth0 Link encap:Ethernet HWaddr 00:C0F:F6:1F:10
    inet addr:192.168.10.111 Bcast:192.168.10.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:468508 errors:0 dropped:0 overruns:0 frame:0
    TX packets:429841 errors:0 dropped:0 overruns:0 carrier:0
    collisions:113 txqueuelen:1000
    RX bytes:40324971 (38.4 MiB) TX bytes:77917273 (74.3 MiB)
    Interrupt:4 Base address:0xb000

    eth1 Link encap:Ethernet HWaddr 00:C0F:F6:1F:19
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:474133 errors:0 dropped:0 overruns:0 frame:0
    TX packets:513289 errors:0 dropped:0 overruns:0 carrier:0
    collisions:96 txqueuelen:1000
    RX bytes:94283954 (89.9 MiB) TX bytes:51734339 (49.3 MiB)
    Interrupt:10 Base address:0xa800

    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:482 errors:0 dropped:0 overruns:0 frame:0
    TX packets:482 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:32678 (31.9 KiB) TX bytes:32678 (31.9 KiB)

    ppp0 Link encap:Point-to-Point Protocol
    inet addr:165.165.199.251 P-t-P:165.165.192.1 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
    RX packets:469638 errors:0 dropped:0 overruns:0 frame:0
    TX packets:508910 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:3
    RX bytes:83680794 (79.8 MiB) TX bytes:40273983 (38.4 MiB)

    ppp1 Link encap:Point-to-Point Protocol
    inet addr:165.165.62.193 P-t-P:165.165.56.1 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
    RX packets:120 errors:0 dropped:0 overruns:0 frame:0
    TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:3
    RX bytes:5966 (5.8 KiB) TX bytes:198 (198.0 b)


    So, ppp0 was established with dsl user A, and ppp1 using dsl user B. I can ping ppp0 address from outside but not the ppp1 address. I can even ping the "telkom ip address" P-t-P:165.165.56.1, but it seams the ping cannot go from there to my router and or NIC to the ppp1 interface. I can also not ping outside using the ppp1 interface.

    I have cleared (allowed) all iptables for all interfaces.



    If anyone could point me in some direction in fixing this, plz...

  2. #2

    Talking

    okeey,

    FYI

    found the problem. Problem is there are no routes setup for that interface. So by doing a

    route add -net 196.0.0.0/8 dev ppp1

    i was able to redirect all (well, some) of my local traffic thorugh my "capped local" account using only one router while all other traffic goes through my normal dsl account.

    This quite a nice solution and quite easy to setup if you have two dsl accounts (one for local traffic, and other for international). You can even share an account with someone else, and use it for local traffic.

    PP

+ Reply to Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •