Tom Chen writes:
> There are two network ports on the tested network adapter also and they are 
> connected to the two ports on the equipment. Testing packets sent from the 
> external equipment come to one port of our card, qlge0,  but the packets must 
> be forwarded to another port, qlge1, then forwarded again back to the second 
> port of the external equipment. So, the equipment can know when the packets 
> it sends and when packets come back. Thus, it can calculate the performance.
> 
> I am wondering how do I set up the test client machine so that the packets 
> received by one port can exit from another port? I know in Linux, I can use 
> iptables, but "iptables" isn't available in OpenSolaris. So, how do I set up?

Why not just configure the two ports on separate subnets and enable IP
forwarding?

        # routeadm -e ipv4-forwarding -u

That seems like the simplest possible answer.  If you really want
iptables-like difficulty in this test, you could use the equivalent
functionality in IP Filter -- the "to" keyword should do what you're
asking.

-- 
James Carlson, Solaris Networking              <[email protected]>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to