Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 2003 15:34:18 -0500
From:      "J. W. Ballantine" <jwb@homer.att.com>
To:        Iasen Kostov <ikostov@otel.net>
Cc:        Kevin_Stevens@pursued-with.net, freebsd-net@FreeBSD.ORG
Subject:   Re: route pointing to a gateway that's not on net 
Message-ID:  <200303132034.PAA04880@hera.homer.att.com>
In-Reply-To: <20030307065558.W52594-100000@shadowhand.OTEL.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu Mar  6 23:56:51 2003, ikostov@otel.net suggested:
>	Use :
>	route add -net 10.17.47.37/32 -cloning -iface xl0
>	that sould work.

I've tried several variations of this with limited success:

  Script started on Thu Mar 13 12:26:27 2003
   
   # ifconfig xl0 inet 209.122.66.XXX netmask 255.255.255.0
   
   # route add -net 10.0.0.0 -iface -interface xl0
   # 
   add net 10.0.0.0: gateway xl0
   
   # route add -net default -iface -interface xl0
   # 
   add net default: gateway xl0
   # netstat -nrW
   Routing tables
   
   Internet:
   Destination        Gateway            Flags    Refs      Use    Mtu  Netif Expire
   default            link#1             UCSc        0        0   1500    xl0
   10                 link#1             UCSc        0        0   1500    xl0
   127.0.0.1          127.0.0.1          UH          0        0  16384    lo0
   209.122.66         link#1             UC          0        0   1500    xl0
   # ping 10.17.47.37                          <<<gateway and dhcp server
   PING 10.17.47.37 (10.17.47.37): 56 data bytes
   64 bytes from 10.17.47.37: icmp_seq=0 ttl=254 time=5.029 ms
   64 bytes from 10.17.47.37: icmp_seq=1 ttl=254 time=3.025 ms
   64 bytes from 10.17.47.37: icmp_seq=2 ttl=254 time=3.023 ms
   64 bytes from 10.17.47.37: icmp_seq=3 ttl=254 time=3.022 ms
   64 bytes from 10.17.47.37: icmp_seq=4 ttl=254 time=3.041 ms
   ^C
   --- 10.17.47.37 ping statistics ---
   5 packets transmitted, 5 packets received, 0% packet loss
   round-trip min/avg/max/stddev = 3.022/3.428/5.029/0.801 ms
   # ping 207.172.3.8                            <<< one of isp's name server
   PING 207.172.3.8 (207.172.3.8): 56 data bytes
   ping: sendto: Host is down
   ping: sendto: Host is down
   ping: sendto: Host is down
   ping: sendto: Host is down

So this method allows my system to get to the 
modem/dhcp server/gateway, but no further. (when I ping
from windows I get a response, so the system isn't down.)

I get the same result with only the ifconfig and route add -net default
and doing route add -net 10.17.47.37/32 -iface xl0 rather than 10.0.0.0
gives the same results.

Any further thoughts or ideas on how to resolve this???

Thankd

Jim

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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