Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Sep 2002 10:58:57 -0400
From:      Bill Moran <wmoran@potentialtech.com>
To:        Ken Easson <ken@justken.net>
Cc:        FreeBSD-questions@FreeBSD.ORG
Subject:   Re: cannot connect to network, with 2 nic's.
Message-ID:  <3D722B31.2090007@potentialtech.com>
References:  <5.1.1.6.0.20020831235303.03e0d770@mail.justken.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         option=3<rxcsum,txcsum>
>         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




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