RE: static routing

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

 



I think I can help with the first part of this (provided Jim's issue with
MAC addresses doesn't hold true for your situation)--how about virtual IP's
on your 10Base interface?  It sounds like you've got masquerading compiled
into your kernel, so you should be able to set up multiple virtual IP's on
that one interface:

ifconfig eth0:1 64.50.146.19 netmask <whatever> bcast <whatever> up
ifconfig eth0:2 64.50.146.20 netmask <whatever> bcast <whatever> up
ifconfig eth0:3 64.50.146.21 netmask <whatever> bcast <whatever> up

I'm not too sure about the routing part, though--I'd suggest something like
ipchains, but I don't have the experience with it, and AFAIK you'd have to
set that up on a port-by-port basis.  Anyone better educated than I have any
suggestions?  


-----Original Message-----
From: Brian Klug [mailto:bklug@indiapoint.com]
Sent: Friday, July 28, 2000 10:33 AM
To: linux-net@vger.rutgers.edu
Subject: static routing


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
-
: 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