[EMAIL PROTECTED] wrote:
All,Hi, Mike:
This may seem stupidly easy, but please here me out.....
I have 2 pro100 nics (using eepro100 driver)
currently my setup is..
ifconfig
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx inet addr: 172.172.16.1 Bcast:172.172.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth1 Link encap:Ethernet HWaddr yy:yy:yy:yy:yy:yy inet addr: 172.172.16.1 Bcast:172.172.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
These nics are connected with an RJ-45 crossover cable......
what do I need to do to get ftp communication between these devices.........
You need to put them in different machines and give them different IP addresses. :-| HTH, Chuck
Well, Mike, you see what you get when you keep asking the same question over and over, in increasingly vague terms.
Since I remember what your actual, original question was, I suggest you try what I suggested back then -- look at the source code for ping (specifically for a version of ping that implements the -I flag) and see how it does it. I just did that for the stock ping that Debian distributes (in netkit-base). It uses the setsockopt() call to assign to its socket an a.b.c.d value contained a struct in_addr called ifaddr. This seems to force the packets that ping sends to go out the specific interface you specify on the command line, rather than following the routing table.
This is *probably* what you need. The source provides what looks to me like a good example, and the relevant man pages should fill in the rest.
Oh, Chuck is right, though, that the two interfaces still do need distinct IP addresses ... but I assume that part was just a typo in your message.
- To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs