Re: route to/from xover box

2003-04-25 Thread robjeh
Sorry i didn't send my anser to the maillist but i suggested to use proxyarp
with ip_forwarding and made a small example. ( i think its the fasted way to
solve this problem.

Greatings,
  Robbert Helling

Citeren Tarragon Allen [EMAIL PROTECTED]:

 On Fri, 25 Apr 2003 01:04 am, Mark Constable wrote:
  Not strictly Debian related but the boxes in question are deb powered.
  I have just been given a /28 (16 node) subnet and until I get a switch
  in place I have a short xover eth cable between two boxes. I thought I
  could get away with a couple of static routes in the mean time but the
  upstream default gateway on the first box keeps arping for the IP on
  the 2nd box... subnet is x.x.x.144/28 ...
 
   x.x.x.145 - eth0:x.x.x.146 eth1:x.x.x.147 -xover- eth0:x.x.x.158
 
  Any suggestions as to how x.x.x.158 can see the outside world ?
 
 Well, the gateway is ARPing for x.158 because it thinks it's on the same 
 network, which it isn't. Three suggestions :
 
 1) reconfigure the gateway with a static route to x.158 through x.147.
 
 2) configure ethernet bridging on x.147 through to x.158.
 
 3) use a different subnet for the x.158 box. Of course this will require the
 
 gateway to be reconfigured as well. Depending on what the x.158 machine needs
 
 to do, it might be easier to give it a private IP address and NAT it through
 
 the x.147 machine instead.
 
 t
 -- 
 GPG : http://n12turbo.com/tarragon/public.key
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact
 [EMAIL PROTECTED]
 
 
 





__


http://www.wanadoo.nl/




route to/from xover box

2003-04-24 Thread Mark Constable
Not strictly Debian related but the boxes in question are deb powered.
I have just been given a /28 (16 node) subnet and until I get a switch
in place I have a short xover eth cable between two boxes. I thought I
could get away with a couple of static routes in the mean time but the
upstream default gateway on the first box keeps arping for the IP on
the 2nd box... subnet is x.x.x.144/28 ...

 x.x.x.145 - eth0:x.x.x.146 eth1:x.x.x.147 -xover- eth0:x.x.x.158

Any suggestions as to how x.x.x.158 can see the outside world ?

--markc




Re: route to/from xover box

2003-04-24 Thread Mark Constable
On Fri, 25 Apr 2003 01:48 am, you wrote:
 Proxy ARP on the .146/.147 box for .158?

I would have thought so too but all my attempts at arp'ing just
get errors like... (including a lot of attempted variations)..

# arp -i eth1 -s x.x.x.158 00:20:ED:47:B3:21 netmask 255.255.255.240
SIOCSARP: Invalid argument

No combination of static routes has worked so far either. I usually
work with full c-classes and switches so am on unfamiliar territory.

Should I look at bridging the interfaces ? ... perhaps snat ?

  x.x.x.145 - eth0:x.x.x.146 eth1:x.x.x.147 -xover- eth0:x.x.x.158

--markc




Re: route to/from xover box

2003-04-24 Thread Eric Cunningham
Hi Mark,

I'm not sure I understand your setup.  Is the x.x.x.145 machine your
router or your ISP's?  What do the routing tables look like for each
machine you control?  From my experience, an upstream connection is
usually placed on a bridge network such as a /30.  You may want to try
something like transparent bridging...

http://www.linux.org/docs/ldp/howto/mini/Bridge/index.html

If I were you, I'd expediate that switch.  Unless you're going to do some
sort of firewall or proxy, a $20 hub will get you by and would make life a
lot simpler.

-eric


 Not strictly Debian related but the boxes in question are deb powered. I
 have just been given a /28 (16 node) subnet and until I get a switch in
 place I have a short xover eth cable between two boxes. I thought I
 could get away with a couple of static routes in the mean time but the
 upstream default gateway on the first box keeps arping for the IP on the
 2nd box... subnet is x.x.x.144/28 ...

  x.x.x.145 - eth0:x.x.x.146 eth1:x.x.x.147 -xover- eth0:x.x.x.158

 Any suggestions as to how x.x.x.158 can see the outside world ?

 --markc


 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact
 [EMAIL PROTECTED]


*
Eric Cunningham
Network Administrator
Beccel Systems
http://www.beccel.com
*





Re: route to/from xover box

2003-04-24 Thread Tarragon Allen
On Fri, 25 Apr 2003 01:04 am, Mark Constable wrote:
 Not strictly Debian related but the boxes in question are deb powered.
 I have just been given a /28 (16 node) subnet and until I get a switch
 in place I have a short xover eth cable between two boxes. I thought I
 could get away with a couple of static routes in the mean time but the
 upstream default gateway on the first box keeps arping for the IP on
 the 2nd box... subnet is x.x.x.144/28 ...

  x.x.x.145 - eth0:x.x.x.146 eth1:x.x.x.147 -xover- eth0:x.x.x.158

 Any suggestions as to how x.x.x.158 can see the outside world ?

Well, the gateway is ARPing for x.158 because it thinks it's on the same 
network, which it isn't. Three suggestions :

1) reconfigure the gateway with a static route to x.158 through x.147.

2) configure ethernet bridging on x.147 through to x.158.

3) use a different subnet for the x.158 box. Of course this will require the 
gateway to be reconfigured as well. Depending on what the x.158 machine needs 
to do, it might be easier to give it a private IP address and NAT it through 
the x.147 machine instead.

t
-- 
GPG : http://n12turbo.com/tarragon/public.key




Re: route to/from xover box (SOLVED)

2003-04-24 Thread Mark Constable
 I have been allocated a x.x.x.144/28 (16 node) subnet
 .145 is the upstream gateway, .146/.147 is eth0/eth1 on box1
 there is a short xover cable between eth1 on box1 and box2
 .158 is eth0 on box2

 x.x.x.145 - eth0:x.x.x.146 eth1:x.x.x.147 -xover- eth0:x.x.x.158

On box1 (.146/.147) I have a static route...

 route add x.x.x.158 gw x.x.x.147

On box2 (.158) I did...

 echo 1  /proc/sys/net/ipv4/conf/eth0/proxy_arp
 arp -s x.x.x.158 x:x:x:x:x:x pub

Thanks to all for your helpful suggestions, and this link...

 http://www.sjdjweis.com/linux/proxyarp/

--markc