From owner-freebsd-questions Wed Apr 15 22:45:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA13099 for freebsd-questions-outgoing; Wed, 15 Apr 1998 22:45:10 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from freebie.lemis.com (freebie.lemis.com [139.130.136.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA13021 for ; Wed, 15 Apr 1998 22:44:58 -0700 (PDT) (envelope-from grog@lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id PAA05498; Thu, 16 Apr 1998 15:14:52 +0930 (CST) (envelope-from grog) Message-ID: <19980416151452.A1090@freebie.lemis.com> Date: Thu, 16 Apr 1998 15:14:52 +0930 From: Greg Lehey To: MDJ , freebsd-questions@FreeBSD.ORG Subject: Loopback (was: ethernet connection problem) References: <199804160539.WAA01016@rembrandt.artnet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199804160539.WAA01016@rembrandt.artnet.net>; from MDJ on Wed, Apr 15, 1998 at 10:30:15PM -0700 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 15 April 1998 at 22:30:15 -0700, MDJ wrote: > I installed a 3com III 3c509B and it is using the ep0 interface. > port is 300 > IRQ 10 > It finds the netowrk card but it can't seem to loopback lo0 to its assigned > IP address. > Is there a way to solve this problem. > When I ping it from another system colocated at the same place, sometimes > it finds it and most of the time it says, lost connection or can't find > host. lo0 is the loopback interface, which has nothing to do with Ethernet. You should have something like this in your /etc/rc.conf: network_interfaces="ep0 lo0" # List of network interfaces (lo0 is loopback). ifconfig_ep0="inet 192.109.197.134 netmask 255.255.255.0" ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. The ep0 IP address should be different, of course. The rest, including the lo0 IP address, should be the same. These changes take effect when you reboot. You don't need to reboot, though: check with netstat: # netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.109.197.137 UGSc 1 1553 ed0 127.0.0.1 127.0.0.1 UH 0 2 lo0 This is the one you need. There will be more, but this one must be there. Also, # ifconfig lo0 lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 If it isn't, do: # ifconfig lo0 inet 127.0.0.1 Greg -- See complete headers for address and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message