can't ping localhost

2010-08-19 Thread Tim Kellers
I first noticed the problem when the machine stopped sending local mail; 
a typical entry:


Aug 19 10:08:30 online sm-msp-queue[68533]: o7IKAhth008649: 
to=timot...@xxx.njit.edu, ctladdr=timothyk (1001/1001), delay=17:57:47, 
xdelay=00:00:00, mailer=relay, pri=3360050, relay=[127.0.0.1], 
dsn=4.0.0, stat=Deferred: Can't assign requested address


Non-local mail still works:

Aug 19 10:14:11 online sm-mta[68582]: o7JEEB8I068582: 
from=kell...@njit.edu, size=593, class=0, nrcpts=1, 
msgid=4c6d3c2e.1060...@njit.edu, proto=ESMTP, daemon=IPv4, 
relay=mail-xxx.njit.edu [128.235.251.157]
Aug 19 10:14:11 online sm-mta[68584]: o7JEEB8I068582: 
to=timot...@xxx.njit.edu, delay=00:00:00, xdelay=00:00:00, 
mailer=local, pri=30840, relay=local, dsn=2.0.0, stat=Sent


When I ping localhost:
# ping localhost
PING localhost (127.0.0.1): 56 data bytes
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address

# uname -a
FreeBSD xxx.njit.edu 7.3-STABLE FreeBSD 7.3-STABLE #0: Tue Mar 30 
14:35:56 EDT 2010 
timot...@xxx.njit.edu:/usr/obj/usr/src/sys/MARCH31  i386




/etc/hosts, /etc/hosts.conf, /etc/resolv.conf all look fine.  I diffed 
them with another working 7.3-STABLE machine I have.


I have built world and kernel to yesterday's 7.3-STABLE, but I haven't 
rebooted the machine.  I'm thinking that if this is a hardware problem, 
once it goes down for a reboot, it may not come back up.


I'm eagerly open to suggestions.


Tim Kellers
NJIT
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't ping localhost

2010-08-19 Thread Glen Barber
On 8/19/10 10:21 AM, Tim Kellers wrote:
 When I ping localhost:
 # ping localhost
 PING localhost (127.0.0.1): 56 data bytes
 ping: sendto: Can't assign requested address

Hi,

Is the loopback interface (lo0) up?

Regards,

-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't ping localhost

2010-08-19 Thread Matthew Seaman
On 19/08/2010 15:21, Tim Kellers wrote:
 I'm eagerly open to suggestions.
 

What does 'ifconfig lo0' say?

What does 'sockstat | grep :25' say?

What does 'ls -la /usr/libexec/sendmail/' say?

What does 'mount | grep /usr' say?

It sounds as if either:

   * Your loopback interface has lost address 127.0.0.1

or:

   * Some process other than a live sendmail instance has bound to port
 25 on the loopback.

or:

   * sendmail has somehow lost its setgid-ness

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: can't ping localhost

2010-08-19 Thread Tim Kellers

On 08/19/10 10:55, Glen Barber wrote:

On 8/19/10 10:21 AM, Tim Kellers wrote:
   

When I ping localhost:
# ping localhost
PING localhost (127.0.0.1): 56 data bytes
ping: sendto: Can't assign requested address
 

Hi,

Is the loopback interface (lo0) up?

Regards,

   


lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128

Nope, it is not.  And I don't know how that can happen.


Thanks

Tim Kellers

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't ping localhost

2010-08-19 Thread Tim Kellers

On 08/19/10 11:02, Matthew Seaman wrote:

On 19/08/2010 15:21, Tim Kellers wrote:
   

I'm eagerly open to suggestions.

 

What does 'ifconfig lo0' say?

What does 'sockstat | grep :25' say?

What does 'ls -la /usr/libexec/sendmail/' say?

What does 'mount | grep /usr' say?

It sounds as if either:

* Your loopback interface has lost address 127.0.0.1

or:

* Some process other than a live sendmail instance has bound to port
  25 on the loopback.

or:

* sendmail has somehow lost its setgid-ness

Cheers,

Matthew

   

# ifconfig lo0
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128

(lo0 looks unconfigured to me)

# sockstat | grep :25
root sendmail   7371  3  tcp4   *:25  *:*
root sendmail   7371  5  tcp6   *:25  *:*

(that looks fine to me)

# ls -la /usr/libexec/sendmail/
total 676
drwxr-xr-x  2 root  wheel 512 Mar 30 21:03 .
drwxr-xr-x  5 root  wheel1536 Mar 30 21:03 ..
-r-xr-sr-x  1 root  smmsp  669788 Mar 30 21:03 sendmail

(looks OK to me, too)

# mount | grep /usr
/dev/aacd0s1f on /usr (ufs, local, soft-updates)

(Looks normal to me, too)

Thanks

Tim Kellers


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't ping localhost

2010-08-19 Thread Tim Kellers

On 08/19/10 11:51, mikel king wrote:

Your lo0 only has inet6 addresses, perhaps try binding a v4 address?

Cheers,
m!

On Aug 19, 2010, at 11:12, Tim Kellerskell...@njit.edu  wrote:

   

On 08/19/10 11:02, Matthew Seaman wrote:
 

On 19/08/2010 15:21, Tim Kellers wrote:

   

I'm eagerly open to suggestions.


 

What does 'ifconfig lo0' say?

What does 'sockstat | grep :25' say?

What does 'ls -la /usr/libexec/sendmail/' say?

What does 'mount | grep /usr' say?

It sounds as if either:

* Your loopback interface has lost address 127.0.0.1

or:

* Some process other than a live sendmail instance has bound to port
  25 on the loopback.

or:

* sendmail has somehow lost its setgid-ness

Cheers,

Matthew


   

# ifconfig lo0
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST  metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128

(lo0 looks unconfigured to me)

# sockstat | grep :25
root sendmail   7371  3  tcp4   *:25  *:*
root sendmail   7371  5  tcp6   *:25  *:*

(that looks fine to me)

# ls -la /usr/libexec/sendmail/
total 676
drwxr-xr-x  2 root  wheel 512 Mar 30 21:03 .
drwxr-xr-x  5 root  wheel1536 Mar 30 21:03 ..
-r-xr-sr-x  1 root  smmsp  669788 Mar 30 21:03 sendmail

(looks OK to me, too)

# mount | grep /usr
/dev/aacd0s1f on /usr (ufs, local, soft-updates)

(Looks normal to me, too)

Thanks

Tim Kellers


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 



   

Thanks,

Once I saw that lo0 was not configured for ipv4, I did a:

#ifconfig lo0 inet 127.0.0.1 netmask 255.0.0.0

and local mail resolved and was delivered and I can now ping localhost.

I just have to wonder how in heck it got that way.

Thanks all

Tim Kellers
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't ping localhost

2010-08-19 Thread mikel king
Your lo0 only has inet6 addresses, perhaps try binding a v4 address?

Cheers,
m!

On Aug 19, 2010, at 11:12, Tim Kellers kell...@njit.edu wrote:

 On 08/19/10 11:02, Matthew Seaman wrote:
 On 19/08/2010 15:21, Tim Kellers wrote:
   
 I'm eagerly open to suggestions.
 
 
 What does 'ifconfig lo0' say?
 
 What does 'sockstat | grep :25' say?
 
 What does 'ls -la /usr/libexec/sendmail/' say?
 
 What does 'mount | grep /usr' say?
 
 It sounds as if either:
 
* Your loopback interface has lost address 127.0.0.1
 
 or:
 
* Some process other than a live sendmail instance has bound to port
  25 on the loopback.
 
 or:
 
* sendmail has somehow lost its setgid-ness
 
Cheers,
 
Matthew
 
   
 # ifconfig lo0
 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128
 
 (lo0 looks unconfigured to me)
 
 # sockstat | grep :25
 root sendmail   7371  3  tcp4   *:25  *:*
 root sendmail   7371  5  tcp6   *:25  *:*
 
 (that looks fine to me)
 
 # ls -la /usr/libexec/sendmail/
 total 676
 drwxr-xr-x  2 root  wheel 512 Mar 30 21:03 .
 drwxr-xr-x  5 root  wheel1536 Mar 30 21:03 ..
 -r-xr-sr-x  1 root  smmsp  669788 Mar 30 21:03 sendmail
 
 (looks OK to me, too)
 
 # mount | grep /usr
 /dev/aacd0s1f on /usr (ufs, local, soft-updates)
 
 (Looks normal to me, too)
 
 Thanks
 
 Tim Kellers
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't ping localhost

2010-03-11 Thread Ruben de Groot
On Thu, Mar 11, 2010 at 02:47:35AM +, Anton Shterenlikht typed:
 
  I believe -current has a issue where you can not ping localhost atm
  
 
 all my machines are current, but some are more current than others..

Why exactly are you running -current? People that do are supposed to do some 
investigations
themselves, and if they still can't find the cause at least provide information 
like 
(in this case) routing info, ifconfig etc and what they have done to 
investigate,

 Well, the ping issue is just an example.
 My real problem is that sendmail can't send
 anything locally:

The real problem is the routing got busted by a bad commit. This affects both 
ping and sendmail
(and many others).

I recommend you run a -stable branch.

Ruben

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't ping localhost

2010-03-11 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Wed Mar 10 20:24:31 2010
 Date: Thu, 11 Mar 2010 02:23:44 +
 From: Anton Shterenlikht me...@bristol.ac.uk
 To: freebsd-questions@freebsd.org
 Subject: can't ping localhost

 I misconfigured my system somehow,
 so now I can't ping localhost:

 # ping localhost
 PING localhost (127.0.0.1): 56 data bytes
 ping: sendto: No route to host
 ping: sendto: No route to host
 ^C

 # cat /etc/hosts
 # $FreeBSD: head/etc/hosts 109997 2003-01-28 21:29:23Z dbaker $
 #
 ::1 localhost localhost.men.bris.ac.uk
 127.0.0.1   localhost localhost.men.bris.ac.uk

 So far, can't find anything relevant
 on the net.

 Please advise

what does 'ifconfig -a', and 'netstat -nr' show?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


can't ping localhost

2010-03-10 Thread Anton Shterenlikht
I misconfigured my system somehow,
so now I can't ping localhost:

# ping localhost
PING localhost (127.0.0.1): 56 data bytes
ping: sendto: No route to host
ping: sendto: No route to host
^C

# cat /etc/hosts
# $FreeBSD: head/etc/hosts 109997 2003-01-28 21:29:23Z dbaker $
#
::1 localhost localhost.men.bris.ac.uk
127.0.0.1   localhost localhost.men.bris.ac.uk

So far, can't find anything relevant
on the net.

Please advise

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't ping localhost

2010-03-10 Thread Roger
On Wed, Mar 10, 2010 at 9:23 PM, Anton Shterenlikht me...@bristol.ac.uk wrote:
 I misconfigured my system somehow,
 so now I can't ping localhost:

 # ping localhost
 PING localhost (127.0.0.1): 56 data bytes
 ping: sendto: No route to host
 ping: sendto: No route to host
 ^C

 # cat /etc/hosts
 # $FreeBSD: head/etc/hosts 109997 2003-01-28 21:29:23Z dbaker $
 #
 ::1                     localhost localhost.men.bris.ac.uk
 127.0.0.1               localhost localhost.men.bris.ac.uk

 So far, can't find anything relevant
 on the net.

 Please advise

 many thanks
 anton

 --


Just a shot in the dark. Do you have a default route?

-r
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't ping localhost

2010-03-10 Thread Sam Fourman Jr.
On Wed, Mar 10, 2010 at 8:23 PM, Anton Shterenlikht me...@bristol.ac.uk wrote:
 I misconfigured my system somehow,
 so now I can't ping localhost:

 # ping localhost
 PING localhost (127.0.0.1): 56 data bytes
 ping: sendto: No route to host
 ping: sendto: No route to host
 ^C

what is the output of uname -a ?

I believe -current has a issue where you can not ping localhost atm


Sam Fourman Jr.
Fourman Networks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't ping localhost

2010-03-10 Thread Roger
On Wed, Mar 10, 2010 at 9:23 PM, Anton Shterenlikht me...@bristol.ac.uk wrote:
 I misconfigured my system somehow,
 so now I can't ping localhost:

 # ping localhost
 PING localhost (127.0.0.1): 56 data bytes
 ping: sendto: No route to host
 ping: sendto: No route to host
 ^C

 # cat /etc/hosts
 # $FreeBSD: head/etc/hosts 109997 2003-01-28 21:29:23Z dbaker $
 #
 ::1                     localhost localhost.men.bris.ac.uk
 127.0.0.1               localhost localhost.men.bris.ac.uk

 So far, can't find anything relevant
 on the net.

 Please advise

 many thanks
 anton

http://www.freebsd.org/doc/handbook/network-routing.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't ping localhost

2010-03-10 Thread Anton Shterenlikht
On Wed, Mar 10, 2010 at 08:34:08PM -0600, Sam Fourman Jr. wrote:
 On Wed, Mar 10, 2010 at 8:23 PM, Anton Shterenlikht me...@bristol.ac.uk 
 wrote:
  I misconfigured my system somehow,
  so now I can't ping localhost:
 
  # ping localhost
  PING localhost (127.0.0.1): 56 data bytes
  ping: sendto: No route to host
  ping: sendto: No route to host
  ^C
 
 what is the output of uname -a ?

# uname -a
FreeBSD mech-anton240.men.bris.ac.uk 9.0-CURRENT FreeBSD 9.0-CURRENT #2: Tue 
Mar  9 14:35:40 GMT 2010 
me...@mech-anton240.men.bris.ac.uk:/usr/obj/usr/src/sys/QOF  sparc64


 I believe -current has a issue where you can not ping localhost atm
 

all my machines are current, but some are more current than others..

Well, the ping issue is just an example.
My real problem is that sendmail can't send
anything locally:

# tail /var/log/maillog
Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2B0irgd029426: to=mexas, 
ctladdr=mexas (1001/1001), delay=01:32:05, xdelay=00:00:00, mailer=relay, 
pri=480031, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route 
to host
Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2B0hbGe029358: to=mexas, 
ctladdr=mexas (1001/1001), delay=01:33:21, xdelay=00:00:00, mailer=relay, 
pri=570028, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route 
to host
Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A87g4K005078: to=root, 
delay=18:09:16, xdelay=00:00:00, mailer=relay, pri=3721559, relay=[127.0.0.1], 
dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A87g4L005078: to=root, 
delay=18:09:16, xdelay=00:00:00, mailer=relay, pri=3725184, relay=[127.0.0.1], 
dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A77d4L004977: to=root, 
delay=19:09:19, xdelay=00:00:00, mailer=relay, pri=3903061, relay=[127.0.0.1], 
dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A77d4K004977: to=root, 
delay=19:09:19, xdelay=00:00:00, mailer=relay, pri=3903122, relay=[127.0.0.1], 
dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A3bvPl004242: to=root, 
ctladdr=root (0/0), delay=22:39:01, xdelay=00:00:00, mailer=relay, pri=4530195, 
relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A3c9wG004609: to=root, 
ctladdr=root (0/0), delay=22:38:49, xdelay=00:00:00, mailer=relay, pri=4533820, 
relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A340iF002543: to=root, 
ctladdr=root (0/0), delay=23:12:58, xdelay=00:00:00, mailer=relay, pri=4711758, 
relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A33vXB002495: to=root, 
ctladdr=root (0/0), delay=23:13:01, xdelay=00:00:00, mailer=relay, pri=4801697, 
relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
# 


many thanks
anton

 
 Sam Fourman Jr.
 Fourman Networks

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't ping localhost

2010-03-10 Thread Rob Farmer
On Wed, Mar 10, 2010 at 6:34 PM, Sam Fourman Jr. sfour...@gmail.com wrote:
 On Wed, Mar 10, 2010 at 8:23 PM, Anton Shterenlikht me...@bristol.ac.uk 
 wrote:
 I misconfigured my system somehow,
 so now I can't ping localhost:

 # ping localhost
 PING localhost (127.0.0.1): 56 data bytes
 ping: sendto: No route to host
 ping: sendto: No route to host
 ^C

 what is the output of uname -a ?

 I believe -current has a issue where you can not ping localhost atm

That's correct. Try the following patch:
http://people.freebsd.org/~qingli/route.h.diff

-- 
Rob Farmer



 Sam Fourman Jr.
 Fourman Networks
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't ping localhost

2010-03-10 Thread Adam Vande More
On Wed, Mar 10, 2010 at 8:47 PM, Anton Shterenlikht me...@bristol.ac.ukwrote:

 # uname -a
 FreeBSD mech-anton240.men.bris.ac.uk 9.0-CURRENT FreeBSD 9.0-CURRENT #2:
 Tue Mar  9 14:35:40 GMT 2010 
 me...@mech-anton240.men.bris.ac.uk:/usr/obj/usr/src/sys/QOF
  sparc64


  I believe -current has a issue where you can not ping localhost atm
 

 all my machines are current, but some are more current than others..

 Well, the ping issue is just an example.
 My real problem is that sendmail can't send
 anything locally:

 # tail /var/log/maillog
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2B0irgd029426:
 to=mexas, ctladdr=mexas (1001/1001), delay=01:32:05, xdelay=00:00:00,
 mailer=relay, pri=480031, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred:
 [127.0.0.1]: No route to host
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2B0hbGe029358:
 to=mexas, ctladdr=mexas (1001/1001), delay=01:33:21, xdelay=00:00:00,
 mailer=relay, pri=570028, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred:
 [127.0.0.1]: No route to host
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A87g4K005078: to=root,
 delay=18:09:16, xdelay=00:00:00, mailer=relay, pri=3721559,
 relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A87g4L005078: to=root,
 delay=18:09:16, xdelay=00:00:00, mailer=relay, pri=3725184,
 relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A77d4L004977: to=root,
 delay=19:09:19, xdelay=00:00:00, mailer=relay, pri=3903061,
 relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A77d4K004977: to=root,
 delay=19:09:19, xdelay=00:00:00, mailer=relay, pri=3903122,
 relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A3bvPl004242: to=root,
 ctladdr=root (0/0), delay=22:39:01, xdelay=00:00:00, mailer=relay,
 pri=4530195, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No
 route to host
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A3c9wG004609: to=root,
 ctladdr=root (0/0), delay=22:38:49, xdelay=00:00:00, mailer=relay,
 pri=4533820, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No
 route to host
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A340iF002543: to=root,
 ctladdr=root (0/0), delay=23:12:58, xdelay=00:00:00, mailer=relay,
 pri=4711758, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No
 route to host
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A33vXB002495: to=root,
 ctladdr=root (0/0), delay=23:13:01, xdelay=00:00:00, mailer=relay,
 pri=4801697, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No
 route to host
 #


 many thanks
 anton

 --
 Anton Shterenlikht


If you run CURRENT, you would do well to follow the mailing list.

http://groups.google.com/group/mailing.freebsd.current/browse_thread/thread/2ab13c4b31228c88/15dab18a9066e9a2?lnk=raot


-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't ping localhost

2010-03-10 Thread Jon Radel



Well, the ping issue is just an example.
My real problem is that sendmail can't send
anything locally:

# tail /var/log/maillog
Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2B0irgd029426: to=mexas, 
ctladdr=mexas (1001/1001), delay=01:32:05, xdelay=00:00:00, mailer=relay, 
pri=480031, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route 
to host


Well, have you considered looking to see if it's right?  What do you get 
in response to:


$ netstat -rn | grep 127
127.0.0.1  127.0.0.1  UH  064746lo0
$

Showing what I get on a 7.0 server.

Unless they've moved things around since 7.0, you probably want to make 
sure that you've not messed with the ifconfig_lo0 line in 
/etc/defaults/rc.conf.


My apologies if that config stuff has changed in the latest; I don't 
have access to the latest right now.


--

--Jon Radel
j...@radel.com



Re: can't ping localhost

2010-03-10 Thread Anton Shterenlikht
On Wed, Mar 10, 2010 at 10:00:01PM -0500, Jon Radel wrote:
 
  Well, the ping issue is just an example.
  My real problem is that sendmail can't send
  anything locally:
 
  # tail /var/log/maillog
  Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2B0irgd029426: 
  to=mexas, ctladdr=mexas (1001/1001), delay=01:32:05, xdelay=00:00:00, 
  mailer=relay, pri=480031, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: 
  [127.0.0.1]: No route to host
 
 Well, have you considered looking to see if it's right?  What do you get 
 in response to:
 
 $ netstat -rn | grep 127
 127.0.0.1  127.0.0.1  UH  064746lo0
 $
 
 Showing what I get on a 7.0 server.
 
 Unless they've moved things around since 7.0, you probably want to make 
 sure that you've not messed with the ifconfig_lo0 line in 
 /etc/defaults/rc.conf.
 
 My apologies if that config stuff has changed in the latest; I don't 
 have access to the latest right now.

# netstat -rn|grep 127
127.0.0.1  link#2 UH  00lo0


thank you
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't ping localhost

2010-03-10 Thread Anton Shterenlikht
On Wed, Mar 10, 2010 at 08:58:12PM -0600, Adam Vande More wrote:
 On Wed, Mar 10, 2010 at 8:47 PM, Anton Shterenlikht 
 me...@bristol.ac.ukwrote:
 
  # uname -a
  FreeBSD mech-anton240.men.bris.ac.uk 9.0-CURRENT FreeBSD 9.0-CURRENT #2:
  Tue Mar  9 14:35:40 GMT 2010 
  me...@mech-anton240.men.bris.ac.uk:/usr/obj/usr/src/sys/QOF
   sparc64
 
 
   I believe -current has a issue where you can not ping localhost atm
  
 
  all my machines are current, but some are more current than others..
 
  Well, the ping issue is just an example.
  My real problem is that sendmail can't send
  anything locally:
 
  # tail /var/log/maillog
  Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2B0irgd029426:
  to=mexas, ctladdr=mexas (1001/1001), delay=01:32:05, xdelay=00:00:00,
  mailer=relay, pri=480031, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred:
  [127.0.0.1]: No route to host
  Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2B0hbGe029358:
  to=mexas, ctladdr=mexas (1001/1001), delay=01:33:21, xdelay=00:00:00,
  mailer=relay, pri=570028, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred:
  [127.0.0.1]: No route to host
  Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A87g4K005078: to=root,
  delay=18:09:16, xdelay=00:00:00, mailer=relay, pri=3721559,
  relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
  Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A87g4L005078: to=root,
  delay=18:09:16, xdelay=00:00:00, mailer=relay, pri=3725184,
  relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
  Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A77d4L004977: to=root,
  delay=19:09:19, xdelay=00:00:00, mailer=relay, pri=3903061,
  relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
  Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A77d4K004977: to=root,
  delay=19:09:19, xdelay=00:00:00, mailer=relay, pri=3903122,
  relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
  Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A3bvPl004242: to=root,
  ctladdr=root (0/0), delay=22:39:01, xdelay=00:00:00, mailer=relay,
  pri=4530195, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No
  route to host
  Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A3c9wG004609: to=root,
  ctladdr=root (0/0), delay=22:38:49, xdelay=00:00:00, mailer=relay,
  pri=4533820, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No
  route to host
  Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A340iF002543: to=root,
  ctladdr=root (0/0), delay=23:12:58, xdelay=00:00:00, mailer=relay,
  pri=4711758, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No
  route to host
  Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A33vXB002495: to=root,
  ctladdr=root (0/0), delay=23:13:01, xdelay=00:00:00, mailer=relay,
  pri=4801697, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No
  route to host
  #
 
 
  many thanks
  anton
 
  --
  Anton Shterenlikht
 
 
 If you run CURRENT, you would do well to follow the mailing list.
 
 http://groups.google.com/group/mailing.freebsd.current/browse_thread/thread/2ab13c4b31228c88/15dab18a9066e9a2?lnk=raot

yes, I've seen this.

It's just that usually when I get problems I suspect my incompetence,
so this thread didn't come to mind.

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can't ping localhost?

2006-10-01 Thread Laurence Sanford

P.U.Kruppa wrote:

On Sat, 30 Sep 2006, Chuck Swiger wrote:


Laurence Sanford wrote:

Anyone got any ideas on this?

[EMAIL PROTECTED](~)$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
^C
--- 127.0.0.1 ping statistics ---
6 packets transmitted, 0 packets received, 100% packet loss


[EMAIL PROTECTED](~)$ ifconfig lo0
lo0: flags=8008LOOPBACK,MULTICAST mtu 16384


If there isn't an inet 127.0.0.1 entry following, the loopback 
isn't properly configured.  Perhaps you have a network_interfaces 
entry listed in /etc/rc.conf which does not mention lo0...?

I think this entry should live in /etc/defaults/rc.conf

ifconfig_lo0=inet 127.0.0.1   # default loopback device
# configuration.

Thanks Uli, I checked based on your post, and it is there. Perhaps I 
have something running at startup that's breaking things? Looks like 
I'll be digging a little more to see what I can find.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Can't ping localhost?

2006-09-30 Thread Chuck Swiger

Laurence Sanford wrote:

Anyone got any ideas on this?

[EMAIL PROTECTED](~)$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
^C
--- 127.0.0.1 ping statistics ---
6 packets transmitted, 0 packets received, 100% packet loss


[EMAIL PROTECTED](~)$ ifconfig lo0
lo0: flags=8008LOOPBACK,MULTICAST mtu 16384


If there isn't an inet 127.0.0.1 entry following, the loopback isn't 
properly configured.  Perhaps you have a network_interfaces entry listed in 
/etc/rc.conf which does not mention lo0...?


--
-Chuck
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Can't ping localhost?

2006-09-30 Thread Laurence Sanford

Chuck Swiger wrote:

Laurence Sanford wrote:

Anyone got any ideas on this?

[EMAIL PROTECTED](~)$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
^C
--- 127.0.0.1 ping statistics ---
6 packets transmitted, 0 packets received, 100% packet loss


[EMAIL PROTECTED](~)$ ifconfig lo0
lo0: flags=8008LOOPBACK,MULTICAST mtu 16384


If there isn't an inet 127.0.0.1 entry following, the loopback isn't 
properly configured.  Perhaps you have a network_interfaces entry 
listed in /etc/rc.conf which does not mention lo0...?


Thanks for even bothering to reply Chuck. Honestly, at my age, I should 
know better than to post to mailing lists while too tired to be 
coherent. The actual point of my question was, how exactly does a system 
come to boot up without having lo0 configured as 127.0.0.1? I do have a 
network interfaces line in rc.conf that specifies nve0, but that's the 
way it's always been on this box, and this is only a recent development 
that it's not been assigned correctly at boot time. I was looking into 
several other issues I've been seeing (not getting emails from this box 
for periodic tasks, etc) and finally ran it down to this. Did something 
change recently? My last update was sept 2nd, and this stopped working 
for me only about a week ago, maybe two, so it didn't coincide with that 
update. Now that I've got a little more mental capacity to work with, 
anyone got something to point me in the right direction? Is it a good 
idea to configure lo0 in rc.conf even though it should happen 
automatically? Thanks again.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Can't ping localhost?

2006-09-30 Thread P.U.Kruppa

On Sat, 30 Sep 2006, Chuck Swiger wrote:


Laurence Sanford wrote:

Anyone got any ideas on this?

[EMAIL PROTECTED](~)$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
^C
--- 127.0.0.1 ping statistics ---
6 packets transmitted, 0 packets received, 100% packet loss


[EMAIL PROTECTED](~)$ ifconfig lo0
lo0: flags=8008LOOPBACK,MULTICAST mtu 16384


If there isn't an inet 127.0.0.1 entry following, the loopback isn't 
properly configured.  Perhaps you have a network_interfaces entry listed in 
/etc/rc.conf which does not mention lo0...?

I think this entry should live in /etc/defaults/rc.conf

ifconfig_lo0=inet 127.0.0.1   # default loopback device
# configuration.

Regards,

Uli



--
-Chuck
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]





Peter Ulrich Kruppa
Wuppertal
Germany

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Can't ping localhost?

2006-09-29 Thread Laurence Sanford

Anyone got any ideas on this?

[EMAIL PROTECTED](~)$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
^C
--- 127.0.0.1 ping statistics ---
6 packets transmitted, 0 packets received, 100% packet loss


[EMAIL PROTECTED](~)$ ifconfig lo0
lo0: flags=8008LOOPBACK,MULTICAST mtu 16384
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]