Linux Networking question

I would like to be able to have 4 computers at home with real ip's over a dialup to the internet.

server A is the ppp server on the internet.
server B is the ppp dialup on my local net.

I am not sure how to setup the netmasks or routing tables to correctly route the ip's of the machines connected to server B, or how to make server A route the additional ips to server B.  How does the Server A tell its router that it is a router also, or is that done by the netmask?  

From what I have been reading, machines connecting to server B must have a netmask of 255.255.255.248 and the gateway ip of server B.  Is the gateway IP the IP of server B's modem or Netcard?  How do you setup the routing on server B so that packets get routed fromt the PPP interface to the ethernet interface?

I have found alot of how to's and faq's for Masquerading and Proxy, but no comprehensive routing ones.  If anyone could help me or point me to some more information I would greatly appreciate it.
skyman092397Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

unicorntechCommented:
OK here goes. Firstly you will require your isp to issue 4 ip addresses for you. Then you will need to assign one of these ip 's to each of the 4 computers as normal.

Let's say you had 32 ip's eg 203.20.35.1 with a mask of 255.255.255.224 ie 203.20.35.1-203.20.35.32. This would enable you to assign an ip of 203.20.35.1 to your dial-out server from home. Then assign any of the others to your other 3 machines.

What you would then need to do is to set a DEFAULTROUTE to 203.35.20.1 via the interface ethernet0 for eg.

This means that say on one of the 3 other machines (not the dial-up machine) on the network there is a packet sent to a netwotk not part of your physical network. The defaultroute would tell the packet to go to the server 203.35.20.1. On the server 205.35.20.1 there is a defaultroute set to your isp and then your isp will deal with the routing from there.

This is a fairly simple setup and if you require very detailed instructions on how to do this you can e-mail me at jasons@aone.com.au,

Regards,

Jason
0
skyman092397Author Commented:
I am sorry for being unclear about the fact that I am my own isp.

Server A is my machine at work on the internet
Server B is my machine at home

I am still unclear how the netmask and router(gateway???) affect the local and remote networking.  Additional information that may be of use:

Server A is Windows NT 4.0 Server with RAS
Server B is a Redhat linux 4.1 box and can dialup for a single ip

0
eckspurtCommented:
There are a couple ways you can go.  I'll assume your work net is behind a firewall.  Then I'll assume you don't control the entire network at your office, and mention what you need to do in that case:

[Method 1]

Give Server_B the address 10.0.0.1.  The 10.0.0 network is reserved for use within an organization.  

Set up routing on Server_A to reflect that 10.0.0.1 will be on the PPP interface.  List it as the gateway for the 10.0.0 network, with a netmask of 255.255.255.0.  Much simpler than dealing with tiny subnet masks, eh?  

Set up routing on Server_B to point at Server_A's IP address for its default route.  Give your ethernet interface the address 10.0.0.1, and assign a 255.255.255.0 netmask.  Number all your other home systems within 10.0.0.  The hard part will be to set up IP Masquerading, but at least the HOWTO describes what you have to do with that to permit your other systems to talk to the Net.

[Method 2]

If you *do* have control of your office network, should I worry?  ;-)  That would remove the necessity for IP Masquerading, but you'd have to carve a chunk of addresses out of that network so you could assign them to your home systems, and you're back to worrying about tiny subnet mask.  You'd also have to change the netmask on every other system in your office if they're now using 255.255.255.0.

So in summary, the answers to each of your original questions are:

Question 1 -
  (For method 1) Get the admin of your upstream router to add Server_A as the gateway for 10.0.0.  
  (For method 2) If your upstream router supports it (and trusts Server_A), use RIP to advertise routing for your home systems.

Question 2 -
  The gateway IP (at home) is that of Server_B's ethernet card.

Question 3 -
  Set Server_A as the gateway for the default route.  Then any packets destined for anywhere but 10.0.0 (in method 1) will be sent out the PPP interface.

With all the questions you asked or neglected to ask, I hope that's enough information to get you going!  Keep the NET-3-HOWTO handy while you're configuring things.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
skyman092397Author Commented:
I never said anything about being behind a firewall and I am not.

If it wasn't evident about the netmask and the mentioning of the faq's, I DONT WANT TO MASQ or PROXY.

I am my own ISP by most peoples standards, I server out my own dialup lines.  Although I dont have control of the router.

All I want to do is route IP's though one dialup line that are on the same subnet.  I know its possible, I just don't know how.

btw I DIDNT accept this answer.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.