<br><br><div><span class="gmail_quote">On 8/16/06, <b class="gmail_sendername">kai</b> <<a href="mailto:centos@sandsengen.com">centos@sandsengen.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Chris Mauritz wrote:<br>> By the way, if you just want to set up a simple bridge between two<br>> networks, I remember reading an article in Linux Journal last year<br>> sometime (fires up Google....here it is):<br>
><br>> <a href="http://www.linuxjournal.com/article/8172">http://www.linuxjournal.com/article/8172</a><br>Thank you for the link to the article, yes that's the funksion I'm<br>looking for.<br>But then, maybe a lame question,
<br>How to set up a router that just forward packets to next hop?<br><br>I have googled my self blue without anything.<br><br>Yes I have 2 nic,s on the same machine and using a crossed cable, so<br>hooking up on each side works fine.
<br><br>I need to hook up equipment on the one side to monitor packets used, and<br>also I would like to use the CentOS as a router towards the wan with my<br>new sangoma s518 card, but if I can't route between two simple nic's I
<br>feel stuck.</blockquote><br><div><br>
>From you original post: Is this OK?<br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.2.0/" target="_blank">192.168.2.0</a> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://0.0.0.0/" target="_blank">0.0.0.0
</a> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://255.255.255.0/" target="_blank">255.255.255.0</a> U 0 0 0 eth1<br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.2.0/" target="_blank">192.168.2.0</a> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://0.0.0.0/" target="_blank">0.0.0.0
</a> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://255.255.255.0/" target="_blank">255.255.255.0</a> U 0 0 0 eth0</div>IIUC
this seems to be your remote network, behind <a href="http://192.168.1.150">192.168.1.150</a> which is
your gw. These routes claim that <a href="http://192.168.2.0">192.168.2.0</a> is directly connected to
your host --is it right?. If yes, I can hardly see any purpose in
having both interfaces on the same IP subnetwork. I think you may want
to further clarify your situation with a silly ASCII art diagram, and
state how you are testing your setup.<br>
<br>
<div>I assume you are testing with ping. Are you sure the machines you
want to reach really know the way back to the originating node so they
are able to acknowledge your pings (i.e. do they know the route to
<a href="http://192.168.1.0/24">192.168.1.0/24</a>)? <br>
Have you had a look at what really comes in and out the interfaces (with, say, tcpdump)? For instance <br>
# tcpdump -i eth 1 host <a href="http://192.168.2.1">192.168.2.1</a><br>
may show you something interesting when pinging <a href="http://192.168.2.1">192.168.2.1</a>.<br>
</div></div><br>-- <br>Eduardo Grosclaude<br>Universidad Nacional del Comahue<br>Neuquen, Argentina