From owner-freebsd-questions Sun Jan 9 11:19:10 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 32798151EB for ; Sun, 9 Jan 2000 11:19:07 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id OAA00952; Sun, 9 Jan 2000 14:23:34 -0500 (EST) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <200001091923.OAA00952@cc942873-a.ewndsr1.nj.home.com> Subject: Re: how to connect at home cable modem In-Reply-To: <20000109125250.22600.qmail@web604.mail.yahoo.com> from Gao Tu at "Jan 9, 2000 04:52:50 am" To: gaotu@yahoo.com (Gao Tu) Date: Sun, 9 Jan 2000 14:23:34 -0500 (EST) Cc: freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gao Tu wrote, > > Hi All > > I am trying to connect my Freebsd3.3 machine to the > internet via athome cable modem. My kernal is a > generic one and I am using an Intel Pro10/100B > Ethernet card. > The card is detected as fxp0. OK, your hardware for all of this is "go." > So, I went to the /stand/sysinstall and put all the > information in. Then reboot the machine and login in > again as root. I try to ping athome's gateway machine. > I can't.... > > I issue the following command: > ifconfig fxp0 my_machine_assigned_ip Problem 1: Your IP with @Home is something like 24.x.x.x, right? You need to explicitly give ifconfig your netmask, which is probably 255.255.255.0, or else it will assume the netmask is 255.0.0.0. This is because 24.x.x.x is an "historic class A" net. The command would be, # ifconfig fxp0 netmask 255.255.255.0 And add the following to /etc/rc.conf, ifconfig_fxp0="inet netmask 255.255.255.0" > ifconfig lo0 127.0.0.1 > route add -net my_machine_assigned_ip > athome_gateway_ip Problem 2: I'm not sure what you are trying to say here. You want to route all traffic on your local net to the router? But it's local traffic which means your _don't_ need a router. Is this what you mean, # route add default That tells your computer where to send all traffic that is _not_ local. Add the following to /etc/rc.conf, defaultrouter="" > I was able to ping athome's gateway machine and their > DNS server. I tried to ping a machine outside athome > domain. I can get the machine's IP address right. But > no package was acknowledged. > > Does anyone know how to fix this problem? Or have > simular experience to share? Do I need rebuild the > kernal? (I was hoping to test everything out before > build my own kernal). Did I miss any thing? Looks like a misconfiguration of your networking options. No need to change the kernel. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message