From owner-freebsd-net Fri Mar 24 19:38: 7 2000 Delivered-To: freebsd-net@freebsd.org Received: from smtp01.mrf.mail.rcn.net (smtp01.mrf.mail.rcn.net [207.172.4.60]) by hub.freebsd.org (Postfix) with ESMTP id EE69937B522 for ; Fri, 24 Mar 2000 19:37:55 -0800 (PST) (envelope-from mgtak@crosswinds.net) Received: from r7a002503as.hlb.cable.rcn.com ([216.164.33.51] helo=vira) by smtp01.mrf.mail.rcn.net with smtp (Exim 2.12 #3) id 12YhO0-00079B-00 for net@freebsd.org; Fri, 24 Mar 2000 22:37:17 -0500 From: "MG_Tak" To: Subject: DHCP server, gateways and different networks Date: Fri, 24 Mar 2000 22:37:04 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-Reply-To: <013001bf95fb$2fc17240$026670c3@obninsk.ru> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi all, ------- Brief problem description: ------- Assigned by DHCP: NIC IP is of type 216.*.*.* Cable modem IP is of type 10.*.*.* Subnet (reported by winipcfg) : 255.255.255.0 Since they're not on the same subnet, FreeBSD's TCP/IP can't get the packets through between NIC and cable modem. I get 'no route to host' on ping, telnet, nslookup, etc... I need to find a way to get the NIC and modem to exchange packets succesfuly. -------------------------------------------- More detailed description: First of all, sorry for the somewhat meaningless subject, it's sort of hard to describe my problem in just one line. I'm connect to the net via a cable-modem. When I boot, the OS/NIC uses the DHCP protocol to get an IP address from the cable modem. This worked fine (although I had to manually cancel the lease on the IP whenever I turned my computer off, so as to be able to get it again when I boot) until my ISP changed the way the IP addresses were assigned. Now, my NIC's assigned IP is your average 216.*.*.* (for example) but my 'gateway' (which happens to be my cable modem) has an IP on the 'private' IP class 10.*.*.* . Now, if I remember correctly, 216.* and 10.* aren't on the same network, and naturally, I get a 'no route to host' whenever I try to do anything, whether it be ping, nslookup, or telnet. I need to find a way to get my system to understand that what's on the other end of the NIC is the gateway. I've been told that a command like 'route add 10.(whatever) netmask 255.255.255.255 metric 1' should work. Here is a little extra info: the 'subnet mask' reported by winipcfg is 255.255.255.0 As weird as it may be, the DHCP client in Win98 doesn't have any problems and doesn't even notice that the gateway isn't on the same subnet as the NIC. So if anyone's got an idea, I really would appreciate the help. Thanks for your time, MG_Tak To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message