Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Apr 1998 15:14:52 +0930
From:      Greg Lehey <grog@lemis.com>
To:        MDJ <mdj@artnet.net>, freebsd-questions@FreeBSD.ORG
Subject:   Loopback (was: ethernet connection problem)
Message-ID:  <19980416151452.A1090@freebie.lemis.com>
In-Reply-To: <199804160539.WAA01016@rembrandt.artnet.net>; from MDJ on Wed, Apr 15, 1998 at 10:30:15PM -0700
References:  <199804160539.WAA01016@rembrandt.artnet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,LOOPBACK,RUNNING,MULTICAST> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980416151452.A1090>