Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Mar 2000 22:37:04 -0500
From:      "MG_Tak" <mgtak@crosswinds.net>
To:        <net@freebsd.org>
Subject:   DHCP server, gateways and different networks
Message-ID:  <NDBBIKLAOLJINPHFNJGOKELHCBAA.mgtak@crosswinds.net>
In-Reply-To: <013001bf95fb$2fc17240$026670c3@obninsk.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
	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




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