Find the answer to your Linux question:
Results 1 to 2 of 2
The situation is like This, I have made 4 pppoe connections : ifconfig linux:~ # ifconfig Code: dsl0 Link encap:Point-to-Point Protocol inet addr:62.162.237.116 P-t-P:62.162.236.1 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2005
    Posts
    1

    Exclamation a Tricky Internet Connection Sharing - Problem ??? HOW TO


    The situation is like This,
    I have made 4 pppoe connections :
    ifconfig

    linux:~ # ifconfig
    Code:
    dsl0 Link encap:Point-to-Point Protocol
    inet addr:62.162.237.116 P-t-P:62.162.236.1 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
    RX packets:308 errors:0 dropped:0 overruns:0 frame:0
    TX packets:249 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:3
    RX bytes:99036 (96.7 Kb) TX bytes:19782 (19.3 Kb)
    
    dsl1 Link encap:Point-to-Point Protocol
    inet addr:62.162.236.208 P-t-P:62.162.236.1 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
    RX packets:189 errors:0 dropped:0 overruns:0 frame:0
    TX packets:208 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:3
    RX bytes:31021 (30.2 Kb) TX bytes:14821 (14.4 Kb)
    
    dsl2 Link encap:Point-to-Point Protocol
    inet addr:62.162.237.8 P-t-P:62.162.236.1 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
    RX packets:249 errors:0 dropped:0 overruns:0 frame:0
    TX packets:422 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:3
    RX bytes:33358 (32.5 Kb) TX bytes:40321 (39.3 Kb)
    
    dsl3 Link encap:Point-to-Point Protocol
    inet addr:62.162.237.29 P-t-P:62.162.236.1 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
    RX packets:405 errors:0 dropped:0 overruns:0 frame:0
    TX packets:337 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:3
    RX bytes:226021 (220.7 Kb) TX bytes:49148 (47.9 Kb)
    
    eth0 Link encap:Ethernet HWaddr 00:E0:4C:00:28:8A # the interface that connects to DSL modem
    inet addr:10.0.0.1 Bcast:212.110.89.255 Mask:255.255.255.0
    inet6 addr: fe80::2e0:4cff:fe00:288a/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:1281 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1473 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:422828 (412.9 Kb) TX bytes:173898 (169.8 Kb)
    Interrupt:10 Base address:0x8000
    
    eth1 Link encap:Ethernet HWaddr 00:02:44:70:CD:CE
    inet addr:192.168.252.1 Bcast:192.168.252.255 Mask:255.255.255.0
    inet6 addr: fe80::202:44ff:fe70:cdce/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:442 errors:0 dropped:0 overruns:0 frame:0
    TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:32109 (31.3 Kb) TX bytes:17094 (16.6 Kb)
    Interrupt:11 Base address:0xa000
    
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:249 errors:0 dropped:0 overruns:0 frame:0
    TX packets:249 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:18828 (18.3 Kb) TX bytes:18828 (18.3 Kb)
    In the Netwok i have more than 50 PCs, that have private address : form 192.168.252.50 - 192.168.252.250
    1. Not i what the hosts from 192.168.252.50 - 192.168.252.99 to have connection thrue dsl0 and the gateway to be device dsl0 or : 62.162.237.116
    2. Not i what the hosts from 192.168.252.100 - 192.168.252.149 to have connection thrue dsl1 and the gateway to be device dsl1 or : 62.162.236.208
    3. Not i what the hosts from 192.168.252.150 - 192.168.252.199 to have connection thrue dsl2 and the gateway to be device dsl2 or : 62.162.237.8
    4. Not i what the hosts from 192.168.252.200 - 192.168.252.250 to have connection thrue dsl3 and the gateway to be device dsl3 or : 62.162.237.29

    Like you see from the above all dsl devices have the same Gateway: 62.162.236.1

    The point is , all hosts from the network 192.168.252.0/24 to have the gateway 192.168.252.1 but inside in the linux to make this posible.

    Please can Anyone help me to make This .
    Last edited by loft306; 12-23-2005 at 09:34 PM.

  2. #2
    Linux Enthusiast
    Join Date
    Apr 2004
    Location
    UK
    Posts
    678

    I'll bite

    Definitly a tricky one. In fact I don't know if what you are after is possible. So to try and get some motion on your question I have a few of my own.

    Why do you want this? Is it for monitoring or traffic shaping? There might be alternative solutions that will do what you want.

    Do all of the client PCs require to have the same gateway? If not, then something similar can be set up by giving eth1 four IP addresses and setting the gateways of each PC to the correct address.

    Code:
    ifconfig eth1:0 <ip address> up
    ifconfig eth1:1 <ip address> up
    ifconfig eth1:2 <ip address> up
    ifconfig eth1:3 <ip address> up
    Should create four suitable virtual network devices which you can route traffic to.

    If that doesn't help, then we're back at my original question: What's it for?

    Chris...
    To be good, you must first be bad. "Newbie" is a rank, not a slight.

Posting Permissions

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