Sounds like you want to look at iptables and read about the FORWARD
rules. Search Google for rc.firewall to get some examples, like:
http://iptables-tutorial.frozentux.n...c.firewall.txt
You probably wouldn't want to have both network cards with IP's on the
same network subnet. If eth0 and eth1 were both on the same subnet,
why pass through the Linux box?
(E-Mail Removed) wrote:
> Hi.
>
> I have a requirement like below:
>
> (Host A)
> Traffic Generator -> (eth0) Linux box with Two NICs (eth1)---->Router's
> Interface
>
> I have a 192.168.x.x /24 IP setup on the eth0, my requirement is to get
> the traffic generated from Host 'A' to eth1 (ideally forwarded from
> eth0). At this point I have two questions:
>
> 1) If I need to get the traffic from eth0 to eth1, should I setup eth1
> to have a 192.168.x.x IP? and set a default route to eth1 IP ?
>
> 2) Is there any other approach (which will just fwd all packets on eth0
> to eth1 irrespective of the IP - at the MAC level) to do this?
>
> Thanks & Regards
> Ramesh