Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Multiple IP's across PPP

Posted on 1997-08-12
Medium Priority
Last Modified: 2010-03-17
How do I route multiple (16)  IP's over a PPP dial-in.
ip-up ?       If so, what's the script and syntax ?
Question by:bemidji
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4

Author Comment

ID: 1586000
Adjusted points to 100

Author Comment

ID: 1586001
Adjusted points to 200

Accepted Solution

pele earned 400 total points
ID: 1586002
Bhidji, be more specific.
1) Route 16 of your friends to the outside world?
2) Or use 16 different IPs on a single dial-up account?

If it's the first one, that's simple.
Basically, your "friends" will have to put your machine as a "defaultroute" in their ppp scripts and you will have to add the route to them when they log in. Now, if you have legal IPs for all your 16 friends, then it's easy. There's not enough space
to answer all of that here, but you could read the NAG and maybe NET-3-HOWTO. But, if you DON'T have legal IPs for your 16 friends then you'll have to use ip-masquerading. IP Masquerade Mini-HOWTO (http://WWW.REDHAT.COM/linux-info/ldp/HOWTO/mini/IP-Masquerade)
will help you a great deal.

If it's the second one, it's tricky; if all of the IPs you're using are from the same subnet, then it's ok, but if they are from different subnets then it's impossible. Because the router
at the other end (your ISPs router) won't let you.
Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.


Expert Comment

ID: 1586003
sorry pele- here's more info.  The ppp dial-in is on a isp ppp server.  The 16 ip's are internic legal and are for use as virtual domains on my www NT IIS server.  Does address your questions?

Author Comment

ID: 1586004
Still, you're not telling me if the friends are loging on to your
machine, and using your machine as the gateway to the outside
world, or if you want to use all of the 16 IPs for your own machine.
Or is it something completely different, for example, that your 16 friends are actually on the local ethernet you got in your office?? Then that's even easier. Let's assume for a moment that your machine's IP is
Your subnet is, your netmask is, your broadcast is
When you've dialed in (to your ISP), then I suppose everything works for you? Now...well...first tell me if this is the actual situation and I'll answer, if not, then tell me if which one of the first two is it.


Expert Comment

ID: 1586005
OK PELE - as I stated above the 16 ip's are for VIRTUAL DOMAINS on my www server.  Am I mis-stating something here?

My Nt server will Dial In to an ISP (who is using linux slackware ) via a ppp connection.  The ISP has assigned my server 16 ip's.  
THEY DON'T KNOW HOW to route the static ip's to my name server/virtual domains over the ppp connection.
They have asked me to help them out and fix the routing on THEIR linux box. (not my server) They have one Class C.


Author Comment

ID: 1586006
Oh so there you are.
Ok, ok, don't panic, calm down, everything will be just fine.
First, if your ISP doesn't know the basics of routing - switch ISPs, my friend. But let's leave that for a moment.
Just tell them to use static routes to your machine (that is if you have the money for the dial-up to be up all the time).
If not, then tell them to add more routes through their ppp interface once you've loged on.
Something like:
route add -host virtualIP1 gw isprouter netmask dev ppp0
route add -host virtualIP2 gw isprouter netmask dev ppp0
and so on. (a script does that)

But, why are you using 16 IPs for your virtual domains?
Just tell them to put aliases on their dns. Or if you're doing dns yourself (which would be a bit odd) then you put the aliases.
That way you only have one IP (and pay less to your ISP, if I'm not wrong), and your webserver should easilly handle that. Different pages for different names.

But there's another question. If you've decided to do some virtual hosting, why are you doing it over a dial-up anyway? Think bigger than the miserable 33.6 you're getting. Or is that an ISDN line? If it is, then you do have call-back-demand don't you?



Expert Comment

ID: 1586007
Pele : You mention many good points.  The IIS server with NT will only do virutal domains (virtual hosts in MS words) with a unique ip for each domain.  The dial-up is only for testing for the next month and then the box is going co-host with a different ISP.  Having them manually add the routes each time I log in has it's drawbacks though.  Their configuration assigns a different ppp# to the tty port each time. A different ISP - would be nice.  I'm in northern minnesota.  Not many choices for local dial-up access.  The other isp didn't even know about static ip's.  Maybe I should Move ?
Since I posted this originally, I've added the appropriate case statement (to check for my port), the route add commands and
a proxy arp to the ip-up.  Hopefully this takes care of it.
Thanks Much for your time.

Author Comment

ID: 1586008
I forgot to mention subneting. Tell them to subnet their C-class, that way they don't even have to worry about your IPs as you will handle them. Just tell them to make up a subnet IP (say if their C-class is then your subnet will be say) and then tell them to re-calculate the netmask and broadcast for both their own and your subnet (every ISP worth it's salt should know how to) and then tell them to route to your subnet.
something like
route add -host netmask calculatednetmask dev ppp?
route add -net gw yourmachine
and that's it really.
Good luck with your virtual hosting...

P.S. move or employ me for fee and fun to handle all your admin

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question