Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jun 2000 20:52:21 -0700
From:      "Crist J. Clark" <cristjc@earthlink.net>
To:        freebsd-questions@freebsd.org
Subject:   Confused by Loopback
Message-ID:  <20000621205221.A43715@pool0586.cvx20-bradley.dialup.e>

next in thread | raw e-mail | index | archive | help
I think I must be missing something... But I am not sure what. 

My loopback is configured so,

  $ ifconfig lo0
  lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
          inet 127.0.0.1 netmask 0xff000000 

But if I look at the routing table,

  $ netstat -rn
  Routing tables
  
  Internet:
  Destination        Gateway            Flags     Refs     Use     Netif Expire
  default            207.217.148.27     UGSc       11       22     tun0
  127.0.0.1          127.0.0.1          UH          0        0      lo0
  207.217.148.27     209.179.254.29     UH         12        0     tun0

Notice there is no LAN entry for the 127-net like the ifconfig(8) mask
says. So if I were to do something silly like,

  $ ping 127.0.0.2

It goes out over the tun0 interface. I noticed this because for some
perverse reason I tried,

  $ ping 127.255.255.255

And started getting replies from other hosts! I tried a traceroute(8)
and watched 127.0.0.2 packets make their happy way out towards the
I'net.

Tell me I'm missing something silly here.
-- 
Crist J. Clark                           cjclark@alum.mit.edu


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?20000621205221.A43715>