From owner-freebsd-net@FreeBSD.ORG Thu Sep 1 14:58:16 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A8FC16A41F for ; Thu, 1 Sep 2005 14:58:16 +0000 (GMT) (envelope-from willmaier@ml1.net) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id E860E43D45 for ; Thu, 1 Sep 2005 14:58:15 +0000 (GMT) (envelope-from willmaier@ml1.net) Received: from frontend1.internal (mysql-sessions.internal [10.202.2.149]) by frontend1.messagingengine.com (Postfix) with ESMTP id 29AFACCBF19 for ; Thu, 1 Sep 2005 10:58:14 -0400 (EDT) Received: from frontend2.messagingengine.com ([10.202.2.151]) by frontend1.internal (MEProxy); Thu, 01 Sep 2005 10:58:14 -0400 X-Sasl-enc: RU0fMqXlguLdrF44x3koMRKungIaDcn83Ys1o3eUCKxg 1125586693 Received: from merkur (host-66-202-74-42.choiceone.net [66.202.74.42]) by frontend2.messagingengine.com (Postfix) with ESMTP id 0CE72570326 for ; Thu, 1 Sep 2005 10:58:12 -0400 (EDT) Received: by merkur (nbSMTP-1.00) for uid 1000 willmaier@ml1.net; Thu, 1 Sep 2005 09:58:16 -0500 (CDT) Date: Thu, 1 Sep 2005 09:58:14 -0500 From: Will Maier To: freebsd-net@freebsd.org Message-ID: <20050901145814.GQ31769@localhost.localdomain> Mail-Followup-To: freebsd-net@freebsd.org References: <9D2DBC148E2B4146BCC36C41DE9DFBFD066624E1@emss35m05.us.lmco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9D2DBC148E2B4146BCC36C41DE9DFBFD066624E1@emss35m05.us.lmco.com> User-Agent: Mutt/1.5.6+20040907i Subject: Re: Testing Ethernet Ports X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 14:58:16 -0000 On Thu, Sep 01, 2005 at 10:36:04AM -0400, Ames, Jonathan (N-ENSCO) wrote: > Can someone give me a hand with this? Here goes... > A PC has two ethernet ports, both directly on the motherboard. > Can I connect them externally with an ethernet cable and ping from > one port to the other to test them both? How? Lemme see if I parsed your question correctly: * box.A.nic.1 --cable--> box.A.nic.2 Is that what you're talking about? Sure. Use a crossover cable, assign each interface a different IP on the same subnet (eg 10.0.0.1 and 10.0.0.2) and ping from one to the other: $ ping 10.0.0.1 Just as I can ping my (one) network interface from the box it's running on, you can ping each of them. To be sure that packets are going from one interface to the other, try the following (untested but based off `man ping`): $ ping -S 10.0.0.1 10.0.0.2 That'll ping from (-S) 10.0.0.1 to 10.0.0.2. Or, if you really want to be sure... $ traceroute -s 10.0.0.1 10.0.0.2 That'll also show you the route taken by the packets, although I don't expect that to be *too* much help (in this scenario), as there aren't really any devices between the interfaces. Still, it can be a handy trick. > Another PC has the two ports listed above, plus an additional > ethernet port in a PCI card. Can I connect externally with the > same cable from any port to any port to test them? How? So... * box.A.nic.1 --cable--> box.B.nic.3 * box.A.nic.2 --cable--> box.B.nic.2 ...etc... See above. > Any help will be really appreciated. Thanks. What is it you're actually trying to do? Something more than ping yourself, I imagine... -- o--------------------------{ Will Maier }--------------------------o | jabber:..wcmaier@jabber.ccc.de | email:..........wcmaier@ml1.net | | \.........wcmaier@cae.wisc.edu | \..........wcmaier@cae.wisc.edu | *------------------[ BSD Unix: Live Free or Die ]------------------*