Subject: Re: DHCP and RoadRunner Cable Modem
To: Analysis and Solutions <info@analysisandsolutions.com>
From: None <mcmahill@mtl.mit.edu>
List: port-i386
Date: 06/28/2001 10:26:44
On Thu, 28 Jun 2001, Analysis and Solutions wrote:

> Hi Folks:
> 
> Just installed NetBSD 1.5 (in a dual boot situation with Windows 95 and
> Windows NT 4.0).  Glad to be here.  Unfortunately, I can't get a connecion to
> the internet.  The link is via a RoadRunner cable modem using DHCP.  The
> modem is hooked to my machine via a 10 Base T Netgear FA 312 network adapter
> card.


> I boot up at the start of the day into NetBSD
> DHCP gets a lease okay.
> Can ping my inet number okay.
> Can ping a server by IP address.
> Can't ping a server by domain name.  The error message says:
>    Can not resolve "shell.panix.com" (Host name lookup failure)


> One thing I notice off the bat is the MAC/NAT number shown during bootup and
> in the ifconfig output, 0a:67:c9:c3:98:a8, does not match the MAC/NAT of my
> card or my cable modem.  Where's this number coming from?  Could this be the
> problem?

huh?  thats strange.  where did you see this other number
(1:00:A0:CC:A1:86:27) ?




> ====================   /etc/rc.conf   ========================
> # I just recently put this in.  Makes no difference either way.

> ifconfig_sip0="inet base.nyc.rr.com netmask 255.255.255.0"
shouldn't need this line.  the dhclient stuff below should do this.

> 
> clear_tmp=YES
> ipfilter=NO
> inetd=YES
> dhclient_flags="sip0"
> dhclient=YES

this looks fine.



> ================   /etc/dhclient.conf   ======================
> #  NOTE:
> #  This is my latest file.
> #  I've tried lots of different configurations,
> #  including a completely blank file.
> #  Behavior is the same, regardless.
> 
> reboot 0;
> interface "sip0" {
>    send dhcp-client-identifier 1:00:A0:CC:A1:86:27;
>    send host-name "base";
>    media "link2";
> }

where did you get "1:00:A0:CC:A1:86:27" from?


> ===============    /var/db/dhclient.leases    ================
> lease {
>   interface "sip0";
>   fixed-address 66.65.114.128;
>   medium "link2";
>   option subnet-mask 255.255.255.0;
>   option routers 66.65.114.1;
>   option dhcp-lease-time 86400;
>   option dhcp-message-type 5;
>   option domain-name-servers 24.29.99.36,24.29.99.38,24.29.99.39;
>   option dhcp-server-identifier 24.29.99.65;
>   option broadcast-address 255.255.255.255;
>   option domain-name "nyc.rr.com";
>   renew 3 2001/6/27 22:37:47;
>   rebind 4 2001/6/28 07:37:58;
>   expire 4 2001/6/28 10:37:58;
> }
> ==============================================================
this looks good.


> ================   ifconfig -a -u    =========================
> sip0: flags=fbff<UP,BROADCAST,DEBUG,LOOPBACK,POINTOPOINT,NOTRAILERS,
>    RUNNING,NOARP,PROMISC,ALLMULTI,SIMPLEX,LINK0,LINK1,LINK2,MULTICAST>
>    mtu 1500
> 	address: 0a:67:c9:c3:98:a8
> 	media: Ethernet autoselect (10baseT)
> 	status: active
> 	inet 66.65.114.128 -> 255.255.255.255 netmask 0xffffff00
>            broadcast 255.255.255.255
> 	inet6 fe80::867:c9ff:fec3:98a8%sip0 ->
>            :: prefixlen 64 scopeid 0x1
> 	inet6 ::1 -> ::1 prefixlen 128
> lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33228
> 	inet 127.0.0.1 netmask 0xff000000
> 	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
> 	inet6 ::1 prefixlen 128
> ==============================================================
this looks good

> ============   /etc/resolv.conf   ============================
> search nyc.rr.com
> nameserver 24.29.99.36
> nameserver 24.29.99.38
> nameserver 24.29.99.39
> ==============================================================
this looks good



what does your /etc/nsswitch.conf file have?
hopefully a line something like:

hosts:          dns files


can you ping 24.29.99.36, 24.29.99.38, or 24.29.99.39?  If you do
'nslookup' what do you get? 


-Dan