LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-19-2004, 04:02 PM   #1
skukreja
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
Single Ethernet card testing on Linux


Hi,

I am trying to write a tester for an ethernet card on linux. This testor requires that I disconnect from the network to test it. So I am using a physical loopback device (RJ45 connector looped back) to mock a network path.

To test the card I am using a raw socket based application which I am developing. So I construct the ethernet frame myself and send it.
The problem is that whenever I send this packet (which I create) to a static IP address (which I have configured to be 162.181.4.20), it just gets looped back and does not appear on the wire. I have written a sniffer which displays whatever packets the device driver receives and this shows a packet received. But when I remove the loopback I still see that the sniffer is getting the packet.

Some one suggested that I use multicast for this. I see the same problem with that. I have set up a route as follows:

route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0

and enabled IP multicasting as well. But to no avail.

please help.

Thanks
Sumeet
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting a single ethernet port to multiple PCs? beejayzed Linux - Networking 14 09-08-2005 04:14 PM
Multi IP Address to Single ethernet card scratch09 Linux - Networking 4 02-22-2005 10:22 PM
Ethernet card on laptop: I installed my D-Link ethernet card into Redhat 9, not detec brighamr Linux - Hardware 0 05-18-2004 12:33 AM
Single Port Ethernet ADSL Modem.... Pongo Linux - Networking 1 12-05-2002 11:11 PM
ethernet config with Mandrake Single Network Firewall Leilani Linux - Software 1 11-06-2001 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration