Sponsored Content
Special Forums IP Networking howto start with gateway / router / masquerading Post 302340524 by chebarbudo on Monday 3rd of August 2009 06:02:41 PM
Old 08-03-2009
Question howto start with gateway / router / masquerading

Hi there,

I have only basic knowledge in Unix but I'm eager to learn.
I have a new complex (for me) exercice and I have no idea how to start.
I have a regular network on witch I'm trying to plug another network.

Here is an image of the physical network.
Image
  • On the left is the original, three-node, standard, home network (192.168.1.0 / 255.255.255.0): An internet box (192.168.1.1), my computer (192.168.1.32) and a server (cassiopeia 192.168.1.224).
  • I've added two ethernet adapters to cassiopeia.
    • One belongs to the top right network (172.16.199.0 / 255.255.255.0): a four-node network with cassiopeia (172.16.199.1) and 3 machines (172.16.199.151..153)
    • The second belongs to the bottom right network (172.16.70.0 / 255.255.255.0): a two-node network that could host more machines but I'm laking a switch.
All three networks work fine and all machines within the same network can communicate.

What I need is to set cassiopeia (a GNU/Linux Debian) to enable communication between networks:
  • Set cassiopeia as gateway to the internet for 172.16.199.xxx
  • Set cassiopeia as gateway to the internet for 172.16.70.1
  • Set cassiopeia as a link between the two 172.16 networks
Let me give more specific needs:
  • When 172.16.70.151 requests something like 172.16.199.152, it stays in the top right network
  • When 172.16.70.151 requests something like 172.16.70.1, it's routed to the bottom right network
  • When 172.16.70.151 requests something like Google, it's routed to the internet box
  • When 172.16.70.1 requests something like 172.16.199.151, it's routed to the top right network
  • When 172.16.70.1 requests something like Google, it's routed to the internet box
So far, I have set machines like this:
  • address = 172.16.199.151..153
    netmask = 255.255.255.0
    gateway = 172.16.199.1
  • address = 172.16.70.1
    netmask = 255.255.255.0
    gateway = 172.16.70.254
Now comes my question:
What should I install on cassiopeia (GNU/Linux Debian) to serve my needs? Is is a gateway, a router or what? Do you know free softwares? Do you know man pages to help me configure it?

Thanks for your help.
Santiago
 

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Remote Unix printing to my WinXP works with no router. How can I make it work through my router?

I set up remote printing on a clients Unix server to my Windows XP USB printer. My USB printer is connected directly to my PC (no print server and no network input on printer). With my Win XP PC connected to my cable modem (without the router), i can do lp -dhp842c /etc/hosts and it prints. I... (7 Replies)
Discussion started by: jmhohne
7 Replies

2. Linux

GNUGK-How to setup static gateway to gateway routing

Dear Sir I am a newbie in the world of IP telephony. I have been working with Asterisk PBX (SIP) and Cisco Call Manager (MGCP) but now I am learning on how to work GNUGK for H.323 Gatekeeper. I am having a problem, configuring static call routing on GNUGK in the section ... (0 Replies)
Discussion started by: mfondoum
0 Replies

3. UNIX for Beginners Questions & Answers

Inconsistency between RedHat 6.5 global gateway and single gateway leads to loss of default gateway

Dear friends I use RedHat 6.5, which sets the gateway in the configuration file / etc / sysconfig / network as GATEWAY = 192.168.1.26, and the gateway in the configuration file / etc / sysconfig / network-scripts / ifcfg-eth11 as GATEWAY = 192.168.1.256. The two gateways are different.... (6 Replies)
Discussion started by: tanpeng
6 Replies

4. UNIX for Beginners Questions & Answers

Howto auto boot SPARC | How to auto supply "start /SYS" and "start /SP/console" commands

When I power ON my T4-1, I got a prompt -> where I have to start /SYS and start /SP/console. How can I auto supply these two commands ? (3 Replies)
Discussion started by: z_haseeb
3 Replies
All times are GMT -4. The time now is 10:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy