From owner-freebsd-questions Wed Dec 18 5:22:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E92037B401 for ; Wed, 18 Dec 2002 05:22:39 -0800 (PST) Received: from almso2.proxy.att.com (almso2.att.com [192.128.166.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17BAD43E4A for ; Wed, 18 Dec 2002 05:22:38 -0800 (PST) (envelope-from jwb@homer.att.com) Received: from ulysses.homer.att.com ([135.205.193.8]) by almso2.proxy.att.com (AT&T IPNS/MSO-4.0) with ESMTP id gBIDMVSx003648; Wed, 18 Dec 2002 08:22:32 -0500 (EST) Received: from akiva.homer.att.com (akiva.homer.att.com [135.205.198.103]) by ulysses.homer.att.com (8.9.3/8.9.3) with ESMTP id IAA21276; Wed, 18 Dec 2002 08:22:30 -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 gBIDMUL01041; Wed, 18 Dec 2002 08:22:30 -0500 (EST) Message-Id: <200212181322.gBIDMUL01041@akiva.homer.att.com> X-Mailer: exmh version 2.5-CVS 11/08/2002 with nmh-1.0.4 To: Brian Cc: Marco Radzinschi , "" Subject: Re: gateway on different subnet In-reply-to: Your message of "Mon, 16 Dec 2002 14:26:34 PST." <20021216142414.C213-100000@entwistle.sonicboom.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 18 Dec 2002 08:22:30 -0500 From: "J. W. Ballantine" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Yes, from netbsd since the default of an empty file didn't work: /etc/dhclient.conf # $FreeBSD: src/etc/dhclient.conf,v 1.2.2.1 2001/12/14 11:44:31 rwatson Exp $ # # This file is required by the ISC DHCP client. # See ``man 5 dhclient.conf'' for details. # # In most cases an empty file is sufficient for most people as the # defaults are usually fine. # send host-name "tinlizzie.hlb.cable.rcn.com"; send dhcp-client-identifier "tinlizzie.hlb.cable.rcn.com"; timeout 60; reboot 10; retry 60; select-timeout 5; initial-interval 2; #script "/etc/dhclient-script" interface "xl0" { request subnet-mask, broadcast-address, routers, domain-name-servers, domain-name, host-name; require domain-name-servers; media "link2"; } /etc/dhclient-script #!/bin/sh PATH=/bin:/sbin:/usr/bin if [ "$CALLOUT_STATE = "end" ]; then if [ x$reason = xBOUND -o x$reason = xREBOOT]; then if [ x$new_host_name != x ]; then if [ x$new_domain_name != x ]; then hostname $new_host_name.$new.domain_name echo New Hostname: $new_host_name.$new.domain_name else hostname $new_host_name echo New Hostname: $new_host_name fi fi fi fi /etc/start_if.xl0 #!/bin/sh /sbin/dhclient xl0 ---------- In Response to your message ------------- > Date: Mon, 16 Dec 2002 14:26:34 -0800 (PST) > To: "J. W. Ballantine" > From: Brian > Subject: Re: gateway on different subnet > > no default entry in your netstat -rn, I am amazed you are not getting this > via dhcp. You have an /etc/dhclient.conf? > > Brian > > > On Mon, 16 Dec 2002, J. W. Ballantine wrote: > > > > > Here are the leases, ifconfig and netstat: > > > > > > tinlizzie# cat /var/db/dhclient.leases > > lease { > > interface "xl0"; > > fixed-address 209.122.66.XXX; (ND I changed the last part of the addres s) > > medium "link2"; > > option subnet-mask 255.255.255.0; > > option routers 10.17.47.37; > > option dhcp-lease-time 900; > > option dhcp-message-type 5; > > option domain-name-servers 207.172.3.9,207.172.3.8; > > option dhcp-server-identifier 10.17.47.37; > > option dhcp-renewal-time 450; > > option dhcp-rebinding-time 787; > > option host-name "tinlizzie.hlb.cable.rcn.com"; > > option domain-name "hlb.cable.rcn.com"; > > renew 3 2002/12/11 18:23:28; > > rebind 3 2002/12/11 18:29:55; > > expire 3 2002/12/11 18:31:48; > > } > > > > tinlizzie# netstat -rn > > Routing tables > > Internet: > > Destination Gateway Flags Refs Use Netif Expire > > 10.17.47.37 00:01:02:54:ca:dd UHS 0 0 xl0 > > 127.0.0.1 127.0.0.1 UH 0 0 lo0 > > Internet6: > > Destination Gateway Flags > > Netif > > Expire > > ::1 ::1 UH lo0 > > fe80::%xl0/64 link#1 UC xl0 > > fe80::201:2ff:fe54:cadd%xl0 00:01:02:54:ca:dd UHL lo0 > > fe80::%lo0/64 fe80::1%lo0 Uc lo0 > > fe80::1%lo0 link#4 UHL lo0 > > ff01::/32 ::1 U lo0 > > ff02::%xl0/32 link#1 UC xl0 > > ff02::%lo0/32 ::1 UC lo0 > > > > > > > > tinlizzie# ifconfig xl0 > > xl0: flags=c843 mtu 1500 > > options=3 > > inet6 fe80::201:2ff:fe54:cadd%xl0 prefixlen 64 scopeid 0x1 > > ether 00:01:02:54:ca:dd > > media: Ethernet autoselect (10baseT/UTP) > > status: active > > > > > > ---------- In Response to your message ------------- > > > > > Date: Mon, 16 Dec 2002 12:09:12 -0800 > > > To: "Marco Radzinschi" , > > "J. W. Ballantine" > > > From: "Brian" > > > Subject: Re: gateway on different subnet > > > > > > If you just do a dhcp setup, do an ifconfig -a, netstat -r and paste th e > > > results. > > > > > > Bri > > > > > > ----- Original Message ----- > > > From: "J. W. Ballantine" > > > To: "Marco Radzinschi" > > > Cc: > > > Sent: Monday, December 16, 2002 11:54 AM > > > Subject: Re: gateway on different subnet > > > > > > > > > > > > > > When I do the route add default, I get: > > > > > > > > tinlizzie# route -v add -net default 10.17.47.37 > > > > u: inet 0.0.0.0; u: inet 10.17.47.37; u: inet 0.0.0.0; RTM_ADD: Add R oute: > > > len > > > > 128, pid: 0, seq 1, errno 0, flags: > > > > > > > > locks: inits: > > > > sockaddrs: > > > > default 10.17.47.37 default > > > > route: writing to routing socket: Network is unreachable > > > > add net default: gateway 10.17.47.37: Network is unreachable > > > > > > > > > > > > ---------- In Response to your message ------------- > > > > > > > > > Date: Mon, 16 Dec 2002 14:46:12 -0500 (EST) > > > > > To: "J. W. Ballantine" > > > > > From: Marco Radzinschi > > > > > Subject: Re: gateway on different subnet > > > > > > > > > > > > > > > On Mon, 16 Dec 2002, J. W. Ballantine wrote: > > > > > > > > > > > Hi, > > > > > > > > > > > > In order to save the internet address space, my cable co has set up > > > their > > > > > > network with a live address for my > > > > > > PC but an address on a private 10.0.0.0 network for the cable mo dem. > > > > > > Now of course, this is also the > > > > > > gateway and dhcp server. The problem is trying to get FreeBSD t o use > > > > > > this private address as the gateway for > > > > > > the live address. This config works for windows and they clai m mac > > > > > > OS, but I can't get it to work for FreeBSD. I've tried ifconfig > > > > > > default, but that returns NO ROUTE TO HOST, and I've thougth abo ut > > > using > > > > > > an alias on the > > > > > > NIC, but that would send it out with the private network address and > > > not > > > > > > be able to find its way home. > > > > > > > > > > > > Any of you network wizards out there have the proper spell to ge t > > > this > > > > > > working??? > > > > > > > > > > > > Thanks > > > > > > > > > > > > Jim Ballantine > > > > > > > > > > As lnog as your internal subnet is different from the cable modem' s > > > > > subnet, you should be fine, as the DHCP client ought to set up the > > > default > > > > > route for you. > > > > > > > > > > Otherwise, "route add default " should do it. It is my > > > understanding > > > > > that the default route should not be the cable modem though, since it > > > is > > > > > supposed to act like a bridge. > > > > > > > > > > AT least this is how it works for me, except that the cable modem has a > > > > > 192.168.100.* address as well as a 10/8, but I don't have either a s a > > > > > default route. > > > > > > > > > > Marco Radzinschi > > > > > E-Mail: marco@radzinschi.com > > > > > > > > > > Mon Dec 16 14:42:22 EST 2002 > > > > > > > > > > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message