From owner-freebsd-questions Sun Sep 1 7:51:58 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 C72EA37B400 for ; Sun, 1 Sep 2002 07:51:52 -0700 (PDT) Received: from infinity.aesredfish.net (ns1.aesredfish.net [65.168.0.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4CCA43E4A for ; Sun, 1 Sep 2002 07:51:51 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (mhope-dhcp-65-168-1-181.dashfast.com [65.168.1.181]) by infinity.aesredfish.net (8.11.6/8.11.0) with ESMTP id g81EpcD04798; Sun, 1 Sep 2002 10:51:39 -0400 Message-ID: <3D722B31.2090007@potentialtech.com> Date: Sun, 01 Sep 2002 10:58:57 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0rc1) Gecko/20020502 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ken Easson Cc: FreeBSD-questions@FreeBSD.ORG Subject: Re: cannot connect to network, with 2 nic's. References: <5.1.1.6.0.20020831235303.03e0d770@mail.justken.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Ken Easson wrote: > hello, > i hope this is the right forum for this quesion... Yes. > but no "send host-name "your-host-name" line: (if i need a hostname - > i'm not clear on what that should be? i have used my domain name > www.justken.net but this should be served through this gateway!) What kind of cable connection is this? If it's a standard home account you probably don't have a "real" hostname. The DHCP server will undoubtably assign you a name like "dhcp-192-168-5-7.verizon.com" Fortunately, you can get away with a lot without this being truely "correct". Unless you're trying to host a mail/web/etc server with this machine. > and /var/db/dhclient.leases looks like this: (times 4) > > lease { > interface "xl0"; > fixed-address 192.168.241.30; > filename "docsis.cfg"; > option subnet-mask 255.255.255.0; > option time-offset -14400; > option routers 192.168.241.1; > option dhcp-lease-time 600; > option dhcp-message-type 5; > option domain-name-servers 24.222.0.13; > option domain-name-servers 24.222.0.33; > option broadcast-address 192.168.241.255; > renew 6 2002/8/31 22:38:07; > renew 6 2002/8/31 22:42:58; > renew 6 2002/8/31 22:44:13; > } Pretty typical. My ISP attempts to provide a domain name as well (dhcp is pretty configurable, in that it can dictate a lot of config, or only the bare minimum) > FYI: looking at the ipconfig in win2k the dns info comes back as: > 24.222.0.75 and 24.138.0.7 > with this i cannot ping or traceroute to anything but localhost. > localhost resolves correctly. That's odd. You can manually set the DNS servers by editing /etc/resolv.conf and chaning the DHCP config not to update this file, but your ISP should be providing correct information here. Are W2K and FreeBSD getting their config from the same DHCP server? It's possible that your ISP uses multiple DHCP servers, and some of them are configured wrong. > traceroute provides the following: > > #traceroute www.google.com > traceroute to www.google.com (216.239.51.101), 64 hops max, 40 byte packets > 1 u128n1.hfx.eastling.ca (24.222.128.1) 24.962 ms 12.933 ms 7.673 ms > 2 v183.hlfx-dr2.eastlink.ca (24.222.79.129) 27.051 ms 35.163 ms 13.143 ms > 3 vl154.hlfx-dr1.eastlink.ca (24.222.79.125) 12.265 ms 10.265 ms 32.177 ms > 4 ge1-2.hlfx-br1.eastlink.ca (24.222.79.205) 8.391 ms 11.315 ms 9.497 ms > 5 * * * > 6 * * * > ... > 11 * * * > ^C Looks like something is wrong with your ISPs routing. Seems like you're sending data int the correct direction, but one of the routers is dropping the ball. Did you say that all works properly with W2K? This is pretty strange. > some final diagnostics that may help someone who knows what they are doing: > #netstat -rn > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 192.168.241.1 UGSc 2 0 xl0 > 127.0.0.1 127.0.0.1 UH 1 0 lo0 > 192.168.241 link#2 UC 1 0 xl0 > 192.168.241.1 00:02:fc:83:84:85 UHLW 3 0 xl0 1015 > 192.168.241.30 127.0.0.1 UGHS 0 0 lo0 > > looks to me that all outbound calls are being routed to localhost? why > am i getting 4 hops in my traceroute? and the man page and unix > reference i'm using said that i man not expect the results i get... anyone? This looks OK to me. Your default router is 192.168.241.1, and the routing knows the MAC address of it. Loopback looks OK, and the netmask seems well. > ifconfig: (xl0 results only) > xl0: flags=9943 mtu 1500 > option=3 > inet6 fe80::210:4bff:fe8f:f912%xl0 prefixlen 64 scopeid 0x2 > inet 192.168.241.30 netmask 0xffffff00 broadcast 192.168.241.255 > ether 00:10:4b:8f:f9:12 > media: Ethernet autoselect (10bastT/UTP) > status:active > > It seems to be that i've got a lease, but i can't seem to get past the > gateway router at the isp. DNS is working as expected, but my packets > arn't getting to their destination... i'm not a net guru yet... but ive > tried to read all man pages, and follow the setup's - i had this system > working with the @home before installing the second nic, and trying to > configure as a router. If this helps - i did a reinstall from cd, > installed the second nic card - turns out it was defective - and > replaced it with this one. I have tried connecting to the host isp with > both nic's and have not gotten past this point. > > hope someone can help me out! would be greatly appreciated. Unfortunately, it looks as if you've got everything correct. With the information you've provided, my first guess would be that your ISP is having trouble with routing. Maybe wait out the problem and see if they resolve it? -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message