Re: Packet Forwarding in Linux.



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.net/scripts/rc.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?

rramesh1@xxxxxxxxx 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

.



Relevant Pages

  • Re: Can I bridge without a bridge?
    ... > Your mistake with proxy_arp was probably the netmask for eth0 interface ... > or conflicting/missing routing for eth1 hosts. ... > same as IP, host route to the gateway on eth0, and default route to that ... > 111.222.111.152/32, host route to ISP gw, default to gw ...
    (comp.os.linux.networking)
  • Packet Forwarding in Linux.
    ... I have a 192.168.x.x /24 IP setup on the eth0, ... the traffic generated from Host 'A' to eth1 (ideally forwarded from ... and set a default route to eth1 IP? ...
    (comp.os.linux.networking)
  • Packet Forwarding Setup
    ... I have a 192.168.x.x /24 IP setup on the eth0, ... the traffic generated from Host 'A' to eth1 (ideally forwarded from ... and set a default route to eth1 IP? ...
    (comp.os.linux.setup)
  • hping multiple interface issue
    ... When i try to send a hping to a host via eth1: ... the ICMP requests go through eth0, but the ICMP reply is received on ...
    (comp.os.linux.networking)
  • Re: Problem with bonded (teaming) NICs on RHEL 4.0
    ... I think mii-tool has a problem with GIG speeds. ... When you run mii-tool for eth0 and eth1 it does not show that. ...
    (RedHat)