static routing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.  Hope someone can help me with some route command examples.
 
1. I have four IP's assigned to my DSL modem, which has a 10BaseT
connection.
2. I have several computers plugged into my 100BaseT hub.
 
I have a Linux box with 2 network cards - one 10BT card for the DSL
modem, and one 100BT card for my local LAN.  I am currently doing IP
MASQ and it works well.
 
My question:  I am only using one IP from the modem to my 10BT card -
how can I assign/route/transfer/tunnel the other three IPs to the other
pcs on the local net?
 
If my DSL modem had a 100BT connection, I could just plug that into the
hub, and assign the three IPs directly to the machines.  But that is not
the case -- I will have to do some strange routing though my Linux box.
Is it possible to say something like
 
to Linux: "Any connections coming in on those three IPs,
64.50.146.19,64.50.146.20,64.50.146.21, please route that to
192.168.1.2, 192.168.1.3, and 192.168.1.4, respectively."
to windows 98 box (192.168.1.2):  "Please pretend you are 64.50.146.19,
you will get this through 192.168.1.1).
to windows 98 box (192.168.1.3):  "Please pretend you are 64.50.146.20,
you will get this through 192.168.1.1). 
to windows 98 box (192.168.1.4):  "Please pretend you are 64.50.146.21,
you will get this through 192.168.1.1).
 
So this is purely a routing issue.  I can't just plug everything into my
10/100 hub.  That would be to easy.  I want to do this without any extra
hardware, too.

Thanks,
Brian Klug
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux