From owner-freebsd-net Fri Mar 7 5:55: 8 2003 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09ABB37B401 for ; Fri, 7 Mar 2003 05:55:06 -0800 (PST) Received: from kcmso2.proxy.att.com (kcmso2.att.com [192.128.134.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9282C43F85 for ; Fri, 7 Mar 2003 05:55:04 -0800 (PST) (envelope-from jwb@homer.att.com) Received: from ulysses.homer.att.com ([135.205.193.8]) by kcmso2.proxy.att.com (AT&T IPNS/MSO-4.0) with ESMTP id h27Dt2Fl012573; Fri, 7 Mar 2003 07:55:02 -0600 (CST) Received: from akiva.homer.att.com (akiva.homer.att.com [135.205.212.39]) by ulysses.homer.att.com (8.9.3/8.9.3) with ESMTP id IAA03285; Fri, 7 Mar 2003 08:55:01 -0500 (EST) Received: from akiva.homer.att.com (localhost [127.0.0.1]) by akiva.homer.att.com (8.11.6+Sun/8.9.3) with ESMTP id h27Dt0304504; Fri, 7 Mar 2003 08:55:00 -0500 (EST) Message-Id: <200303071355.h27Dt0304504@akiva.homer.att.com> X-Mailer: exmh version 2.6.1 02/18/2003 with nmh-1.0.4 To: Kevin_Stevens@pursued-with.net Cc: freebsd-net@FreeBSD.ORG Subject: Re: route pointing to a gateway that's not on net In-reply-to: Your message of "Wed, 05 Mar 2003 10:47:30 PST." <12883.192.85.47.2.1046890050.squirrel@new.host.name> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 07 Mar 2003 08:55:00 -0500 From: "J. W. Ballantine" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org OK, I tried your advice: FreeBSD 4.8 PRERELEASE #2 kernel boots and since dhcp fails I only get the local loopback: >Script started on Thu Mar 6 14:42:44 2003 ># netstat -nr >Routing tables > >Internet: >Destination Gateway Flags Refs Use Netif Expire >127.0.0.1 127.0.0.1 UH 0 0 lo0 > I add the route as your advise and it add the net gateway ># route add -net 10.0.0.0 -interface xl0 >add net 10.0.0.0: gateway xl0 ># netstat -nr >Routing tables > >Internet: >Destination Gateway Flags Refs Use Netif Expire >10 00:01:02:54:ca:dd USc 0 0 xl0 >127.0.0.1 127.0.0.1 UH 0 0 lo0 > Now I configure my card with the assigned address and it added it ># ifconfig xl0 inet 209.122.66.XXX netmask 255.255.255.0 ># netstat -nr >Routing tables > >Internet: >Destination Gateway Flags Refs Use Netif Expire >10 00:01:02:54:ca:dd USc 0 0 xl0 >127.0.0.1 127.0.0.1 UH 0 0 lo0 >209.122.66 link#1 UC 0 0 xl0 > Finally I try and ping the assigned DHCP server (ie cable modem) and I get no route to host. What is needed to associate the 10 network gateway with 209.122.66.XXX address assigned to my machine??? ># ping 10.17.47.37 >PING 10.17.47.37 (10.17.47.37): 56 data bytes >ping: sendto: No route to host >ping: sendto: No route to host >ping: sendto: No route to host >ping: sendto: No route to host >^C >--- 10.17.47.37 ping statistics --- >4 packets transmitted, 0 packets received, 100% packet loss ># exit > >Script done on Thu Mar 6 14:49:29 2003 I also tried it using 10.17.47.37 as the route add -net and reversed the order of the route and ifocnfig command, same result. Thanks for any help/handholding. ---------- In Response to your message ------------- > Date: Wed, 5 Mar 2003 10:47:30 -0800 (PST) > To: > From: "Kevin Stevens" > Subject: Re: route pointing to a gateway that's not on net > > > > Well it's not the way I wanted it, but it's the way I have to try and > > work with. > > > > I tried the route add net 10.0.0.0 -interface (whatever) > > and that didn't work for me. > > That's not the syntax I gave you, and obviously it needs to have your > local interface information inserted. I can confirm that the command: > > route add -net 10.0.0.0 -interface em0 > > does parse and operate correctly on my 4.7 system, as confirmed by netstat > -nr. That is the general approach for directing traffic out a local > interface rather than to a same-subnet gateway. > > Try looking at man route for the details, or perhaps someone else will > respond with a higher level of hand-holding. > > KeS > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message