[Xorp-users] Sorry, the problem is not RIP, but the routing table

Pavlin Radoslavov pavlin@icir.org
Mon, 06 Jun 2005 14:05:40 -0700


I have the feeling that either somehow the route to your interface
address is missing, or "localhost" is resolved to something that is
not reachable (e.g., by default "localhost" maps to the "::1" IPv6
address) or something like this.

The add/delete routes obviously affect the routing table so
something may be (mis)routed in an unexpected direction.
Try all your ftp/ssh/ping tests with IP addresses first (127.0.0.1
and the address(es) of your interfaces), and if they succeed, then
try to figure-out where a request like "ssh localhost" is sent to.

Pavlin

> --_=__=_XaM3_.1118014116.2A.608415.42.19091.52.42.007.697744838
> Content-Type: text/plain; charset=iso-8859-1
> Content-Transfer-Encoding: quoted-printable
> 
> Sorry, I'm from webmail here.
> 
> There is no problem with /etc/hosts. The problem haapens with ssh and ftp=
> . Ping there is no problem.
> 
> I'm looking every where to figure this out, but I can=B4t understand. 
> 
> ### TEST
> router2# route add -net 0.0.0.0 192.168.69.200
> add net 0.0.0.0: gateway 192.168.69.200
> router2# ssh 127.0.0.1
> ^C
> router2# ftp 127.0.0.1
> Connected to 127.0.0.1.
> ^Z
> Suspended
> router2# ping 127.0.0.1
> PING 127.0.0.1 (127.0.0.1): 56 data bytes
> 64 bytes from 127.0.0.1: icmp_seq=3D0 ttl=3D64 time=3D0.027 ms
> ^C
> --- 127.0.0.1 ping statistics ---
> 1 packets transmitted, 1 packets received, 0% packet loss
> round-trip min/avg/max/stddev =3D 0.027/0.027/0.027/0.000 ms
> router2# route delete -net 0.0.0.0 192.168.69.200
> delete net 0.0.0.0: gateway 192.168.69.200
> router2# ssh 127.0.0.1
> Password:
> router2# ftp 127.0.0.1
> Connected to 127.0.0.1.
> 220 router2.multicast FTP server (Version 6.00LS) ready.
> Name (127.0.0.1:root):
> 
> 
> ### KERNEL OPTIONS
> #MULTICAST
> options         MROUTING
> #DUMMYNET
> options         DUMMYNET
> options         IPFIREWALL
> options         IPFIREWALL_VERBOSE
> options         IPFIREWALL_VERBOSE_LIMIT=3D5
> options         IPFIREWALL_FORWARD
> options         IPFW2
> options         IPDIVERT
> options         HZ=3D1000
> # Mais opcoes no Kernel segundo o HandBook 20050513 por Diogo Della
> options    IPFIREWALL_DEFAULT_TO_ACCEPT
> options    IPV6FIREWALL
> options    IPV6FIREWALL_VERBOSE
> options    IPV6FIREWALL_VERBOSE_LIMIT
> options    IPV6FIREWALL_DEFAULT_TO_ACCEPT
> # Suporta ao PIM
> options         PIM
> 
> 
> De:"Kristian Larsson" kristian@juniks.net
> 
> Para:"Diogo Della" ap010@terra.com.br
> 
> C=F3pia:xorp-users@xorp.org
> 
> Data:Mon, 6 Jun 2005 04:21:43 +0200
> 
> Assunto:Re: [Xorp-users] Sorry, the problem is not RIP, but the routing t=
> able
> 
> > First of all, try to keep everything in one thread. There are now
> > numerous threads all coming from you on the same subject. And it looks
> > real messy in my mail reader ;)
> > 
> > Anyway, you haven't by any chance changed something in /etc/hosts, perh=
> aps the
> > ip of localhost?
> > Is it just ssh or does everything, like ping and so on, stop working as=
>  well?
> > What if you try pinging or ssh to 127.0.0.1
> > 
> > it looks correct from over here, and when doing this on my machine
> > (also freebsd) I don't get the same errors.
> > 
> > //Kristian Larsson
> > 
> > On Sun, Jun 05, 2005 at 07:51:13PM -0300, Diogo Della wrote:
> > > I made more tests.
> > > 
> > > When I put routes at the route table of FreeBSD, it does not accept a=
> ny more connection from localhost or from other host at the subnet.
> > > 
> > > Look what happens:
> > > 1-
> > > router2# ssh localhost
> > > Password:
> > > 2-
> > > route add -net 192.168.67.0/24 172.16.3.1
> > > route add -net 192.168.68.0/24 172.16.5.3
> > > 3-
> > > router2# netstat -nr | less
> > > Routing tables
> > > Internet:
> > > Destination Gateway Flags Refs Use Netif Expire
> > > 127.0.0.1 127.0.0.1 UH 0 97481 lo0
> > > 172.16.3/24 link#2 UC 1 0 fxp0
> > > 172.16.3.1 00:02:2a:d3:07:ab UHLW 2 999 fxp0 979
> > > 172.16.5/24 link#3 UC 1 0 rl0
> > > 172.16.5.3 link#3 UHLW 1 0 rl0
> > > 192.168.67 172.16.3.1 UGSc 0 0 fxp0
> > > 192.168.68 172.16.5.3 UGSc 0 0 rl0
> > > 192.168.69 link#1 UC 1 0 sis0
> > > 192.168.69.200 00:0c:6e:33:0c:ae UHLW 0 8 sis0 243
> > > 4-
> > > router2# ssh localhost
> > > ^C
> > > (It timeout and I have to kill with CTRL + C )
> > > 5-
> > > delete net 192.168.67.0: gateway 172.16.3.1
> > > delete net 192.168.68.0: gateway 172.16.5.3
> > > 6-
> > > router2# ssh localhost
> > > Password:
> > > 
> > > Why does this happens? Is it because a securty level of FreeBSD, how =
> a change this?
> > > 
> > > Thanks
> > > 
> > > Diogo Della