LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-08-2006, 04:19 AM   #1
TroelsSmit
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Rep: Reputation: 30
Test ethernet connection


Hi all,

I'm developing an embedded product running linux.
The product has two ethernet netcards and two switches on the main board.

During production the ethernet connection should be tested, so I would like to connect the two switches with a patch cable and send traffic from one ethernet card to the other.

To do this I tried to do the following:

Code:
ifconfig eth0 10.2.0.3 netmask 255.255.255.0
ifconfig eth1 10.2.0.4 netmask 255.255.255.0

route delete (all)

route add -host 10.2.0.4 eth0
route add -host 10.2.0.3 eth1
then I restart inetd.

then I start "tcpdump" on eth0 on a terminal

on a different terminal I try:

telnet 10.2.0.4

-> then it just says "trying ..." and nothing happens
-> on the tcpdump I can see that no packages are generated (it is in promiscius mode)

Does anyone know how to send ethernet traffic from one internal ethernet card to another?

Thanks
 
Old 02-08-2006, 09:13 PM   #2
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
maybe use a crossover cable, but that is what hubs/routers do.

or am i missing something obvious (it's getting late
 
Old 02-09-2006, 02:10 AM   #3
TroelsSmit
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Original Poster
Rep: Reputation: 30
Connecting two switches is normally done with a patch cable.
 
  


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
How to test Linux network connection? hnash53 Linux - Networking 14 05-16-2005 05:40 PM
howto test if an ethernet device is active six6 Programming 1 01-28-2005 02:39 AM
Automated Network Connection Test assyrian47 Linux - Networking 1 06-16-2004 09:05 PM
ethernet connection vishi_82 Linux - Newbie 1 10-27-2003 05:08 AM
setting up ethernet connection arrruken Linux - Networking 1 04-20-2003 10:39 PM

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

All times are GMT -5. The time now is 11:24 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