Re: forcing boxA to use gateway to get to boxB all on same sub-net...



en2guy@xxxxxxxxxxxxx wrote:

Before anyone suggests something like adding another network card to
the gateway and having them on separate sub-nets, I can't do that.

Maybe not on different physical supbets, but what about different LOGICAL
subnets?

Um, it has been a while and I can't remember if I did this on Linux or some
other UNIX, but you might be able to set up eth0 and eth0:0 on the same
network interface cards, each configured to have a different IP address on
different subnets. Not sure if Linux routing could handle it.

On your gateway I assume eth0 is configured to be 192.168.40.7. So on the
gateway use the command

ifconfig eth0:0 192.168.41.7 netmask 255.255.255.0

Then configure boxA to be on the 192.168.40.0 subnet and boxB to be on the
192.168.41.0 subnet...

If Linux routing can handle it... As I said, it was a long time ago and I
don't remember if it was Linux, so I don't know if it will work, but its a
suggestion.

--

Dan C. Gets caught apparently Plagiarizing:
Message ID: <3ab7l3-tnl.ln1@xxxxxxxxxxxxxxxxxxxx>
Yeah, this is the type critical of me!
.



Relevant Pages

  • Workgroup that spans more than one subnet in Samba
    ... I want a workgroup that spands two IP subnets. ... eth0:192.168.0.1 and gateway of the 192.168.0.0/24 ... The Gateway is a Fedora Core 3 box where I have Samba ... running with this configuration: ...
    (comp.os.linux.networking)
  • Re: Two networks at the same time?
    ... and only one connection to a Gateway therefor. ... You can have multiple LANs, multiple subnets, and can control which one is ...
    (misc.news.internet.discuss)
  • Re: How to add static routes to ISA Server
    ... -Head office gateway for branches LANs ... -ISA private address 192.168.0.1, mask 255.255.255.128 ... How is the ISA addressed? ... subnets, subnets are connected by Cisco routers. ...
    (microsoft.public.isa)
  • Re: Default Gateway outside of subnet
    ... reference the same default gateway address that is located in one of the ... four subnets? ... the ARPs are sent to the all-1's MAC broadcast ... when the packet returns to an IP that the ...
    (comp.dcom.sys.cisco)
  • Help with samba and multiple subnets
    ... I have two subnets in may LAN 192.168.0.0/24 and 192.168.1.0/24. ... gateway, so the gateway has one interface in each subnet (192.168.1.1 ... In both subnets I have Windows and Linux machines ... I need to use the "remote browse sync" to make the local master ...
    (comp.os.linux.networking)